35 #ifndef ANATOMIST_INTERPOLER_INTERPOLER_H
36 #define ANATOMIST_INTERPOLER_INTERPOLER_H
45 template<
int D>
class ASurface;
69 unsigned n = 0 )
const;
83 unsigned tex = 0 )
const;
85 unsigned tex = 0 )
const;
106 static int registerClass();
108 static int _classType;
Interpoler object: associates a ATexSurface and a Triangulated to map the TexSurface's texture onto t...
virtual GLComponent * glGeometry(const ViewState &vs)
AInterpoler(AObject *texsurf, AObject *surf)
virtual const GLComponent * texSurf() const
virtual GLComponent * orgGeom()
virtual unsigned glTexCoordSize(const ViewState &, unsigned tex=0) const
texture array size (must be >= numVertex to work), defalut=0
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
virtual GLComponent * glTexture(const ViewState &vs, unsigned n=0)
void clearNeighboursChanged()
virtual GLComponent * texSurf()
bool hasNeighboursChanged() const
virtual const TexExtrema & glTexExtrema(unsigned tex=0) const
virtual const GLComponent * orgGeom() const
void refreshTexCoordArray(const ViewState &state)
virtual bool CanRemove(AObject *)
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
virtual void computeNeighbours(const ViewState &state)
static Tree * _optionTree
virtual bool Is3DObject()
Can be display in 3D windows.
virtual bool Is2DObject()
Can be display in 2D windows.
void setNeighboursChanged()
virtual const GLComponent * glTexture(const ViewState &vs, unsigned n=0) const
virtual const GLfloat * glTexCoordArray(const ViewState &s, unsigned tex=0) const
virtual std::string viewStateID(glPart part, const ViewState &) const
Makes a unique ID from a viewstate.
virtual const AObjectPalette * glPalette(unsigned tex=0) const
virtual TexExtrema & glTexExtrema(unsigned tex=0)
virtual const GLComponent * glGeometry(const ViewState &vs) const
Base Anatomist object (abstract)
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
glPart
GL object parts, each driving a GL list.
This class can be subclassed to represent an object that the programmer wants to have observed.
ASurface< 3 > ATriangulated
ViewState holds information about how a view wants to see an object.