63 #include "QuadNode.hh"
70 namespace SceneGraph {
76 QuadNode::QuadNode(
BaseNode* _parent,
97 Vec3f bbMin(FLT_MAX,FLT_MAX,FLT_MAX);
98 Vec3f bbMax(-FLT_MAX,-FLT_MAX,-FLT_MAX);
100 PointVector::const_iterator p_it = point_.begin(), p_end = point_.end();
102 for ( ; p_it != p_end; ++p_it )
104 bbMin.minimize( *p_it );
105 bbMax.maximize( *p_it );
111 _bbMin.minimize(bbMind);
112 _bbMax.maximize(bbMaxd);
146 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
148 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
153 _drawMode & DrawModes::HIDDENLINE )
188 QuadNode::draw_faces()
195 for ( ; i < point_.size(); i += 4, j += 1 )
213 QuadNode::draw_wireframe()
216 for (
unsigned int i = 0; i < point_.size(); ++i )
226 QuadNode::pick( GLState & _state,
PickTarget )
228 _state.pick_set_maximum (1);
229 _state.pick_set_name (0);
Namespace providing different geometric functions concerning angles.
static void enable(GLenum _cap)
replaces glEnable, but supports locking
DrawMode HIDDENLINE
draw hidden line (2 rendering passes needed)
PickTarget
What target to use for picking.
static void disable(GLenum _cap)
replaces glDisable, but supports locking
DrawMode SOLID_FLAT_SHADED
draw flat shaded faces (requires face normals)
static void shadeModel(GLenum _mode)
replaces glShadeModel, supports locking
VectorT< double, 3 > Vec3d
DrawModes::DrawMode availableDrawModes() const
void glNormal(const Vec3f &_n)
Wrapper: glNormal for Vec3f.
DrawMode WIREFRAME
draw wireframe
DrawMode SOLID_FACES_COLORED
draw colored, but not lighted faces using face colors
void boundingBox(Vec3d &_bbMin, Vec3d &_bbMax)
static void depthRange(GLclampd _zNear, GLclampd _zFar)
replaces glDepthRange, supports locking
void glVertex(const Vec2i &_v)
Wrapper: glVertex for Vec2i.
DrawMode NONE
not a valid draw mode