35#ifndef ANA_SURFACE_TESSELATEDMESH_H
36#define ANA_SURFACE_TESSELATEDMESH_H
86 unsigned n = 0 )
const;
96 static int registerClass();
Base Anatomist object (abstract)
int type() const
Object type identifier.
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
This class has to be rewritten, it's really really a shame.......
This class can be subclassed to represent an object that the programmer wants to have observed.
Referential: marker for transformations, with an associated color.
virtual int MType() const
Precise type of multi-object.
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
virtual AObject * fallbackReferentialInheritance() const
object to take referential from when no ref is assigned
virtual GLComponent * glGeometry(const ViewState &vs)
virtual unsigned glNumPolygon(const ViewState &) const
virtual const Material & material() const
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
virtual void SetMaterial(const Material &)
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
virtual const GLfloat * glVertexArray(const ViewState &) const
virtual Material & GetMaterial()
virtual GLComponent * glTexture(const ViewState &vs, unsigned n=0)
virtual const GLfloat * glNormalArray(const ViewState &) const
normals array (optional), default=0 (no normals, flat shaded faces)
TesselatedMesh(const std::vector< AObject * > &obj)
virtual unsigned glNumVertex(const ViewState &) const
virtual const GLComponent * glGeometry(const ViewState &vs) const
virtual bool Is3DObject()
Can be display in 3D windows.
virtual unsigned glPolygonSize(const ViewState &) const
number of vertices per polygon (default = 3: triangles)
virtual const GLComponent * glTexture(const ViewState &vs, unsigned n=0) const
virtual const GLuint * glPolygonArray(const ViewState &) const
number of vertices per polygon (default = 3: triangles)
const AObject * tesselatedMesh() const
AObject * tesselatedMesh()
virtual bool CanRemove(AObject *obj)
virtual bool Is2DObject()
Can be display in 2D windows.
const AObject * firstPolygon() const
virtual ~TesselatedMesh()
void tesselate(const ViewState &) const
virtual const Material * glMaterial() const
std::list< carto::rc_ptr< GLItem > > PrimList
ViewState holds information about how a view wants to see an object.