34 #ifndef ANA_SURFACE_VECTORFIELD_H
35 #define ANA_SURFACE_VECTORFIELD_H
75 virtual std::vector<float>
glMin2D()
const;
76 virtual std::vector<float>
glMax2D()
const;
107 static int canFusion(
const std::set<AObject *> & obj );
Base Anatomist object (abstract)
std::string name() const
Name shown in control window.
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.
Sliceable objects can draw themselves in a 2D texture.
void setScaling(float scaling)
virtual const Sliceable * sliceableAPI() const
virtual std::vector< float > glMax2D() const
virtual void glBeforeBodyGLL(const ViewState &, GLPrimitives &) const
GL list to execute before the body is rendered.
virtual const AObjectPalette * glPalette(unsigned tex=0) const
std::vector< int > volumeSize(int channel) const
virtual const GLComponent * glAPI() const
virtual void glAfterBodyGLL(const ViewState &, GLPrimitives &) const
GL list to execute after the body is rendered.
virtual GLComponent * glAPI()
virtual void SetMaterial(const Material &)
virtual AObjectPalette * palette()
Normally, getOrCreatePalette() should be used instead of this function in most cases.
virtual std::vector< float > glMin2D() const
virtual const AObjectPalette * palette() const
void buildMesh(const ViewState &)
virtual std::vector< float > voxelSize() const
Returns at least 4 sizes. For 3D objects, returns (1, 1, 1, 1)
static int canFusion(const std::set< AObject * > &obj)
virtual bool Is2DObject()
Can be display in 2D windows.
std::vector< int > vectorChannelPosition(int channel) const
void setVectorChannelPosition(int channel, const std::vector< int > &pos)
virtual std::vector< float > glVoxelSize() const
virtual void update(const Observable *, void *)
This class is an Observer of each of the AObject it groups.
virtual void setPalette(const AObjectPalette &palette)
virtual Sliceable * sliceableAPI()
virtual const Referential * getReferential() const
VectorField(const std::vector< AObject * > &obj)
Point3di spaceCoordsDimensions(int channel) const
Point4df getPlane(const ViewState &) const
Gets the current slice plane.
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
virtual void createDefaultPalette(const std::string &name="")
function called by getOrCreatePalette() - overloadable, need not be called directly
void setVolume(int channel, AObject *obj)
virtual ObjectMenu * optionMenu() const
virtual bool Is3DObject()
Can be display in 3D windows.
virtual void setVoxelSize(const std::vector< float > &)
AObject * volume(int channel) const
static void editVectorFieldProperties(const std::set< AObject * > &obj)
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
void setSpaceCoordsDimensions(int channel, const Point3di &dims)
virtual Material & GetMaterial()
std::list< carto::rc_ptr< GLItem > > PrimList
std::list< RefGLItem > GLPrimitives
ViewState holds information about how a view wants to see an object.