67 virtual inline void render();
72 void addPoint(
float x,
float y,
float z,
unsigned char r,
unsigned char g,
unsigned char b)
74 m_boundingBox->expand(
Vec(x, y, z));
80 m_boundingBox->expand(
Vec(v.
x, v.
y, v.
z));
81 m_points.push_back(v);
92 void updateDisplayLists();
100 int getFieldsPerLine(
string filename);
113 if(m_listIndex != -1 && m_active)
122 glPointSize(m_pointSize);
124 glDisable(GL_LIGHTING);
126 glMultMatrixf(m_transformation.getData());
131 glCallList(m_activeListIndex);
135 glCallList(m_listIndex);
139 if(m_renderMode & RenderNormals)
141 glCallList(m_normalListIndex);
144 glEnable(GL_LIGHTING);
void addPoint(const uColorVertex &v)
ColorVertex< float, unsigned char > uColorVertex
std::shared_ptr< PointBuffer > PointBufferPtr
A dynamic bounding box class.
vector< uColorVertex > getPoints()
void setRenderMode(int mode)
boost::shared_array< float > floatArr
void addPoint(float x, float y, float z, unsigned char r, unsigned char g, unsigned char b)
vector< uColorVertex > m_points
std::shared_ptr< Model > ModelPtr