casa
5.7.0-16
|
DisplayListElement that can contain lists of other DisplayListElements. More...
#include <GLPCDisplayList.h>
Public Types | |
enum | { DefaultSizeIncrement } |
Amount by which to increment the list of display lists when it fills up. More... | |
Public Member Functions | |
GLPCDisplayList (const char *name=NULL, casacore::uInt sizeincr=GLPCDisplayList::DefaultSizeIncrement) | |
GLPCDisplayList (const GLPCDisplayList &list) | |
Copy a display list's list. More... | |
~GLPCDisplayList () | |
void | add (GLPCDisplayListElement *) |
Append another element to list. More... | |
virtual void | call (casacore::Bool force=false, casacore::uInt spaces=0) |
Run the current list. More... | |
void | translate (casacore::Float xt, casacore::Float yt, casacore::Float zt=0.0) |
Translate the list. More... | |
void | translation (casacore::Float &xo, casacore::Float &yo) const |
Return current translation. More... | |
void | translation (casacore::Float &xo, casacore::Float &yo, casacore::Float &zo) const |
casacore::uInt | sizeincrement () const |
Return/Set amount to increase id list by. More... | |
void | sizeincrement (const casacore::uInt sizeincr) |
Public Member Functions inherited from casa::GLPCDisplayListElement | |
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 () |
Private Member Functions | |
void | resize () |
void | unrefall () |
Private Attributes | |
GLfloat | xt_ |
GLfloat | yt_ |
GLfloat | zt_ |
casacore::uInt | sizeincr_ |
casacore::uInt | numentries_ |
casacore::uInt | listSize_ |
GLPCDisplayListElement ** | list_ |
Additional Inherited Members | |
Protected Member Functions inherited from casa::GLPCDisplayListElement | |
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) |
DisplayListElement that can contain lists of other DisplayListElements.
When GLPixelCanvas::newList() is called, a GLPCDisplayList is created to hold all the GLPCDisplayListEntrys that are created. A GLPCDisplayList can also hold other GLPCDisplayLists (drawList called inside a list).
Definition at line 166 of file GLPCDisplayList.h.
anonymous enum |
Amount by which to increment the list of display lists when it fills up.
Enumerator | |
---|---|
DefaultSizeIncrement |
Definition at line 170 of file GLPCDisplayList.h.
casa::GLPCDisplayList::GLPCDisplayList | ( | const char * | name = NULL , |
casacore::uInt | sizeincr = GLPCDisplayList::DefaultSizeIncrement |
||
) |
casa::GLPCDisplayList::GLPCDisplayList | ( | const GLPCDisplayList & | list | ) |
Copy a display list's list.
casa::GLPCDisplayList::~GLPCDisplayList | ( | ) |
void casa::GLPCDisplayList::add | ( | GLPCDisplayListElement * | ) |
Append another element to list.
|
virtual |
Run the current list.
Reimplemented from casa::GLPCDisplayListElement.
|
private |
|
inline |
Return/Set amount to increase id list by.
Definition at line 195 of file GLPCDisplayList.h.
References sizeincr_.
|
inline |
Definition at line 198 of file GLPCDisplayList.h.
References sizeincr_.
void casa::GLPCDisplayList::translate | ( | casacore::Float | xt, |
casacore::Float | yt, | ||
casacore::Float | zt = 0.0 |
||
) |
Translate the list.
Set translation values. New values are added to current.
void casa::GLPCDisplayList::translation | ( | casacore::Float & | xo, |
casacore::Float & | yo | ||
) | const |
Return current translation.
void casa::GLPCDisplayList::translation | ( | casacore::Float & | xo, |
casacore::Float & | yo, | ||
casacore::Float & | zo | ||
) | const |
|
private |
|
private |
Definition at line 210 of file GLPCDisplayList.h.
|
private |
Definition at line 209 of file GLPCDisplayList.h.
|
private |
Definition at line 208 of file GLPCDisplayList.h.
|
private |
Definition at line 207 of file GLPCDisplayList.h.
Referenced by sizeincrement().
|
private |
Definition at line 206 of file GLPCDisplayList.h.
|
private |
Definition at line 206 of file GLPCDisplayList.h.
|
private |
Definition at line 206 of file GLPCDisplayList.h.