53 #ifndef TRIALDISPLAY_GLPCDISPLAYLIST_H
54 #define TRIALDISPLAY_GLPCDISPLAYLIST_H
88 void name(
const char *);
102 virtual void start();
116 const char *
name=NULL);
138 GLPCDisplayListEntry::GLPCDisplayListEntry(
139 const char *
name=NULL,
140 GLenum mode=GL_COMPILE_AND_EXECUTE);
146 virtual void start();
casacore::Bool trace() const
Enable/disable tracing.
GLPCDisplayList(const char *name=NULL, casacore::uInt sizeincr=GLPCDisplayList::DefaultSizeIncrement)
virtual void stop()
Stop display list recording.
virtual void call(casacore::Bool force=false, const casacore::uInt nspaces=0)
Draw element unless disabled or force is true.
virtual ~GLPCDisplayListEntry()
virtual void start()
Begin recording commands.
void add(GLPCDisplayListElement *)
Append another element to list.
GLPCDisplayListElement ** list_
virtual void start()
Begin recording commands.
casacore::uInt numentries_
virtual ~GLPCDisplayListElement()
Elements self delete when the reference count goes to 0.
Base class for the various display list subclasses.
casacore::uInt sizeincrement() const
Return/Set amount to increase id list by.
GLPCDisplayListElement(const char *name=NULL)
virtual void call(casacore::Bool force=false, casacore::uInt spaces=0)
Run the current list.
void sizeincrement(const casacore::uInt sizeincr)
casacore::Bool disabled() const
virtual void stop()
Stop display list recording.
Returns a Display casacore::List Element for recording GL commands.
const Char * chars() const
** Casacore synonym
casacore::uLong useCount() const
Each element is reference counted.
bool Bool
Define the standard types used by Casacore.
DisplayListElement that can contain lists of other DisplayListElements.
void trace(const casacore::Bool t)
String: the storage and methods of handling collections of characters.
void traceCheck(casacore::uInt spaces=0, const char *str=NULL, const char *name=NULL)
casacore::Bool enabled() const
enable/disable
void translation(casacore::Float &xo, casacore::Float &yo) const
Return current translation.
virtual void call(casacore::Bool force, const casacore::uInt spaces)
Draw element unless disabled or force is true.
void translate(casacore::Float xt, casacore::Float yt, casacore::Float zt=0.0)
Translate the list.
const char * name() const
Each element has a name which is printed out when tracing.