87 tex_mode_(GL_MODULATE),
90 show_vnormals_(false),
91 show_fnormals_(false),
96#if defined(OM_USE_OSG) && OM_USE_OSG
111 bool set_texture( QImage& _texsrc );
113 void enable_strips();
114 void disable_strips();
117 Mesh& mesh() {
return mesh_; }
118 const Mesh& mesh()
const {
return mesh_; }
123 virtual void draw_scene(
const std::string& _draw_mode)
override;
132 { glVertex3fv( &mesh_.point( _vh )[0] ); }
135 { glVertex3fv( &_p[0] ); }
138 { glNormal3fv( &mesh_.normal( _vh )[0] ); }
141 { glTexCoord2fv( &mesh_.texcoord(_vh)[0] ); }
144 { glColor3ubv( &mesh_.color(_vh)[0] ); }
149 { glNormal3fv( &mesh_.normal( _fh )[0] ); }
152 { glColor3ubv( &mesh_.color(_fh)[0] ); }
155 int _f=GL_FRONT_AND_BACK,
int _m=GL_DIFFUSE )
157 OpenMesh::Vec3f c=OpenMesh::color_cast<OpenMesh::Vec3f>(mesh_.color(_fh));
160 glMaterialfv(_f, _m, &m[0]);
166 void compute_strips(
void)
177 virtual void keyPressEvent( QKeyEvent* _event)
override;
187 MyStripifier strips_;