35 #ifndef ANA_MOBJECT_FUSION3D_H 
   36 #define ANA_MOBJECT_FUSION3D_H 
   81     Fusion3D( 
const std::vector<AObject *> & obj );
 
   93                               std::vector<float> & bmax ) 
const;
 
  126                                           unsigned tex = 0 ) 
const;
 
  142                                           unsigned tex = 0 ) 
const;
 
  151                                        unsigned tex = 0 ) 
const;
 
  153                                       unsigned tex = 0 ) 
const;
 
  177     virtual void insert( 
AObject* o, 
int pos )
 
  185     void  refreshVTextureWithPointToPoint( 
const ViewState &, 
 
  186                                            unsigned tex ) 
const;
 
  187     void  refreshVTextureWithLineToPoint( 
const ViewState &, 
 
  188                                           unsigned tex ) 
const;
 
  189     void  refreshVTextureWithInsideLineToPoint( 
const ViewState &, 
 
  190                                                 unsigned tex ) 
const;
 
  191     void  refreshVTextureWithOutsideLineToPoint( 
const ViewState &, 
 
  192                                                  unsigned tex ) 
const;
 
  193     void  refreshVTextureWithSphereToPoint( 
const ViewState &, 
 
  194                                             unsigned tex ) 
const;
 
  198     void refreshLineTexture( 
float start_depth, 
float stop_depth,
 
  199                              const ViewState &, 
unsigned tex ) 
const;
 
  201     float enhancedMean( 
float value, 
int nbElemCorrected, 
int nbElem ) 
const;
 
  217   inline float Fusion3D::enhancedMean( 
float value, 
 
  221     if( nbElemCorrected == 0 )
 
  223     return( value / ((
float) nbElemCorrected) 
 
  224             * ( 1. - 0.7 * ((
float) nbElemCorrected) / ((
float) nbElem) ) );
 
Multi-object generic iterator.
Base Anatomist object (abstract)
Anatomist object which contains a volume of functional data (fMRI, PET...) and a surface of the MRI a...
virtual void glSetAutoTexParams(const float *params, unsigned coord=0, unsigned tex=0)
void setMethod(Method method)
virtual glAutoTexturingMode glAutoTexMode(unsigned tex=0) const
const AObject * volume(unsigned n) const
virtual GLPrimitives glTexNameGLL(const ViewState &, unsigned tex=0) const
virtual std::string viewStateID(glPart part, const ViewState &) const
Makes a unique ID from a viewstate.
virtual int MType() const
Precise type of multi-object.
const_iterator firstVolume() const
virtual const GLComponent * glTexture(const ViewState &vs, unsigned tex=0) const
virtual bool Is3DObject()
Can be display in 3D windows.
TexExtrema & glTexExtrema(unsigned tex=0)
virtual GLComponent * glTexture(const ViewState &vs, unsigned tex=0)
SubMethod
3D mapping sub-methods
Fusion3D(const std::vector< AObject * > &obj)
static Tree * _optionTree
virtual void glSetTexRate(float rate, unsigned tex=0)
virtual unsigned glDimTex(const ViewState &s, unsigned tex=0) const
texture dimension (1, 2 [or 3])
unsigned _nsurf
number of 3D objects
void setDepth(float depth)
virtual void glSetTexFiltering(glTextureFiltering x, unsigned tex=0)
virtual bool CanRemove(AObject *obj)
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
virtual void glSetAutoTexMode(glAutoTexturingMode mode, unsigned tex=0)
virtual float glTexRate(unsigned tex=0) const
virtual bool Is2DObject()
Can be display in 2D windows.
virtual unsigned glNumTextures() const
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.
virtual const GLfloat * glTexCoordArray(const ViewState &, unsigned) const
virtual GLPrimitives glTexEnvGLL(const ViewState &, unsigned tex=0) const
virtual const float * glAutoTexParams(unsigned coord=0, unsigned tex=0) const
virtual unsigned glNumTextures(const ViewState &) const
virtual void glSetTexMode(glTextureMode mode, unsigned tex=0)
virtual void glSetTexEnvChanged(bool x=true, unsigned tex=0) const
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
virtual void glSetTexImageChanged(bool x=true, unsigned tex=0) const
void setSubMethod(SubMethod submethod)
const TexExtrema & glTexExtrema(unsigned tex=0) const
void refreshVTexture(const ViewState &) const
Refresh texture values.
virtual glTextureMode glTexMode(unsigned tex=0) const
virtual void glGarbageCollector(int nkept=-1)
Frees unused display lists.
virtual unsigned glTexCoordSize(const ViewState &, unsigned) const
texture array size (must be >= numVertex to work), defalut=0
virtual glTextureFiltering glTexFiltering(unsigned tex=0) const
virtual void glClearHasChangedFlags() const
virtual bool hasTexture() const
Textured objects have values associated with a geometric coordinate.
virtual const AObjectPalette * glPalette(unsigned tex=0) const
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
glPart
GL object parts, each driving a GL list.
virtual void erase(iterator &)
virtual void insert(AObject *)
This class can be subclassed to represent an object that the programmer wants to have observed.
std::list< carto::rc_ptr< GLItem > > PrimList
std::list< RefGLItem > GLPrimitives
ViewState holds information about how a view wants to see an object.