ACG::SceneGraph::StatusNodeT< Mesh, Mod > Class Template Reference

#include <ACG/Scenegraph/StatusNodesT.hh>

Inheritance diagram for ACG::SceneGraph::StatusNodeT< Mesh, Mod >:
Inheritance graph
[legend]
Collaboration diagram for ACG::SceneGraph::StatusNodeT< Mesh, Mod >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatusNodeT (const Mesh &_mesh, BaseNode *_parent=0, const std::string &_name="<StatusNode>")
 constructor
 ~StatusNodeT ()
 destructor
 ACG_CLASSNAME (StatusNode)
void update_cache ()
DrawModes::DrawMode availableDrawModes () const
void boundingBox (Vec3d &_bbMin, Vec3d &_bbMax)
void draw (GLState &_state, DrawModes::DrawMode _drawMode)
void pick (GLState &, PickTarget)

Private Types

typedef Mesh::Face Face
typedef Mesh::Vertex Vertex
typedef Mesh::Halfedge Halfedge
typedef Mesh::Edge Edge
typedef Mesh::FaceHandle FaceHandle

Private Member Functions

void draw_points ()
void draw_edges ()
void draw_faces (bool _per_vertex)

Private Attributes

const Mesh & mesh_
std::vector< unsigned int > v_cache_
std::vector< unsigned int > e_cache_
std::vector< unsigned int > f_cache_
std::vector< FaceHandle > fh_cache_
Vec3d bbMin_
Vec3d bbMax_

Detailed Description

template<class Mesh, class Mod>
class ACG::SceneGraph::StatusNodeT< Mesh, Mod >

Renders Status flags of Mesh Vertices/Faces/Edges

Definition at line 84 of file StatusNodesT.hh.


Member Function Documentation

template<class Mesh , class Mod >
DrawModes::DrawMode ACG::SceneGraph::StatusNodeT< Mesh, Mod >::availableDrawModes (  )  const [inline, virtual]

Return a list of available draw modes for this node: should be OR'ed from the items of the enum DrawModeIDs.

Reimplemented from ACG::SceneGraph::ACG::SceneGraph::BaseNode.

Definition at line 101 of file StatusNodesT.cc.

References ACG::SceneGraph::DrawModes::POINTS, ACG::SceneGraph::DrawModes::SOLID_FLAT_SHADED, and ACG::SceneGraph::DrawModes::WIREFRAME.

template<class Mesh , class Mod >
void ACG::SceneGraph::StatusNodeT< Mesh, Mod >::boundingBox ( Vec3d &  ,
Vec3d &   
) [inline, virtual]

Compute the bounding box of this node and update the values _bbMin and _bbMax accordingly. Do not initialize _bbMin and _bbMax since they may already store values of previous nodes' bounding box computation.

Reimplemented from ACG::SceneGraph::ACG::SceneGraph::BaseNode.

Definition at line 88 of file StatusNodesT.cc.

template<class Mesh , class Mod >
void ACG::SceneGraph::StatusNodeT< Mesh, Mod >::update_cache (  )  [inline]

build/update cache of active vertices/edges/faces. This function automatically enables caching.

Definition at line 115 of file StatusNodesT.cc.

Referenced by MeshObject< MeshT >::updateFeatures(), MeshObject< MeshT >::updateModelingRegions(), and MeshObject< MeshT >::updateSelection().


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .