OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SceneNodeAnnotation Class Reference

#include "SceneNodeAnnotation.h"

Inheritance diagram for SceneNodeAnnotation:
SceneNodeBase

Public Member Functions

 SceneNodeAnnotation ()
 
virtual ~SceneNodeAnnotation ()
 
virtual void setTransparent (bool t) override
 
virtual void setWireframe (bool w) override
 
virtual void setVisible (bool v) override
 
virtual void setHighlighted (bool h) override
 
void initializeFromData (const double edgeColorRGB[3], const std::vector< std::array< double, 3 > > &points, const std::vector< std::array< double, 3 > > &points_rgb, const std::vector< std::array< double, 3 > > &triangle_p1, const std::vector< std::array< double, 3 > > &triangle_p2, const std::vector< std::array< double, 3 > > &triangle_p3, const std::vector< std::array< double, 3 > > &triangle_rgb)
 
virtual bool isItem1D (void)
 
virtual bool isItem3D (void)
 
- Public Member Functions inherited from SceneNodeBase
 SceneNodeBase ()
 
virtual ~SceneNodeBase ()
 
void setName (const std::string &n)
 
const std::string & getName (void)
 
void setShapeNode (osg::Switch *node)
 
osg::Switch * getShapeNode (void)
 
void setTreeItemID (ot::UID iD)
 
ot::UID getTreeItemID (void)
 
void setModelEntityID (unsigned long long id)
 
unsigned long long getModelEntityID (void)
 
bool isEditable (void)
 
virtual void setEditable (bool v)
 
bool isVisible (void)
 
bool isSelected (void)
 
virtual void setSelected (bool _selected, bool _selectionFromNavigationTree)
 
bool isTransparent (void)
 
bool isWireframe (void)
 
bool isHighlighted (void)
 
void setErrors (std::string &e)
 
bool hasErrors (void)
 
std::string getErrors (void)
 
void setOffset (double value)
 
double getOffset (void)
 
void setSelectChildren (bool flag)
 
virtual bool getSelectChildren (void)
 
void setManageVisibilityOfParent (bool flag)
 
bool getManageVisibilityOfParent (void)
 
void setManageVisibilityOfChildren (bool flag)
 
bool getManageVisibilityOfChildren (void)
 
void setParent (SceneNodeBase *item)
 
SceneNodeBasegetParent (void)
 
void addChild (SceneNodeBase *child)
 
void removeChild (SceneNodeBase *child)
 
const std::list< SceneNodeBase * > & getChildren (void)
 
void setOldTreeIcons (const OldTreeIcon &icons)
 
const OldTreeIcon & getOldTreeIcons (void)
 
virtual void getPrefetch (std::string &projectName, std::list< std::pair< unsigned long long, unsigned long long > > &prefetchIDs)
 
void addVisualiser (Visualiser *_visualiser)
 
const std::list< Visualiser * > & getVisualiser ()
 

Additional Inherited Members

- Protected Attributes inherited from SceneNodeBase
osg::Switch * shapeNode
 
const float transparency = 0.15
 

Constructor & Destructor Documentation

◆ SceneNodeAnnotation()

SceneNodeAnnotation::SceneNodeAnnotation ( )
inline

◆ ~SceneNodeAnnotation()

SceneNodeAnnotation::~SceneNodeAnnotation ( )
virtual

Member Function Documentation

◆ initializeFromData()

void SceneNodeAnnotation::initializeFromData ( const double edgeColorRGB[3],
const std::vector< std::array< double, 3 > > & points,
const std::vector< std::array< double, 3 > > & points_rgb,
const std::vector< std::array< double, 3 > > & triangle_p1,
const std::vector< std::array< double, 3 > > & triangle_p2,
const std::vector< std::array< double, 3 > > & triangle_p3,
const std::vector< std::array< double, 3 > > & triangle_rgb )

◆ isItem1D()

virtual bool SceneNodeAnnotation::isItem1D ( void )
inlinevirtual

Implements SceneNodeBase.

◆ isItem3D()

virtual bool SceneNodeAnnotation::isItem3D ( void )
inlinevirtual

Implements SceneNodeBase.

◆ setHighlighted()

void SceneNodeAnnotation::setHighlighted ( bool h)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setTransparent()

void SceneNodeAnnotation::setTransparent ( bool t)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setVisible()

void SceneNodeAnnotation::setVisible ( bool v)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setWireframe()

void SceneNodeAnnotation::setWireframe ( bool w)
overridevirtual

Reimplemented from SceneNodeBase.


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