OpenSubdiv
|
Simple set of options assigned to instances of SurfaceFactory. More...
#include <surfaceFactory.h>
Public Member Functions | |
Options () | |
Options & | SetDefaultFVarID (FVarID id) |
Assign the default face-varying ID (none assigned by default) | |
FVarID | GetDefaultFVarID () const |
Return the default face-varying ID. | |
Options & | EnableCaching (bool on) |
Enable or disable caching (default is true): | |
bool | IsCachingEnabled () const |
Return if caching is enable. | |
Options & | SetExternalCache (SurfaceFactoryCache *c) |
Assign an external cache to override the internal. | |
SurfaceFactoryCache * | GetExternalCache () const |
Return any assigned external cache. | |
Options & | SetApproxLevelSmooth (int level) |
Assign maximum refinement level for smooth features. | |
int | GetApproxLevelSmooth () const |
Return maximum refinement level for smooth features. | |
Options & | SetApproxLevelSharp (int level) |
Assign maximum refinement level for sharp features. | |
int | GetApproxLevelSharp () const |
Return maximum refinement level for sharp features. | |
Simple set of options assigned to instances of SurfaceFactory.
The Options class is a simple container specifying options for the construction of the SurfaceFactory to be applied during its lifetime.
These options currently include choices to identify a default face-varying ID, to control caching behavior (on or off, use of external vs internal cache), and to control the accuracy of the resulting limit surface representations.
Definition at line 116 of file surfaceFactory.h.
|
inline |
Definition at line 118 of file surfaceFactory.h.
|
inline |
Enable or disable caching (default is true):
Definition at line 457 of file surfaceFactory.h.
|
inline |
Return maximum refinement level for sharp features.
Definition at line 147 of file surfaceFactory.h.
|
inline |
Return maximum refinement level for smooth features.
Definition at line 142 of file surfaceFactory.h.
|
inline |
Return the default face-varying ID.
Definition at line 125 of file surfaceFactory.h.
|
inline |
Return any assigned external cache.
Definition at line 135 of file surfaceFactory.h.
|
inline |
Return if caching is enable.
Definition at line 130 of file surfaceFactory.h.
|
inline |
Assign maximum refinement level for sharp features.
Definition at line 472 of file surfaceFactory.h.
|
inline |
Assign maximum refinement level for smooth features.
Definition at line 467 of file surfaceFactory.h.
|
inline |
Assign the default face-varying ID (none assigned by default)
Definition at line 452 of file surfaceFactory.h.
|
inline |
Assign an external cache to override the internal.
Definition at line 462 of file surfaceFactory.h.