Go to the documentation of this file.
26 #include <Inventor/nodes/SoSwitch.h>
27 #include <Inventor/nodes/SoTransform.h>
28 #include <Inventor/nodes/SoSeparator.h>
29 #include <Inventor/nodekits/SoBaseKit.h>
30 #include <Inventor/SbRotation.h>
31 #include <Inventor/manips/SoTransformManip.h>
50 SO_KIT_CATALOG_ENTRY_HEADER(root);
52 SO_KIT_CATALOG_ENTRY_HEADER(transformManip);
53 SO_KIT_CATALOG_ENTRY_HEADER(modelswitch);
54 SO_KIT_CATALOG_ENTRY_HEADER(visual);
55 SO_KIT_CATALOG_ENTRY_HEADER(collision);
67 SceneObject(std::string objectId, std::string classId, std::string collection, SoSeparator* geometry, SoSeparator* collision);
162 static bool isInitialized;
164 std::string collection;
165 std::string objectId;
169 void addManipulator(SoTransformManip* manip);
171 void applyManipulator();
173 bool hasManipulator();
175 void trackThisTransformation(SoTransform* transformation);
176 void untrackTransformations();
178 SbVec3f lastTranslation;
179 SbRotation lastRotation;
182 SbRotation getHistoryRotation();
183 SbVec3f getHistoryTranslation();
185 SoTransformManip* manipNode;
186 SoTransform* transformNode;
187 SoSwitch* switchNode;
void setTranslation(SbVec3f translation)
Sets the Translation of the SceneObject.
void showCollisionMesh(bool show)
Decides, whether CollisionMesh is beeing shown.
SbRotation getRotation()
Returns the Rotation of the SceneObject.
void setCollection(std::string &collection)
Sets the Collection of the SceneObject.
void setObjectId(std::string &objectId)
Sets the ObjectId of the SceneObject.
std::string getCollection() const
Returns the Collection of the SceneObject.
void setClassId(std::string &classId)
Sets the ClassId of the SceneObject.
SbVec3f getTranslation()
Returns the Translation of the SceneObject.
bool isMutable()
Returns if you are allowed to change this object.
std::string getClassId() const
Returns the ClassId of the SceneObject.
void setRotation(SbRotation rotation)
Sets the Rotation of the SceneObject.
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT > >
Convenience function (with less typing) to transform a container of type InputT into the same contain...
std::map< std::string, std::string > getAllAttributes()
Returns all Attributes of the SceneObject as Map.
static void initClass()
Initializes Class.
std::string getObjectId() const
Returns the ObjectId of the SceneObject.