RixSymbolResolver Class Reference

RixSymbolResolver Class Referenceabstract
Inheritance diagram for RixSymbolResolver:
RixInterface

Public Types

enum  SymbolGroup {
  k_PixelFilter = 0, k_Basis = 1, k_Procedural = 2, k_ErrorHandler = 3,
  k_RiEntryPoint = 4
}
 

Public Member Functions

virtual RtToken ResolveToken (char const *nm)=0
 
virtual RtPointer ResolveSymbol (const char *nm, SymbolGroup group)=0
 
- Public Member Functions inherited from RixInterface
virtual int GetVersion () const
 

Additional Inherited Members

- Protected Member Functions inherited from RixInterface
 RixInterface (int version)
 Interfaces should not be constructed by users.
 
virtual ~RixInterface ()
 Interfaces should not be deleted by users.
 
- Protected Attributes inherited from RixInterface
int m_version
 Version number of this interface.
 

Member Function Documentation

virtual RtPointer RixSymbolResolver::ResolveSymbol ( const char *  nm,
SymbolGroup  group 
)
pure virtual

ResolveSymbol returns a reference to the requested standard Ri symbol excluding tokens. May be useful to ensure that globally procedure references are valid across shared-object boundaries in the case where the RixContext is obtained via RixGetContextViaRMANTREE. Symbol names follow the "C" entry point. So: RiPixelFilter(RiBoxFilter, 2.0, 2.0) becomes: RtFloatFunc boxFilter = rs->ResolveSymbol("RiBoxFilter"); ri->PixelFilter(boxFilter, 2.0, 2.0); Useful to obtain references to standard spline basis functions, error handlers and procedural primitives.

virtual RtToken RixSymbolResolver::ResolveToken ( char const *  nm)
pure virtual

ResolveToken returns a standard token for the provided string. May be useful to ensure that globally tokens are valid across shared-object boundaries in the case where the RixContext is obtained via RixGetContextViaRMANTREE.


The documentation for this class was generated from the following file: