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