HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_OSDOptions Class Reference

Options for topology and refinement. More...

#include <GT_OSD3.h>

Public Types

using SdcOptions = OpenSubdiv::Sdc::Options
 
using VtxBoundaryInterpolation = SdcOptions::VtxBoundaryInterpolation
 
using FVarLinearInterpolation = SdcOptions::FVarLinearInterpolation
 
using CreasingMethod = SdcOptions::CreasingMethod
 
using TriangleSubdivision = SdcOptions::TriangleSubdivision
 

Public Member Functions

 GT_OSDOptions (GT_Scheme scheme=GT_CATMULL_CLARK, int level=2, bool adaptive=false, fpreal crease_override=-1, bool remove_holes=true)
 
const SdcOptionsoptions () const
 
void setOptions (const SdcOptions &o)
 
SYS_HashType hash () const
 
bool isEqual (const GT_OSDOptions &opts) const
 
bool operator== (const GT_OSDOptions &s) const
 
bool operator!= (const GT_OSDOptions &s) const
 
SdcOptionsoperator-> ()
 
const SdcOptionsoperator-> () const
 
SdcOptionsoperator* ()
 
const SdcOptionsoperator* () const
 
GT_Scheme scheme () const
 
void setScheme (GT_Scheme t)
 
int level () const
 
void setLevel (int l)
 
bool adaptive () const
 
void setAdaptive (bool b)
 
bool removeHoles () const
 
void setRemoveHoles (bool v)
 
bool enableCreaseOverride () const
 
fpreal creaseOverride () const
 
void setCreaseOverride (fpreal value=-1)
 
void dump () const
 
void dump (UT_JSONWriter &w) const
 
 GETSET (VtxBoundaryInterpolation, vtxBoundaryInterpolation)
 
 GETSET (FVarLinearInterpolation, fvarLinearInterpolation)
 
 GETSET (CreasingMethod, creasingMethod)
 
 GETSET (TriangleSubdivision, triangleSubdivision)
 

Detailed Description

Options for topology and refinement.

Definition at line 39 of file GT_OSD3.h.

Member Typedef Documentation

using GT_OSDOptions::CreasingMethod = SdcOptions::CreasingMethod

Definition at line 45 of file GT_OSD3.h.

using GT_OSDOptions::FVarLinearInterpolation = SdcOptions::FVarLinearInterpolation

Definition at line 44 of file GT_OSD3.h.

using GT_OSDOptions::SdcOptions = OpenSubdiv::Sdc::Options

Definition at line 42 of file GT_OSD3.h.

using GT_OSDOptions::TriangleSubdivision = SdcOptions::TriangleSubdivision

Definition at line 46 of file GT_OSD3.h.

using GT_OSDOptions::VtxBoundaryInterpolation = SdcOptions::VtxBoundaryInterpolation

Definition at line 43 of file GT_OSD3.h.

Constructor & Destructor Documentation

GT_OSDOptions::GT_OSDOptions ( GT_Scheme  scheme = GT_CATMULL_CLARK,
int  level = 2,
bool  adaptive = false,
fpreal  crease_override = -1,
bool  remove_holes = true 
)
inline

Definition at line 48 of file GT_OSD3.h.

Member Function Documentation

bool GT_OSDOptions::adaptive ( ) const
inline

Definition at line 87 of file GT_OSD3.h.

fpreal GT_OSDOptions::creaseOverride ( ) const
inline

Definition at line 94 of file GT_OSD3.h.

void GT_OSDOptions::dump ( ) const
void GT_OSDOptions::dump ( UT_JSONWriter w) const
bool GT_OSDOptions::enableCreaseOverride ( ) const
inline

Definition at line 93 of file GT_OSD3.h.

GT_OSDOptions::GETSET ( VtxBoundaryInterpolation  ,
vtxBoundaryInterpolation   
)

Simple wrappers on the SdcOptions

GT_OSDOptions::GETSET ( FVarLinearInterpolation  ,
fvarLinearInterpolation   
)

Simple wrappers on the SdcOptions

GT_OSDOptions::GETSET ( CreasingMethod  ,
creasingMethod   
)

Simple wrappers on the SdcOptions

GT_OSDOptions::GETSET ( TriangleSubdivision  ,
triangleSubdivision   
)

Simple wrappers on the SdcOptions

SYS_HashType GT_OSDOptions::hash ( ) const
bool GT_OSDOptions::isEqual ( const GT_OSDOptions opts) const
int GT_OSDOptions::level ( ) const
inline

Definition at line 84 of file GT_OSD3.h.

bool GT_OSDOptions::operator!= ( const GT_OSDOptions s) const
inline

Definition at line 72 of file GT_OSD3.h.

SdcOptions& GT_OSDOptions::operator* ( )
inline

Definition at line 78 of file GT_OSD3.h.

const SdcOptions& GT_OSDOptions::operator* ( ) const
inline

Definition at line 79 of file GT_OSD3.h.

SdcOptions& GT_OSDOptions::operator-> ( )
inline

Definition at line 76 of file GT_OSD3.h.

const SdcOptions& GT_OSDOptions::operator-> ( ) const
inline

Definition at line 77 of file GT_OSD3.h.

bool GT_OSDOptions::operator== ( const GT_OSDOptions s) const
inline

Definition at line 70 of file GT_OSD3.h.

const SdcOptions& GT_OSDOptions::options ( ) const
inline

Definition at line 65 of file GT_OSD3.h.

bool GT_OSDOptions::removeHoles ( ) const
inline

Definition at line 90 of file GT_OSD3.h.

GT_Scheme GT_OSDOptions::scheme ( ) const
inline

Definition at line 81 of file GT_OSD3.h.

void GT_OSDOptions::setAdaptive ( bool  b)
inline

Definition at line 88 of file GT_OSD3.h.

void GT_OSDOptions::setCreaseOverride ( fpreal  value = -1)
inline

Definition at line 95 of file GT_OSD3.h.

void GT_OSDOptions::setLevel ( int  l)
inline

Definition at line 85 of file GT_OSD3.h.

void GT_OSDOptions::setOptions ( const SdcOptions o)
inline

Definition at line 66 of file GT_OSD3.h.

void GT_OSDOptions::setRemoveHoles ( bool  v)
inline

Definition at line 91 of file GT_OSD3.h.

void GT_OSDOptions::setScheme ( GT_Scheme  t)
inline

Definition at line 82 of file GT_OSD3.h.


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