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.
virtual int MType() const
Precise type of multi-object.
virtual const GLComponent * glTexture(const ViewState &vs, unsigned n=0) const
virtual GLComponent * glGeometry(const ViewState &vs)
virtual unsigned glNumPolygon(const ViewState &) 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 GLuint * glPolygonArray(const ViewState &) const
number of vertices per polygon (default = 3: triangles)
virtual const Material * glMaterial() const
virtual const GLComponent * glGeometry(const ViewState &vs) const
const AObject * tesselatedMesh() const
const AObject * firstPolygon() const
virtual GLComponent * glTexture(const ViewState &vs, unsigned n=0)
TesselatedMesh(const std::vector< AObject * > &obj)
virtual unsigned glNumVertex(const ViewState &) 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 GLfloat * glNormalArray(const ViewState &) const
normals array (optional), default=0 (no normals, flat shaded faces)
virtual bool CanRemove(AObject *obj)
virtual Material & GetMaterial()
virtual const Material & material() const
virtual bool Is2DObject()
Can be display in 2D windows.
virtual const GLfloat * glVertexArray(const ViewState &) const
virtual ~TesselatedMesh()
void tesselate(const ViewState &) const
virtual AObject * fallbackReferentialInheritance() const
object to take referential from when no ref is assigned
AObject * tesselatedMesh()
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
std::list< carto::rc_ptr< GLItem > > PrimList
ViewState holds information about how a view wants to see an object.