63 #include "QuadNode.hh" 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 )
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 )
DrawMode HIDDENLINE
draw hidden line (2 rendering passes needed)
DrawMode SOLID_FLAT_SHADED
draw flat shaded faces (requires face normals)
DrawMode WIREFRAME
draw wireframe
void glNormal(const Vec3f &_n)
Wrapper: glNormal for Vec3f.
void glVertex(const Vec2i &_v)
Wrapper: glVertex for Vec2i.
PickTarget
What target to use for picking.
vector_type & maximize(const vector_type &_rhs)
maximize values: same as *this = max(*this, _rhs), but faster
static void enable(GLenum _cap)
replaces glEnable, but supports locking
DrawMode SOLID_FACES_COLORED
draw colored, but not lighted faces using face colors
bool pick_set_maximum(unsigned int _idx)
Set the maximal number of primitives/components of your object.
static void depthRange(GLclampd _zNear, GLclampd _zFar)
replaces glDepthRange, supports locking
static void disable(GLenum _cap)
replaces glDisable, but supports locking
Namespace providing different geometric functions concerning angles.
void boundingBox(Vec3d &_bbMin, Vec3d &_bbMax)
void pick_set_name(unsigned int _idx)
sets the current name/color (like glLoadName(_idx))
DrawMode NONE
not a valid draw mode
DrawModes::DrawMode availableDrawModes() const
vector_type & minimize(const vector_type &_rhs)
minimize values: same as *this = min(*this, _rhs), but faster
VectorT< double, 3 > Vec3d
static void shadeModel(GLenum _mode)
replaces glShadeModel, supports locking