34 #ifndef ANA_SURFACE_FUSION2DMESH_H 35 #define ANA_SURFACE_FUSION2DMESH_H 86 virtual std::vector<float>
glMin2D()
const;
87 virtual std::vector<float>
glMax2D()
const;
92 virtual std::vector<float>
voxelSize()
const;
94 std::vector<float> & bmax )
const 108 std::vector<float> _voxelSize;
Anatomist object which contains several meshes: it displays the mesh polygons that intersect the curr...
ViewState holds information about how a view wants to see an object.
virtual const GLuint * glPolygonArray(const ViewState &) const
virtual const Sliceable * sliceableAPI() const
virtual std::vector< float > voxelSize() const
Returns at least 4 sizes. For 3D objects, returns (1, 1, 1, 1)
Point4df getPlane(const ViewState &) const
Gets the current slice plane.
Fusion2DMesh(const std::vector< AObject *> &obj)
virtual bool Is2DObject()
Can be display in 2D windows.
std::list< carto::rc_ptr< GLItem > > PrimList
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
This class can be subclassed to represent an object that the programmer wants to have observed...
bool needMergedSurfaceUpdate() const
Returns true if the merged surface needs to be updated and false otherwise.
virtual Sliceable * sliceableAPI()
virtual const GLComponent * glAPI() const
virtual std::vector< float > glMax2D() const
This class has to be rewritten, it's really really a shame.......
virtual const Referential * getReferential() const
virtual const GLfloat * glNormalArray(const ViewState &) const
normals array (optional), default=0 (no normals, flat shaded faces)
it's a list, in fact...
virtual void glAfterBodyGLL(const ViewState &, GLPrimitives &) const
GL list to execute after the body is rendered.
virtual void glBeforeBodyGLL(const ViewState &, GLPrimitives &) const
GL list to execute before the body is rendered.
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...
void updateMergedSurface(const ViewState &)
Updates the merged surface according to the surface object list and the current plane.
virtual unsigned glNumVertex(const ViewState &) const
virtual unsigned glPolygonSize(const ViewState &) const
number of vertices per polygon (default = 3: triangles)
virtual bool boundingBox2D(std::vector< float > &bmin, std::vector< float > &bmax) const
Bounding box in 2D views mode.
virtual void setVoxelSize(const std::vector< float > &)
std::list< RefGLItem > GLPrimitives
virtual std::vector< float > glMin2D() const
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
virtual const GLfloat * glVertexArray(const ViewState &) const
virtual unsigned glNumPolygon(const ViewState &) const
virtual const Material * glMaterial() const
virtual void SetMaterial(const Material &)
virtual GLComponent * glAPI()
virtual Material & GetMaterial()
Referential: marker for transformations, with an associated color.
virtual void update(const Observable *, void *)
This class is an Observer of each of the AObject it groups.
Sliceable objects can draw themselves in a 2D texture.