OpenSubdiv
Loading...
Searching...
No Matches
SurfaceFactory::Options Class Reference

Simple set of options assigned to instances of SurfaceFactory. More...

#include <surfaceFactory.h>

Public Member Functions

 Options ()
 
OptionsSetDefaultFVarID (FVarID id)
 Assign the default face-varying ID (none assigned by default)
 
FVarID GetDefaultFVarID () const
 Return the default face-varying ID.
 
OptionsEnableCaching (bool on)
 Enable or disable caching (default is true):
 
bool IsCachingEnabled () const
 Return if caching is enable.
 
OptionsSetExternalCache (SurfaceFactoryCache *c)
 Assign an external cache to override the internal.
 
SurfaceFactoryCacheGetExternalCache () const
 Return any assigned external cache.
 
OptionsSetApproxLevelSmooth (int level)
 Assign maximum refinement level for smooth features.
 
int GetApproxLevelSmooth () const
 Return maximum refinement level for smooth features.
 
OptionsSetApproxLevelSharp (int level)
 Assign maximum refinement level for sharp features.
 
int GetApproxLevelSharp () const
 Return maximum refinement level for sharp features.
 

Detailed Description

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 99 of file surfaceFactory.h.

Constructor & Destructor Documentation

◆ Options()

Options ( )
inline

Definition at line 101 of file surfaceFactory.h.

Member Function Documentation

◆ EnableCaching()

SurfaceFactory::Options & EnableCaching ( bool on)
inline

Enable or disable caching (default is true):

Definition at line 440 of file surfaceFactory.h.

◆ GetApproxLevelSharp()

int GetApproxLevelSharp ( ) const
inline

Return maximum refinement level for sharp features.

Definition at line 130 of file surfaceFactory.h.

◆ GetApproxLevelSmooth()

int GetApproxLevelSmooth ( ) const
inline

Return maximum refinement level for smooth features.

Definition at line 125 of file surfaceFactory.h.

◆ GetDefaultFVarID()

FVarID GetDefaultFVarID ( ) const
inline

Return the default face-varying ID.

Definition at line 108 of file surfaceFactory.h.

◆ GetExternalCache()

SurfaceFactoryCache * GetExternalCache ( ) const
inline

Return any assigned external cache.

Definition at line 118 of file surfaceFactory.h.

◆ IsCachingEnabled()

bool IsCachingEnabled ( ) const
inline

Return if caching is enable.

Definition at line 113 of file surfaceFactory.h.

◆ SetApproxLevelSharp()

SurfaceFactory::Options & SetApproxLevelSharp ( int level)
inline

Assign maximum refinement level for sharp features.

Definition at line 455 of file surfaceFactory.h.

◆ SetApproxLevelSmooth()

SurfaceFactory::Options & SetApproxLevelSmooth ( int level)
inline

Assign maximum refinement level for smooth features.

Definition at line 450 of file surfaceFactory.h.

◆ SetDefaultFVarID()

SurfaceFactory::Options & SetDefaultFVarID ( FVarID id)
inline

Assign the default face-varying ID (none assigned by default)

Definition at line 435 of file surfaceFactory.h.

◆ SetExternalCache()

SurfaceFactory::Options & SetExternalCache ( SurfaceFactoryCache * c)
inline

Assign an external cache to override the internal.

Definition at line 445 of file surfaceFactory.h.


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