35 #ifndef ANA_SURFACE_TEXTURE_H
36 #define ANA_SURFACE_TEXTURE_H
59 virtual unsigned size(
float time = 0 )
const;
64 unsigned tex = 0 )
const;
69 unsigned tex = 0 )
const;
76 std::vector<float> & bmax )
const;
86 tex,
bool normalize_data =
true );
89 bool always_copy =
false )
const;
96 virtual bool savable()
const {
return true; }
97 virtual bool reload(
const std::string & filename );
98 bool save(
const std::string & filename );
108 template <
typename T>
struct Private_;
Base Anatomist object (abstract)
std::string name() const
Name shown in control window.
High-level Texture object in Anatomist.
virtual carto::GenericObject * attributed()
virtual void update(const Observable *observable, void *arg)
This method is called whenever the observed object is changed.
virtual bool reload(const std::string &filename)
Re-reads objects from disk.
virtual bool loadable() const
virtual ObjectMenu * optionMenu() const
void setTexture(carto::rc_ptr< TimeTexture< T > > tex, bool normalize_data=true)
virtual AObject * objectAt(const std::vector< float > &, float=0)
Find the object (sub-object) at given postion with a tolerence.
virtual bool Is2DObject()
virtual unsigned dimTexture() const
Number of texture values for a point.
virtual void notifyObservers(void *=0)
If this object has changed, as indicated by the hasChanged method, then notify all of its observers.
virtual void setInternalsChanged()
Notifies some underlying lower-level objects have changed.
bool save(const std::string &filename)
carto::rc_ptr< TimeTexture< T > > texture(bool rescaled=false, bool always_copy=false) const
virtual const float * textureCoords() const
virtual unsigned glNumTextures() const
virtual const float * glTexCoordArray(const ViewState &, unsigned tex=0) const
virtual unsigned glTexCoordSize(const ViewState &, unsigned tex=0) const
texture array size (must be >= numVertex to work), defalut=0
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.
void setTexExtrema(float min, float max)
virtual float textureTime(float time) const
virtual const float * textureCoords(float time) const
virtual void freeTexture()
virtual unsigned glDimTex(const ViewState &, unsigned tex=0) const
texture dimension (1, 2 [or 3])
virtual bool savable() const
virtual void setTexExtrema()
virtual unsigned size(float time=0) const
virtual unsigned glNumTextures(const ViewState &) const
virtual AObject * clone(bool shallow=true)
Makes a copy of the object, with a duplicated object structure, palette and material,...
virtual void createDefaultPalette(const std::string &name="")
function called by getOrCreatePalette() - overloadable, need not be called directly
virtual bool Is3DObject()
virtual const carto::GenericObject * attributed() const
This class can be subclassed to represent an object that the programmer wants to have observed.
Attributed objects wrapper.
ViewState holds information about how a view wants to see an object.