HDK
|
#include <SOP_ObjectAppearance.h>
Public Types | |
typedef UT_Set< std::string > | PrimList |
Public Member Functions | |
SOP_ObjectAppearance () | |
virtual | ~SOP_ObjectAppearance () |
virtual bool | isGeometricObject () const =0 |
virtual bool | applyEdits ()=0 |
Edits are not guaranteed to be applied until this method is called. More... | |
virtual bool | getLeafPaths (UT_StringArray &paths) const |
Get list of all possible paths for the leaf nodes in the tree. More... | |
virtual GA_Offset | getPrimitiveOffset (const char *path) const |
Return the list of primitives which match the given path. More... | |
virtual bool | getLightSelection (UT_TagManager &tags, const std::string &path_head, UT_Set< std::string > &selected_paths, const char *tag) const |
virtual bool | editLightSelection (UT_TagManager &tags, const std::string &path_head, const UT_Set< std::string > &selected_paths, const char *tag) |
virtual bool | visibility (GA_Offset prim, bool &visible) const |
virtual bool | setVisibility (const char *path, bool visible) |
virtual bool | setVisibility (const PrimList &prims, bool visible) |
virtual bool | viewportLOD (GA_Offset prim, GEO_ViewportLOD &lod) const |
virtual bool | setViewportLOD (const char *path, GEO_ViewportLOD l) |
virtual bool | setViewportLOD (const PrimList &prims, GEO_ViewportLOD l) |
virtual bool | material (GA_Offset prim, std::string &material) const |
virtual bool | setMaterial (const char *path, const char *material) |
virtual bool | setMaterial (const PrimList &prims, const char *material) |
virtual bool | lightSelection (GA_Offset prim, std::string &light_selection) const |
virtual bool | lightSelection (const char *path, std::string &light_selection) const |
virtual bool | setLightSelection (const char *path, const char *light_selection) |
virtual bool | setLightSelection (const PrimList &prims, const char *light_selection) |
Public Member Functions inherited from UT_IntrusiveRefCounter< SOP_ObjectAppearance > | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter () noexcept |
Default constructor: Sets counter to 0. More... | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept |
Copy constructor: Sets counter to 0. More... | |
UT_IntrusiveRefCounter & | operator= (const UT_IntrusiveRefCounter &) noexcept |
Assignment operator: Does not modify counter. More... | |
SYS_FORCE_INLINE uint32 | use_count () const noexcept |
Return current counter. More... | |
SYS_FORCE_INLINE bool | conditionalAddRef () noexcept |
Additional Inherited Members | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< SOP_ObjectAppearance > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Definition at line 24 of file SOP_ObjectAppearance.h.
Definition at line 28 of file SOP_ObjectAppearance.h.
SOP_ObjectAppearance::SOP_ObjectAppearance | ( | ) |
|
virtual |
|
pure virtual |
Edits are not guaranteed to be applied until this method is called.
|
virtual |
Set light selection for a given tag. This should remove the tag from all paths not referenced in the selection list. The path_head
should be ignored from each path in the selection.
|
virtual |
Get list of all possible paths for the leaf nodes in the tree.
|
virtual |
Add all paths to the selected_paths
. Each path in the appearance which matches the given tag
should be prefixed by the path_head
before it's added to the set.
|
virtual |
Return the list of primitives which match the given path.
|
pure virtual |
Return true
if the object is a geometric object, which supports per-primitive settings. If false
, then the first argument to the setters and getters is ignored (const char *, and GA_Offset), and the PrimList setters will fail.
|
virtual |
Get/Set the light selection expression for the given primitive.
|
virtual |
Get/Set the light selection expression for the given primitive.
|
virtual |
Get/Set the material for the given primitive.
|
virtual |
Get/Set the light selection expression for the given primitive.
|
virtual |
Get/Set the light selection expression for the given primitive.
|
virtual |
Get/Set the material for the given primitive.
|
virtual |
Get/Set the material for the given primitive.
|
virtual |
Get/Set the viewport LOD for the given primitive.
|
virtual |
Get/Set the viewport LOD for the given primitive.
|
virtual |
Get/Set the viewport visibility for the given primitive.
|
virtual |
Get/Set the viewport visibility for the given primitive.
|
virtual |
Get/Set the viewport LOD for the given primitive.
|
virtual |
Get/Set the viewport visibility for the given primitive.