ACG::SceneGraph::QuadNode Class Reference

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

List of all members.

Public Types

typedef std::vector< ACG::Vec3f > PointVector

Public Member Functions

 QuadNode (BaseNode *_parent=0, std::string _name="<QuadNode>")
 ACG_CLASSNAME (QuadNode)
unsigned int availableDrawModes () const
void boundingBox (Vec3f &_bbMin, Vec3f &_bbMax)
void draw (GLState &_state, unsigned int _drawMode)
void pick (GLState &_state, PickTarget _target)
void add_quad (const ACG::Vec3f &_p0, const ACG::Vec3f &_p1, const ACG::Vec3f &_p2, const ACG::Vec3f &_p3)
void clear ()

Protected Types

enum  FaceMode { FACE_NORMALS, FACE_COLORS, PER_VERTEX }

Protected Member Functions

void draw_vertices ()
void draw_faces ()
void draw_wireframe ()

Protected Attributes

PointVector point_
PointVector normal_

Detailed Description

Definition at line 68 of file QuadNode.hh.


Member Function Documentation

unsigned int ACG::SceneGraph::QuadNode::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 107 of file QuadNode.cc.

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

void ACG::SceneGraph::QuadNode::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 89 of file QuadNode.cc.

void ACG::SceneGraph::QuadNode::draw ( GLState ,
unsigned int   
) [virtual]
void ACG::SceneGraph::QuadNode::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 214 of file QuadNode.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 .