35 #ifndef ANATOMIST_PRIMITIVE_PRIMITIVE_H
36 #define ANATOMIST_PRIMITIVE_PRIMITIVE_H
73 const std::list<unsigned> &
glLists()
const;
95 inline GLList(
unsigned gllist = 0 ) :
GLItem(), _item( gllist ) {}
99 unsigned item()
const {
return _item; }
118 unsigned item()
const {
return _item; }
virtual void callList() const
renders the display list
std::list< RefGLItem > items
OpenGL item (display list, texture, ...) with reference counter and cleanup upon destruction.
virtual void setGhost(bool)
virtual void callList() const =0
renders the display list
virtual bool ghost() const
ghost lists are not selectable and not rendered in Z buffers for selection
virtual void callList() const
renders the display list
GLList(unsigned gllist=0)
virtual void generate()
generates a new display list.
virtual ~GLList()
GLList destructor makes the shatred context current.
virtual void callList() const
renders the display list
virtual ~GLNoExecItemList()
virtual ~GLTexture()
GLTexture destructor makes the shatred context current.
GLTexture(unsigned gltex=0)
virtual void callList() const
renders the display list
virtual void generate()
generates a new texture name.
Multiple display lists and texture objects.
const std::list< unsigned > & glLists() const
void deleteList(unsigned)
void insertList(unsigned)
void insertTexture(unsigned)
void deleteTexture(unsigned)
std::list< unsigned > _gll
virtual ~Primitive()
Primitive destructor makes the shatred context current.
const std::list< unsigned > & textures() const
std::list< unsigned > _tex
virtual void callList() const
renders the display list
carto::rc_ptr< Primitive > RefPrimitive
carto::rc_ptr< GLTexture > RefGLTexture
carto::rc_ptr< GLItem > RefGLItem
carto::rc_ptr< GLList > RefGLList
carto::rc_ptr< GLItemList > RefGLItemList
std::list< RefGLItem > GLPrimitives