50 #ifndef VOLUME_MESH_OBJECT_HH
51 #define VOLUME_MESH_OBJECT_HH
54 #include <ACG/Utils/SmartPointer.hh>
56 #include <ACG/Math/VectorT.hh>
57 #include <ACG/Scenegraph/SeparatorNode.hh>
58 #include <ACG/Scenegraph/StatusNodesT.hh>
59 #include <ACG/Scenegraph/ShaderNode.hh>
60 #include <ACG/Scenegraph/TextureNode.hh>
63 #include <ObjectTypes/VolumeMeshObject/VolumeMeshNode.hh>
65 #include <OpenVolumeMesh/Attribs/StatusAttrib.hh>
66 #include <OpenVolumeMesh/Attribs/ColorAttrib.hh>
67 #include <OpenVolumeMesh/Attribs/NormalAttrib.hh>
68 #include <OpenVolumeMesh/Attribs/TexCoordAttrib.hh>
135 const StatusAttrib&
status()
const {
return statusAttrib_; }
136 StatusAttrib&
status() {
return statusAttrib_; }
138 const ColorAttrib&
colors()
const {
return colorAttrib_; }
139 ColorAttrib&
colors() {
return colorAttrib_; }
141 const NormalAttrib&
normals()
const {
return normalAttrib_; }
142 NormalAttrib&
normals() {
return normalAttrib_; }
144 const TexCoordAttrib&
texcoords()
const {
return texcoordAttrib_; }
174 void updateSelection();
177 void updateGeometry();
183 void updateTexture();
186 void updateTopology();
240 bool picked(
unsigned int _node_idx);
253 #if defined(INCLUDE_TEMPLATES) && !defined(VOLUMEMESHOBJECTT_CC)
254 #define VOLUMEMESHOBJECT_TEMPLATES
255 #include "VolumeMeshObjectT.cc"
StatusAttrib statusAttrib_
return a pointer to the mesh
TexCoordAttrib & texcoords()
return a pointer to the mesh
ColorAttrib & colors()
return a pointer to the mesh
NormalAttrib normalAttrib_
return a pointer to the mesh
virtual QString getObjectinfo()
Get all Info for the Object as a string.
ptr::shared_ptr< MeshT > mesh_
return a pointer to the mesh
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
ACG::SceneGraph::VolumeMeshNodeT< MeshT > * meshNode_
Scenegraph Mesh Node.
virtual bool pickingEnabled()
OpenVolumeMesh::StatusAttrib StatusAttrib
return a pointer to the mesh
OpenVolumeMesh::ColorAttrib< ACG::Vec4f > ColorAttrib
return a pointer to the mesh
ColorAttrib colorAttrib_
return a pointer to the mesh
const ColorAttrib & colors() const
return a pointer to the mesh
virtual BaseNode * primaryNode()
const TexCoordAttrib & texcoords() const
return a pointer to the mesh
OpenVolumeMesh::NormalAttrib< MeshT > NormalAttrib
return a pointer to the mesh
virtual void enablePicking(bool _enable)
virtual ACG::SceneGraph::ShaderNode * shaderNode()
ACG::SceneGraph::TextureNode * textureNode_
Scenegraph Texture Node.
const StatusAttrib & status() const
return a pointer to the mesh
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
NormalAttrib & normals()
return a pointer to the mesh
StatusAttrib & status()
return a pointer to the mesh
OpenVolumeMesh::TexCoordAttrib< ACG::Vec2f > TexCoordAttrib
return a pointer to the mesh
ACG::SceneGraph::ShaderNode * shaderNode_
Scenegraph Shader Node.
const NormalAttrib & normals() const
return a pointer to the mesh
TexCoordAttrib texcoordAttrib_
return a pointer to the mesh
virtual BaseObject * copy()
Returns a full copy of the object.
virtual bool picked(uint _node_idx)
detect if the node has been picked