FnUsdEngineLib 0.6.0
All Classes Functions Variables Pages
usg::GeomState Struct Reference

Public Member Functions

 GeomState ()
 Default ctor leaves all hashes at their default value (~0xLL)
 
 GeomState (const fdk::Hash &init)
 Set all hashes to a specific value.
 
fdk::Hash hash () const
 Return a single hash consisting of all non-default hashes appended together.
 
 operator fdk::Hash () const
 
bool operator== (const GeomState &b) const
 
bool operator!= (const GeomState &b) const
 
bool isDefineGeometryDefault () const
 
bool isModifyValuesDefault () const
 
bool isEditStageDefault () const
 
bool isDefault () const
 Are all hashes at the fdk::Hash default value? (this won't work if hashes set to a different initial value)
 
void set (const fdk::Hash &h)
 Set all hashes to a specific value.
 
void set (const GeomState &b)
 Copy all the hashes from b GeomState.
 
void reset ()
 Reset all the hashes to the fdk::Hash default value (~0xLL)
 
void append (const GeomState &b)
 Append each of b GeomState's hashes.
 
void appendIfNotDefault (const GeomState &b)
 Append each of b GeomState's hashes if they're not at the default value (~0xLL)
 

Static Public Member Functions

static GeomState combineIfNotDefault (const GeomState &a, const GeomState &b)
 

Public Attributes

fdk::Hash defineGeometryState
 Edit Layer global prim/attribute topology - causes Stage recompose!
 
fdk::Hash modifyValuesState
 Edit Layer global attribute contents modifications (no Stage recompose)
 
fdk::Hash editStageState
 Edit Stage's current state (no Stage recompose)
 

Friends

USG_ENGINE_API std::ostream & operator<< (std::ostream &, const GeomState &)
 

Member Function Documentation

◆ combineIfNotDefault()

GeomState usg::GeomState::combineIfNotDefault ( const GeomState a,
const GeomState b 
)
inlinestatic

If a's hashes are not default they initialize this GeomState's hashes, then b's hashes are appended, otherwise if a's hashes are default then b's hashes initialize this GeomState's hashes and a's are ignored.

References defineGeometryState, editStageState, and modifyValuesState.



©2025 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk