35 #ifndef ANATOMIST_OBJECT_VOLRENDER_H 36 #define ANATOMIST_OBJECT_VOLRENDER_H 44 template<
typename T>
class AVolume;
82 const GLTexture &gltex,
unsigned tex )
const;
84 const GLList &gllist )
const;
void createDefaultPalette(const std::string &name="")
function called by getOrCreatePalette() - overloadable, need not be called directly ...
ViewState holds information about how a view wants to see an object.
virtual bool Is2DObject()
Can be display in 2D windows.
virtual void SetMaterial(const Material &mat)
Base Anatomist object (abstract)
std::list< carto::rc_ptr< GLItem > > PrimList
virtual unsigned glDimTex(const ViewState &, unsigned tex=0) const
texture dimension (1, 2 [or 3])
virtual const GLComponent * glAPI() const
virtual std::string viewStateID(glPart part, const ViewState &) const
Makes a unique ID from a viewstate.
This class can be subclassed to represent an object that the programmer wants to have observed...
virtual bool renderingIsObserverDependent() const
true only if the rendering (openGL) of the object changes with the observer position/orientation of t...
std::string name() const
Name shown in control window.
virtual bool glMakeTexImage(const ViewState &state, const GLTexture &gltex, unsigned tex) const
If you make non-standard textures (ie not from a palette), overload this function to fill gltex...
virtual const AObjectPalette * glPalette(unsigned tex=0) const
virtual bool isTransparent() const
void setMaxSlices(unsigned n)
virtual const Material & material() const
virtual const Material * glMaterial() const
This class has to be rewritten, it's really really a shame.......
std::string shaderType() const
virtual Tree * optionTree() const
Menu tree for new options, see object/optionMatcher.h.
unsigned maxSlices() const
it's a list, in fact...
bool setShaderType(const std::string &)
virtual void glSetChanged(glPart, bool=true) const
virtual bool CanRemove(AObject *)
virtual void setPalette(const AObjectPalette &pal)
Base class for all OpenGL objects in Anatomist (with OpenGL display lists)
virtual bool glMakeBodyGLL(const ViewState &state, const GLList &gllist) const
If you want to make a non-standard GL display list for the body geometry, overload this function to f...
virtual void update(const Observable *observable, void *arg)
This class is an Observer of each of the AObject it groups.
glPart
GL object parts, each driving a GL list.
virtual void glSetTexEnvChanged(bool=true, unsigned tex=0) const
virtual bool render(PrimList &, const ViewState &)
rendering (generally 2D or 3D using OpenGL).
virtual Material & GetMaterial()
virtual AObjectPalette * palette()
Normally, getOrCreatePalette() should be used instead of this function in most cases.
virtual const GLComponent::TexExtrema & glTexExtrema(unsigned tex=0) const
static void volrenderProperties(const std::set< anatomist::AObject *> &)
virtual void glSetTexImageChanged(bool=true, unsigned tex=0) const
virtual bool Is3DObject()
Can be display in 3D windows.