SceneObject Class Reference

#include <MemoryX/gui-plugins/SceneEditor/scene3D/SceneObject.h>

+ Inheritance diagram for SceneObject:

Public Member Functions

std::map< std::string, std::string > getAllAttributes ()
 Returns all Attributes of the SceneObject as Map. More...
 
std::string getClassId () const
 Returns the ClassId of the SceneObject. More...
 
std::string getCollection () const
 Returns the Collection of the SceneObject. More...
 
std::string getObjectId () const
 Returns the ObjectId of the SceneObject. More...
 
SbRotation getRotation ()
 Returns the Rotation of the SceneObject. More...
 
SbVec3f getTranslation ()
 Returns the Translation of the SceneObject. More...
 
bool isMutable ()
 Returns if you are allowed to change this object. More...
 
 SceneObject (std::string objectId, std::string classId, std::string collection, SoSeparator *geometry, SoSeparator *collision)
 
void setClassId (std::string &classId)
 Sets the ClassId of the SceneObject. More...
 
void setCollection (std::string &collection)
 Sets the Collection of the SceneObject. More...
 
void setObjectId (std::string &objectId)
 Sets the ObjectId of the SceneObject. More...
 
void setRotation (SbRotation rotation)
 Sets the Rotation of the SceneObject. More...
 
void setTranslation (SbVec3f translation)
 Sets the Translation of the SceneObject. More...
 
void showCollisionMesh (bool show)
 Decides, whether CollisionMesh is beeing shown. More...
 

Static Public Member Functions

static void initClass ()
 Initializes Class. More...
 

Friends

class SceneManipulatorManager
 

Detailed Description

Definition at line 43 of file SceneObject.h.

Constructor & Destructor Documentation

◆ SceneObject()

SceneObject ( std::string  objectId,
std::string  classId,
std::string  collection,
SoSeparator *  geometry,
SoSeparator *  collision 
)
Parameters
objectId
classId
collection
geometry
collision

Definition at line 38 of file SceneObject.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ getAllAttributes()

std::map< std::string, std::string > getAllAttributes ( )

Returns all Attributes of the SceneObject as Map.

Returns
std::map<std::string, std::string> All Attributes as Map

Definition at line 219 of file SceneObject.cpp.

+ Here is the call graph for this function:

◆ getClassId()

std::string getClassId ( ) const

Returns the ClassId of the SceneObject.

Returns
std::string ClassId of the SceneObject

Definition at line 199 of file SceneObject.cpp.

◆ getCollection()

std::string getCollection ( ) const

Returns the Collection of the SceneObject.

Returns
std::string Collection of the SceneObject

Definition at line 209 of file SceneObject.cpp.

◆ getObjectId()

std::string getObjectId ( ) const

Returns the ObjectId of the SceneObject.

Returns
std::string ObjectId of the SceneObject

Definition at line 189 of file SceneObject.cpp.

+ Here is the caller graph for this function:

◆ getRotation()

SbRotation getRotation ( )

Returns the Rotation of the SceneObject.

Returns
SbRotation Rotation of SceneObject

Definition at line 133 of file SceneObject.cpp.

◆ getTranslation()

SbVec3f getTranslation ( )

Returns the Translation of the SceneObject.

Returns
SbVec3f Translation of SceneObject

Definition at line 104 of file SceneObject.cpp.

◆ initClass()

void initClass ( )
static

Initializes Class.

Definition at line 31 of file SceneObject.cpp.

+ Here is the caller graph for this function:

◆ isMutable()

bool isMutable ( )

Returns if you are allowed to change this object.

Returns
true, if you are allowed; false otherwise

Definition at line 288 of file SceneObject.cpp.

◆ setClassId()

void setClassId ( std::string &  classId)

Sets the ClassId of the SceneObject.

Parameters
classIdClassId of the SceneObject

Definition at line 204 of file SceneObject.cpp.

◆ setCollection()

void setCollection ( std::string &  collection)

Sets the Collection of the SceneObject.

Parameters
collectionCollection of the SceneObject

Definition at line 214 of file SceneObject.cpp.

◆ setObjectId()

void setObjectId ( std::string &  objectId)

Sets the ObjectId of the SceneObject.

Parameters
objectIdObjectId of the SceneObject

Definition at line 194 of file SceneObject.cpp.

+ Here is the caller graph for this function:

◆ setRotation()

void setRotation ( SbRotation  rotation)

Sets the Rotation of the SceneObject.

Parameters
rotationRotation of SceneObject

Definition at line 152 of file SceneObject.cpp.

◆ setTranslation()

void setTranslation ( SbVec3f  translation)

Sets the Translation of the SceneObject.

Parameters
translationTranslation of SceneObject

Definition at line 122 of file SceneObject.cpp.

◆ showCollisionMesh()

void showCollisionMesh ( bool  show)

Decides, whether CollisionMesh is beeing shown.

Parameters
showShow Collision Mesh

Definition at line 163 of file SceneObject.cpp.

Friends And Related Function Documentation

◆ SceneManipulatorManager

friend class SceneManipulatorManager
friend

Definition at line 46 of file SceneObject.h.


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