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

#include "SceneNodeGeometry.h"

Inheritance diagram for SceneNodeGeometry:
SceneNodeBase

Public Member Functions

 SceneNodeGeometry ()
 
virtual ~SceneNodeGeometry ()
 
void setTriangles (osg::Node *t)
 
void setEdges (osg::Node *e)
 
void setEdgesHighlighted (osg::Node *e)
 
void setFaceEdgesHighlighted (osg::Switch *e)
 
void setMaterialType (const std::string &material)
 
void setTextureType (const std::string &texture, bool reflect)
 
void setMaterialProperties (osg::ref_ptr< osg::Material > &mat, double r, double g, double b)
 
void setTransformation (std::vector< double > &transformation)
 
void setHighlightNode (osg::Node *highlight)
 
osg::Matrix getTransformation (void)
 
osg::Matrix getParentTransformation (void)
 
osg::Matrix getOwnTransformation (void)
 
void setOwnTransformation (const osg::Matrix &matrix)
 
void applyTransform (osg::Matrix matrix)
 
osg::Node * getTriangles (void)
 
osg::Node * getEdges (void)
 
osg::Node * getEdgesHighlighted (void)
 
osg::Switch * getFaceEdgesHighlight (void)
 
void setEdgeHighlightNode (unsigned long long faceId1, unsigned long long faceId2)
 
virtual void setTransparent (bool t) override
 
virtual void setWireframe (bool w) override
 
virtual void setVisible (bool v) override
 
virtual void setHighlighted (bool h) override
 
virtual void setSelected (bool selected, bool _selectionFromNavigationTree) override
 
void setShowWhenSelected (bool flag)
 
void initializeFromFacetData (std::vector< Geometry::Node > &nodes, std::list< Geometry::Triangle > &triangles, std::list< Geometry::Edge > &edges, std::map< ot::UID, std::string > &faceNameMap)
 
void updateObjectColor (double surfaceColorRGB[3], double edgeColorRGB[3], const std::string &materialType, const std::string &textureType, bool reflective)
 
void updateObjectFacetsFromDataBase (unsigned long long entityID, unsigned long long entityVersion)
 
void setEdgeHighlight (unsigned long long faceId, bool h, double thickness)
 
unsigned long long getFaceIdFromTriangleIndex (unsigned long long index)
 
ot::UID getFaceIdFromEdgePrimitiveIndex (unsigned long long hitIndex)
 
std::string getFaceNameFromId (unsigned long long faceId)
 
std::string getEdgeNameFromFaceIds (unsigned long long faceId1, unsigned long long faceId2)
 
void setSurfaceColorRGB (double color[3])
 
void setEdgeColorRGB (double color[3])
 
void setBackFaceCulling (bool b)
 
void setOffsetFactor (double o)
 
void setStorage (const std::string &proj, unsigned long long id, unsigned long long version)
 
void setNeedsInitialization (void)
 
std::string getProjectName (void)
 
void initializeFromDataStorage (void)
 
ModelgetModel (void)
 
void setModel (Model *m)
 
virtual bool isItem1D (void)
 
virtual bool isItem3D (void)
 
osg::Node * addSelectedEdge (unsigned long long faceId1, unsigned long long faceId2)
 
void removeSelectedEdge (osg::Node *selected)
 
- 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)
 
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

◆ SceneNodeGeometry()

SceneNodeGeometry::SceneNodeGeometry ( )

◆ ~SceneNodeGeometry()

SceneNodeGeometry::~SceneNodeGeometry ( )
virtual

Member Function Documentation

◆ addSelectedEdge()

osg::Node * SceneNodeGeometry::addSelectedEdge ( unsigned long long faceId1,
unsigned long long faceId2 )

◆ applyTransform()

void SceneNodeGeometry::applyTransform ( osg::Matrix matrix)

◆ getEdgeNameFromFaceIds()

std::string SceneNodeGeometry::getEdgeNameFromFaceIds ( unsigned long long faceId1,
unsigned long long faceId2 )

◆ getEdges()

osg::Node * SceneNodeGeometry::getEdges ( void )
inline

◆ getEdgesHighlighted()

osg::Node * SceneNodeGeometry::getEdgesHighlighted ( void )
inline

◆ getFaceEdgesHighlight()

osg::Switch * SceneNodeGeometry::getFaceEdgesHighlight ( void )
inline

◆ getFaceIdFromEdgePrimitiveIndex()

ot::UID SceneNodeGeometry::getFaceIdFromEdgePrimitiveIndex ( unsigned long long hitIndex)

◆ getFaceIdFromTriangleIndex()

unsigned long long SceneNodeGeometry::getFaceIdFromTriangleIndex ( unsigned long long index)
inline

◆ getFaceNameFromId()

std::string SceneNodeGeometry::getFaceNameFromId ( unsigned long long faceId)

◆ getModel()

Model * SceneNodeGeometry::getModel ( void )
inline

◆ getOwnTransformation()

osg::Matrix SceneNodeGeometry::getOwnTransformation ( void )
inline

◆ getParentTransformation()

osg::Matrix SceneNodeGeometry::getParentTransformation ( void )

◆ getProjectName()

std::string SceneNodeGeometry::getProjectName ( void )
inline

◆ getTransformation()

osg::Matrix SceneNodeGeometry::getTransformation ( void )

◆ getTriangles()

osg::Node * SceneNodeGeometry::getTriangles ( void )
inline

◆ initializeFromDataStorage()

void SceneNodeGeometry::initializeFromDataStorage ( void )

◆ initializeFromFacetData()

void SceneNodeGeometry::initializeFromFacetData ( std::vector< Geometry::Node > & nodes,
std::list< Geometry::Triangle > & triangles,
std::list< Geometry::Edge > & edges,
std::map< ot::UID, std::string > & faceNameMap )

◆ isItem1D()

virtual bool SceneNodeGeometry::isItem1D ( void )
inlinevirtual

Implements SceneNodeBase.

◆ isItem3D()

virtual bool SceneNodeGeometry::isItem3D ( void )
inlinevirtual

Implements SceneNodeBase.

◆ removeSelectedEdge()

void SceneNodeGeometry::removeSelectedEdge ( osg::Node * selected)

◆ setBackFaceCulling()

void SceneNodeGeometry::setBackFaceCulling ( bool b)
inline

◆ setEdgeColorRGB()

void SceneNodeGeometry::setEdgeColorRGB ( double color[3])
inline

◆ setEdgeHighlight()

void SceneNodeGeometry::setEdgeHighlight ( unsigned long long faceId,
bool h,
double thickness )

◆ setEdgeHighlightNode()

void SceneNodeGeometry::setEdgeHighlightNode ( unsigned long long faceId1,
unsigned long long faceId2 )

◆ setEdges()

void SceneNodeGeometry::setEdges ( osg::Node * e)
inline

◆ setEdgesHighlighted()

void SceneNodeGeometry::setEdgesHighlighted ( osg::Node * e)
inline

◆ setFaceEdgesHighlighted()

void SceneNodeGeometry::setFaceEdgesHighlighted ( osg::Switch * e)
inline

◆ setHighlighted()

void SceneNodeGeometry::setHighlighted ( bool h)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setHighlightNode()

void SceneNodeGeometry::setHighlightNode ( osg::Node * highlight)

◆ setMaterialProperties()

void SceneNodeGeometry::setMaterialProperties ( osg::ref_ptr< osg::Material > & mat,
double r,
double g,
double b )

◆ setMaterialType()

void SceneNodeGeometry::setMaterialType ( const std::string & material)
inline

◆ setModel()

void SceneNodeGeometry::setModel ( Model * m)
inline

◆ setNeedsInitialization()

void SceneNodeGeometry::setNeedsInitialization ( void )
inline

◆ setOffsetFactor()

void SceneNodeGeometry::setOffsetFactor ( double o)
inline

◆ setOwnTransformation()

void SceneNodeGeometry::setOwnTransformation ( const osg::Matrix & matrix)
inline

◆ setSelected()

void SceneNodeGeometry::setSelected ( bool selected,
bool _selectionFromNavigationTree )
overridevirtual

Reimplemented from SceneNodeBase.

◆ setShowWhenSelected()

void SceneNodeGeometry::setShowWhenSelected ( bool flag)
inline

◆ setStorage()

void SceneNodeGeometry::setStorage ( const std::string & proj,
unsigned long long id,
unsigned long long version )
inline

◆ setSurfaceColorRGB()

void SceneNodeGeometry::setSurfaceColorRGB ( double color[3])
inline

◆ setTextureType()

void SceneNodeGeometry::setTextureType ( const std::string & texture,
bool reflect )
inline

◆ setTransformation()

void SceneNodeGeometry::setTransformation ( std::vector< double > & transformation)

◆ setTransparent()

void SceneNodeGeometry::setTransparent ( bool t)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setTriangles()

void SceneNodeGeometry::setTriangles ( osg::Node * t)
inline

◆ setVisible()

void SceneNodeGeometry::setVisible ( bool v)
overridevirtual

Reimplemented from SceneNodeBase.

◆ setWireframe()

void SceneNodeGeometry::setWireframe ( bool w)
overridevirtual

Reimplemented from SceneNodeBase.

◆ updateObjectColor()

void SceneNodeGeometry::updateObjectColor ( double surfaceColorRGB[3],
double edgeColorRGB[3],
const std::string & materialType,
const std::string & textureType,
bool reflective )

◆ updateObjectFacetsFromDataBase()

void SceneNodeGeometry::updateObjectFacetsFromDataBase ( unsigned long long entityID,
unsigned long long entityVersion )

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