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