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