34 #ifndef ANA_SURFACE_SURFACE_H
35 #define ANA_SURFACE_SURFACE_H
62 ASurface(
const char *filename =
"" );
86 virtual float MinT()
const;
87 virtual float MaxT()
const;
89 virtual bool boundingBox( std::vector<float> & bmin,
90 std::vector<float> & bmax )
const;
93 virtual AObject*
objectAt(
const std::vector<float> & pos,
float tol = 0 );
109 virtual bool savable()
const {
return(
true ); }
110 virtual bool save(
const std::string & filename );
111 virtual bool reload(
const std::string & filename );
Base Anatomist object (abstract)
AimsVector< uint, D > Triangle
bool Is2DObject()
Can't be display in 2D windows.
virtual void notifyObservers(void *=0)
If this object has changed, as indicated by the hasChanged method, then notify all of its observers.
virtual bool render(anatomist::PrimList &primitiveList, const anatomist::ViewState &viewState)
rendering (generally 2D or 3D using OpenGL).
virtual unsigned glNumPolygon(const ViewState &) const
carto::rc_ptr< TimeSurfaceType > _surface
bool Is3DObject()
Can be display in 3D windows.
virtual bool glMakeBodyGLL(const anatomist::ViewState &viewState, const anatomist::GLList &glList) const
If you want to make a non-standard GL display list for the body geometry, overload this function to f...
virtual bool save(const std::string &filename)
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
carto::rc_ptr< TimeSurfaceType > surface()
void setSurface(carto::rc_ptr< TimeSurfaceType > surf)
virtual unsigned glPolygonSize(const ViewState &) const
number of vertices per polygon (default = 3: triangles)
const SurfaceType * surfaceOfTime(float time) const
virtual const GLfloat * glVertexArray(const ViewState &) const
virtual const GLuint * glPolygonArray(const ViewState &) const
ASurface(const char *filename="")
virtual carto::GenericObject * attributed()
virtual float MinT() const
Obsolete, deprecated.
virtual bool reload(const std::string &filename)
Re-reads objects from disk.
virtual unsigned glNumNormal(const ViewState &) const
virtual AObject * clone(bool shallow=true)
Makes a copy of the object, with a duplicated object structure, palette and material,...
virtual bool boundingBox(std::vector< float > &bmin, std::vector< float > &bmax) const
Fills bmin and bmax with the N-D bounding box extrema in the object's referential coordinates.
virtual float MaxT() const
Obsolete, deprecated.
virtual AObject * objectAt(const std::vector< float > &pos, float tol=0)
selection is disabled for surfaces
static void invertPolygonsStatic(const std::set< AObject * > &obj)
virtual bool savable() const
float actualTime(float time) const
virtual unsigned glNumVertex(const ViewState &) const
AimsSurface< D, Void > SurfaceType
virtual void UpdateMinAndMax()
const carto::rc_ptr< TimeSurfaceType > surface() const
virtual const GLfloat * glNormalArray(const ViewState &) const
normals array (optional), default=0 (no normals, flat shaded faces)
AimsTimeSurface< D, Void > TimeSurfaceType
virtual bool loadable() const
virtual void setInternalsChanged()
Notifies some underlying lower-level objects have changed.
Attributed objects wrapper.
std::list< carto::rc_ptr< GLItem > > PrimList
ViewState holds information about how a view wants to see an object.