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

#include <SOP_LightLink.h>

Public Types

enum  { VISIBLE_UNCHANGED = -1, VISIBLE_HIDE, VISIBLE_SHOW }
 Visibility states. More...
 
enum  { COMMON_LOD = 0x01, COMMON_MATERIAL = 0x02, COMMON_EXPR = 0x04, COMMON_ALL = (COMMON_MATERIAL|COMMON_LOD|COMMON_EXPR) }
 
typedef UT_Map< std::string,
Node * > 
NodeSet
 

Public Member Functions

 Node (const std::string &name, Node *parent)
 
 ~Node ()
 
NodeaddChild (const std::string &name)
 
Nodefind (const std::string &name) const
 
exint childCount () const
 
void clearValue ()
 
void clearSubtree ()
 
void setMaterial (const std::string &m)
 
void setExpr (const std::string &expr)
 
void clearTagExpressions ()
 
void addTag (UT_TagManager &mgr, const UT_TagList &tags)
 
void rmTag (UT_TagManager &mgr, const UT_TagList &tags)
 
void setVisible (int visibility)
 
void setViewportLOD (GEO_ViewportLOD lod)
 
void optimizeTree ()
 
void extractLeafPaths (UT_WorkBuffer &path, UT_StringArray &paths) const
 
void getMaterialOps (UT_WorkBuffer &path, UT_Array< SetOp > &ops) const
 
void getExprOps (UT_WorkBuffer &path, UT_Array< SetOp > &ops) const
 
void getVisibleOps (UT_WorkBuffer &path, UT_Array< VisibleOp > &ops) const
 
void getMatchingExpr (UT_WorkBuffer &path, UT_TagManager &mgr, UT_Set< std::string > &selection, const UT_TagList &tags)
 
const Nodeparent () const
 
const std::stringname () const
 
const std::stringmaterial () const
 
const std::stringexpr () const
 
int visible () const
 
GEO_ViewportLOD viewportLOD () const
 
void dump (int indent) const
 

Detailed Description

Node to represent paths in the link tree Each branch has one or more children. If all children of the branch have the same value, the branch will have myValue set to the common child value myKidsSame set to true

Definition at line 57 of file SOP_LightLink.h.

Member Typedef Documentation

Definition at line 60 of file SOP_LightLink.h.

Member Enumeration Documentation

anonymous enum

Visibility states.

Enumerator
VISIBLE_UNCHANGED 
VISIBLE_HIDE 
VISIBLE_SHOW 

Definition at line 63 of file SOP_LightLink.h.

anonymous enum
Enumerator
COMMON_LOD 
COMMON_MATERIAL 
COMMON_EXPR 
COMMON_ALL 

Definition at line 71 of file SOP_LightLink.h.

Constructor & Destructor Documentation

SOP_LightLink::Node::Node ( const std::string name,
Node parent 
)
inline

Definition at line 81 of file SOP_LightLink.h.

SOP_LightLink::Node::~Node ( )
inline

Definition at line 92 of file SOP_LightLink.h.

Member Function Documentation

Node* SOP_LightLink::Node::addChild ( const std::string name)
inline

Definition at line 99 of file SOP_LightLink.h.

void SOP_LightLink::Node::addTag ( UT_TagManager mgr,
const UT_TagList tags 
)
inline

Definition at line 156 of file SOP_LightLink.h.

exint SOP_LightLink::Node::childCount ( ) const
inline

Definition at line 117 of file SOP_LightLink.h.

void SOP_LightLink::Node::clearSubtree ( )
inline

Definition at line 128 of file SOP_LightLink.h.

void SOP_LightLink::Node::clearTagExpressions ( )
inline

Definition at line 149 of file SOP_LightLink.h.

void SOP_LightLink::Node::clearValue ( )
inline

Definition at line 121 of file SOP_LightLink.h.

void SOP_LightLink::Node::dump ( int  indent) const
inline

Definition at line 205 of file SOP_LightLink.h.

const std::string& SOP_LightLink::Node::expr ( ) const
inline

Definition at line 201 of file SOP_LightLink.h.

void SOP_LightLink::Node::extractLeafPaths ( UT_WorkBuffer path,
UT_StringArray paths 
) const
Node* SOP_LightLink::Node::find ( const std::string name) const
inline

Definition at line 110 of file SOP_LightLink.h.

void SOP_LightLink::Node::getExprOps ( UT_WorkBuffer path,
UT_Array< SetOp > &  ops 
) const
void SOP_LightLink::Node::getMatchingExpr ( UT_WorkBuffer path,
UT_TagManager mgr,
UT_Set< std::string > &  selection,
const UT_TagList tags 
)
void SOP_LightLink::Node::getMaterialOps ( UT_WorkBuffer path,
UT_Array< SetOp > &  ops 
) const
void SOP_LightLink::Node::getVisibleOps ( UT_WorkBuffer path,
UT_Array< VisibleOp > &  ops 
) const
const std::string& SOP_LightLink::Node::material ( ) const
inline

Definition at line 200 of file SOP_LightLink.h.

const std::string& SOP_LightLink::Node::name ( void  ) const
inline

Definition at line 199 of file SOP_LightLink.h.

void SOP_LightLink::Node::optimizeTree ( )
inline

Definition at line 184 of file SOP_LightLink.h.

const Node* SOP_LightLink::Node::parent ( ) const
inline

Definition at line 198 of file SOP_LightLink.h.

void SOP_LightLink::Node::rmTag ( UT_TagManager mgr,
const UT_TagList tags 
)
inline

Definition at line 164 of file SOP_LightLink.h.

void SOP_LightLink::Node::setExpr ( const std::string expr)
inline

Definition at line 140 of file SOP_LightLink.h.

void SOP_LightLink::Node::setMaterial ( const std::string m)
inline

Definition at line 134 of file SOP_LightLink.h.

void SOP_LightLink::Node::setViewportLOD ( GEO_ViewportLOD  lod)
inline

Definition at line 178 of file SOP_LightLink.h.

void SOP_LightLink::Node::setVisible ( int  visibility)
inline

Definition at line 172 of file SOP_LightLink.h.

GEO_ViewportLOD SOP_LightLink::Node::viewportLOD ( ) const
inline

Definition at line 203 of file SOP_LightLink.h.

int SOP_LightLink::Node::visible ( ) const
inline

Definition at line 202 of file SOP_LightLink.h.


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