ACG::SceneGraph::SliceNode Class Reference

Inheritance diagram for ACG::SceneGraph::SliceNode:
Inheritance graph
[legend]
Collaboration diagram for ACG::SceneGraph::SliceNode:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Plane { NONE = 1, XY_PLANE = 2, YZ_PLANE = 3, XZ_PLANE = 4 }

Public Member Functions

 SliceNode (BaseNode *_parent=0, std::string _name="<SliceNode>")
void set_visible_box (const Vec3f &_bmin, const Vec3f &_bmax)
void set_texture_box (const Vec3f &_bmin, const Vec3f &_bmax)
 ACG_CLASSNAME (SliceNode)
unsigned int availableDrawModes () const
void boundingBox (Vec3f &_bbMin, Vec3f &_bbMax)
void draw (GLState &_state, unsigned int _drawMode)
void draw_frame () const
void draw_planes () const
void pick (GLState &_state, PickTarget _target)
bool is_enabled (Plane _plane) const
void set_enabled (Plane _plane)
Vec3f cursor () const
void set_cursor (const Vec3f &_cursor)
void view_frame (bool _view_frame)

Private Attributes

Vec3f visible_min_
Vec3f visible_max_
Vec3f texture_min_
Vec3f texture_max_
Vec3f cursor_
bool view_frame_
Plane enabled_

Detailed Description

Definition at line 69 of file SliceNode.hh.


Member Function Documentation

unsigned int ACG::SceneGraph::SliceNode::availableDrawModes (  )  const [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::BaseNode.

Definition at line 109 of file SliceNode.cc.

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

void ACG::SceneGraph::SliceNode::boundingBox ( Vec3f &  ,
Vec3f &   
) [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::BaseNode.

Definition at line 98 of file SliceNode.cc.

void ACG::SceneGraph::SliceNode::draw ( GLState ,
unsigned int   
) [virtual]

Draw this node using the draw modes _drawMode

Reimplemented from ACG::SceneGraph::BaseNode.

Definition at line 124 of file SliceNode.cc.

void ACG::SceneGraph::SliceNode::pick ( GLState ,
PickTarget   
) [virtual]

Draw the node using the GL picking name stack. The node's ID will already be on the name stack, so only names identifing e.g. faces should be used ( by glLoadName() ).

Reimplemented from ACG::SceneGraph::BaseNode.

Definition at line 519 of file SliceNode.cc.

References ACG::GLState::pick_set_maximum(), and ACG::GLState::pick_set_name().


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

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