Base class for the various display list subclasses. More...
#include <GLPCDisplayList.h>
Public Member Functions | |
virtual void | call (Bool force=False, const uInt nspaces=0) |
Draw element unless disabled or force is True. | |
Bool | enabled () const |
enable/disable | |
Bool | disabled () const |
virtual void | disable () |
virtual void | enable () |
const char * | name () const |
Each element has a name which is printed out when tracing. | |
void | name (const char *) |
Bool | trace () const |
Enable/disable tracing. | |
void | trace (const Bool t) |
virtual void | start () |
Begin recording commands. | |
virtual void | stop () |
Stop display list recording. | |
uLong | useCount () const |
Each element is reference counted. | |
void | ref () |
void | unref () |
Protected Member Functions | |
GLPCDisplayListElement (const char *name=NULL) | |
virtual | ~GLPCDisplayListElement () |
Elements self delete when the reference count goes to 0. | |
void | traceCheck (uInt spaces=0, const char *str=NULL, const char *name=NULL) |
Private Attributes | |
uLong | usage_ |
Bool | enabled_ |
Bool | trace_ |
String | name_ |
Base class for the various display list subclasses.
Definition at line 66 of file GLPCDisplayList.h.
casa::GLPCDisplayListElement::GLPCDisplayListElement | ( | const char * | name = NULL |
) | [protected] |
virtual casa::GLPCDisplayListElement::~GLPCDisplayListElement | ( | ) | [protected, virtual] |
Elements self delete when the reference count goes to 0.
virtual void casa::GLPCDisplayListElement::call | ( | Bool | force = False , |
|
const uInt | nspaces = 0 | |||
) | [virtual] |
Draw element unless disabled or force is True.
Reimplemented in casa::GLPCDisplayListEntry, and casa::GLPCDisplayList.
virtual void casa::GLPCDisplayListElement::disable | ( | ) | [virtual] |
Bool casa::GLPCDisplayListElement::disabled | ( | ) | const [inline] |
Definition at line 76 of file GLPCDisplayList.h.
References enabled_.
virtual void casa::GLPCDisplayListElement::enable | ( | ) | [virtual] |
Bool casa::GLPCDisplayListElement::enabled | ( | ) | const [inline] |
void casa::GLPCDisplayListElement::name | ( | const char * | ) |
const char* casa::GLPCDisplayListElement::name | ( | ) | const [inline] |
Each element has a name which is printed out when tracing.
Definition at line 85 of file GLPCDisplayList.h.
References name_.
void casa::GLPCDisplayListElement::ref | ( | ) |
virtual void casa::GLPCDisplayListElement::start | ( | ) | [virtual] |
Begin recording commands.
Recording is a one shot deal. After stop is called, recording can not be reenabled.
Reimplemented in casa::GLPCDisplayListEntry.
virtual void casa::GLPCDisplayListElement::stop | ( | ) | [virtual] |
Stop display list recording.
Ignored if not already recording.
Reimplemented in casa::GLPCDisplayListEntry.
void casa::GLPCDisplayListElement::trace | ( | const Bool | t | ) | [inline] |
Definition at line 95 of file GLPCDisplayList.h.
References trace_.
Bool casa::GLPCDisplayListElement::trace | ( | ) | const [inline] |
void casa::GLPCDisplayListElement::traceCheck | ( | uInt | spaces = 0 , |
|
const char * | str = NULL , |
|||
const char * | name = NULL | |||
) | [protected] |
void casa::GLPCDisplayListElement::unref | ( | ) |
uLong casa::GLPCDisplayListElement::useCount | ( | ) | const [inline] |
Each element is reference counted.
Definition at line 106 of file GLPCDisplayList.h.
References usage_.
Bool casa::GLPCDisplayListElement::enabled_ [private] |
Definition at line 119 of file GLPCDisplayList.h.
Referenced by disabled(), and enabled().
String casa::GLPCDisplayListElement::name_ [private] |
Definition at line 121 of file GLPCDisplayList.h.
Referenced by name().
Bool casa::GLPCDisplayListElement::trace_ [private] |
Definition at line 120 of file GLPCDisplayList.h.
Referenced by trace().
uLong casa::GLPCDisplayListElement::usage_ [private] |
Definition at line 118 of file GLPCDisplayList.h.
Referenced by useCount().