45 #include <ACG/Utils/SmartPointer.hh> 47 #include <ACG/Math/VectorT.hh> 48 #include <ACG/Scenegraph/SeparatorNode.hh> 49 #include <ACG/Scenegraph/StatusNodesT.hh> 50 #include <ACG/Scenegraph/ShaderNode.hh> 51 #include <ACG/Scenegraph/TextureNode.hh> 54 #include <ObjectTypes/VolumeMeshObject/VolumeMeshNode.hh> 56 #include <OpenVolumeMesh/Attribs/StatusAttrib.hh> 57 #include <OpenVolumeMesh/Attribs/ColorAttrib.hh> 58 #include <OpenVolumeMesh/Attribs/NormalAttrib.hh> 59 #include <OpenVolumeMesh/Attribs/TexCoordAttrib.hh> 116 const MeshT* mesh()
const;
128 const StatusAttrib&
status()
const {
return statusAttrib_; }
129 StatusAttrib&
status() {
return statusAttrib_; }
131 const ColorAttrib&
colors()
const {
return colorAttrib_; }
132 ColorAttrib&
colors() {
return colorAttrib_; }
134 const NormalAttrib&
normals()
const {
return normalAttrib_; }
135 NormalAttrib&
normals() {
return normalAttrib_; }
137 const TexCoordAttrib&
texcoords()
const {
return texcoordAttrib_; }
167 void updateSelection();
170 void updateGeometry();
176 void updateTexture();
179 void updateTopology();
233 bool picked(
unsigned int _node_idx);
virtual QString getObjectinfo()
Get all Info for the Object as a string.
virtual bool picked(uint _node_idx)
detect if the node has been picked
OpenVolumeMesh::StatusAttrib StatusAttrib
return a pointer to the mesh
virtual void setName(QString _name) override
path to the file from which the object is loaded ( defaults to "." )
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
ACG::SceneGraph::TextureNode * textureNode_
Scenegraph Texture Node.
const ColorAttrib & colors() const
return a pointer to the mesh
TexCoordAttrib texcoordAttrib_
return a pointer to the mesh
StatusAttrib & status()
return a pointer to the mesh
ACG::SceneGraph::VolumeMeshNodeT< MeshT > * meshNode_
Scenegraph Mesh Node.
ColorAttrib & colors()
return a pointer to the mesh
virtual void enablePicking(bool _enable)
virtual BaseNode * primaryNode()
TexCoordAttrib & texcoords()
return a pointer to the mesh
StatusAttrib statusAttrib_
return a pointer to the mesh
virtual void cleanup() override
ACG::SceneGraph::ShaderNode * shaderNode_
Scenegraph Shader Node.
NormalAttrib normalAttrib_
return a pointer to the mesh
const StatusAttrib & status() const
return a pointer to the mesh
virtual void update(UpdateType _type=UPDATE_ALL) override
This function is called to update the object.
const TexCoordAttrib & texcoords() const
return a pointer to the mesh
OpenVolumeMesh::NormalAttrib< MeshT > NormalAttrib
return a pointer to the mesh
const NormalAttrib & normals() const
return a pointer to the mesh
virtual ACG::SceneGraph::ShaderNode * shaderNode()
ptr::shared_ptr< MeshT > mesh_
return a pointer to the mesh
ColorAttrib colorAttrib_
return a pointer to the mesh
OpenVolumeMesh::ColorAttrib< ACG::Vec4f > ColorAttrib
return a pointer to the mesh
OpenVolumeMesh::TexCoordAttrib< ACG::Vec2f > TexCoordAttrib
return a pointer to the mesh
virtual BaseObject * copy()
Returns a full copy of the object.
virtual bool pickingEnabled()
NormalAttrib & normals()
return a pointer to the mesh