34 #ifndef ANA_VOLUME_VOLUMEVIEW_H
35 #define ANA_VOLUME_VOLUMEVIEW_H
77 {
return _myvolume->voxelSize(); }
81 virtual bool isTransparent()
const {
return _myvolume->isTransparent(); }
82 float MinT()
const {
return _myvolume->MinT(); }
83 float MaxT()
const {
return _myvolume->MaxT(); }
85 std::vector<float> & bmax )
const
86 {
return _myvolume->boundingBox( bmin, bmax ); }
88 std::vector<float> & bmax )
const
89 {
return _myvolume->boundingBox2D( bmin, bmax ); }
97 std::vector<carto::rc_ptr<AVolume<T> > > _avolume;
98 std::vector<int> _target_size;
100 int _resolution_level;
Base Anatomist object (abstract)
int type() const
Object type identifier.
virtual std::vector< float > voxelSize() const
Returns at least 4 sizes. For 3D objects, returns (1, 1, 1, 1)
virtual int MType() const
Precise type of multi-object.
bool Is2DObject()
Can be display in 2D windows.
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.
AVolumeView(carto::rc_ptr< carto::Volume< T > > vol)
virtual void setVolume(carto::rc_ptr< carto::Volume< T > > vol)
virtual void SetExtrema()
Scans the object internals and determines its (texture) extrema values.
virtual void adjustPalette()
Creates or updates object palette according to object values (if needed)
AVolumeView(const std::vector< carto::rc_ptr< carto::Volume< T > > > &vols)
bool textured2D() const
true if 2D rendering uses a textured plane (not a full openGL object)
virtual bool boundingBox2D(std::vector< float > &bmin, std::vector< float > &bmax) const
Bounding box in 2D views mode.
void setupTransformationFromView()
Point3df initialFOV() const
virtual bool CanRemove(AObject *)
int resolutionLevel() const
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
float MinT() const
Obsolete, deprecated.
void setupViewFromTransformation()
const std::vector< int > & targetSize() const
AVolumeView(const std::list< AObject * > &)
float MaxT() const
Obsolete, deprecated.
carto::rc_ptr< AVolume< T > > view()
AVolumeView(const std::string &filename)
int selectBestResolutionLevel(const Point3df &vs) const
virtual bool render(PrimList &prim, const ViewState &vs)
rendering (generally 2D or 3D using OpenGL).
virtual bool isTransparent() const
virtual void setFileName(const std::string &fname)
void setInitialFOV(const Point3df &fov)
void setTargetSize(const std::vector< int > &)
const carto::rc_ptr< AVolume< T > > view() const
bool Is3DObject()
Can be display in 3D windows.
This class can be subclassed to represent an object that the programmer wants to have observed.
std::list< carto::rc_ptr< GLItem > > PrimList
ViewState holds information about how a view wants to see an object.