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> 136 const StatusAttrib&
status()
const {
return statusAttrib_; }
137 StatusAttrib&
status() {
return statusAttrib_; }
139 const ColorAttrib&
colors()
const {
return colorAttrib_; }
140 ColorAttrib&
colors() {
return colorAttrib_; }
142 const NormalAttrib&
normals()
const {
return normalAttrib_; }
143 NormalAttrib&
normals() {
return normalAttrib_; }
145 const TexCoordAttrib&
texcoords()
const {
return texcoordAttrib_; }
175 void updateSelection();
178 void updateGeometry();
184 void updateTexture();
187 void updateTopology();
241 bool picked(
unsigned int _node_idx);
254 #if defined(INCLUDE_TEMPLATES) && !defined(VOLUMEMESHOBJECTT_CC) 255 #define VOLUMEMESHOBJECT_TEMPLATES 256 #include "VolumeMeshObjectT.cc"
ACG::SceneGraph::ShaderNode * shaderNode_
Scenegraph Shader Node.
const ColorAttrib & colors() const
return a pointer to the mesh
const StatusAttrib & status() const
return a pointer to the mesh
NormalAttrib & normals()
return a pointer to the mesh
ColorAttrib colorAttrib_
return a pointer to the mesh
OpenVolumeMesh::StatusAttrib StatusAttrib
return a pointer to the mesh
ACG::SceneGraph::VolumeMeshNodeT< MeshT > * meshNode_
Scenegraph Mesh Node.
StatusAttrib & status()
return a pointer to the mesh
OpenVolumeMesh::TexCoordAttrib< ACG::Vec2f > TexCoordAttrib
return a pointer to the mesh
virtual BaseNode * primaryNode()
virtual bool picked(uint _node_idx)
detect if the node has been picked
ACG::SceneGraph::TextureNode * textureNode_
Scenegraph Texture Node.
virtual bool pickingEnabled()
const NormalAttrib & normals() const
return a pointer to the mesh
NormalAttrib normalAttrib_
return a pointer to the mesh
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
OpenVolumeMesh::NormalAttrib< MeshT > NormalAttrib
return a pointer to the mesh
TexCoordAttrib & texcoords()
return a pointer to the mesh
virtual BaseObject * copy()
Returns a full copy of the object.
ColorAttrib & colors()
return a pointer to the mesh
virtual void enablePicking(bool _enable)
virtual QString getObjectinfo()
Get all Info for the Object as a string.
ptr::shared_ptr< MeshT > mesh_
return a pointer to the mesh
OpenVolumeMesh::ColorAttrib< ACG::Vec4f > ColorAttrib
return a pointer to the mesh
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
TexCoordAttrib texcoordAttrib_
return a pointer to the mesh
virtual ACG::SceneGraph::ShaderNode * shaderNode()
StatusAttrib statusAttrib_
return a pointer to the mesh
const TexCoordAttrib & texcoords() const
return a pointer to the mesh