casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::GLPCDisplayList Class Reference

DisplayListElement that can contain lists of other DisplayListElements. More...

#include <GLPCDisplayList.h>

Inheritance diagram for casa::GLPCDisplayList:
casa::GLPCDisplayListElement

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)
 

Detailed Description

DisplayListElement that can contain lists of other DisplayListElements.

Synopsis

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.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

void casa::GLPCDisplayList::add ( GLPCDisplayListElement )

Append another element to list.

virtual void casa::GLPCDisplayList::call ( casacore::Bool  force = false,
casacore::uInt  spaces = 0 
)
virtual

Run the current list.

Reimplemented from casa::GLPCDisplayListElement.

void casa::GLPCDisplayList::resize ( )
private
casacore::uInt casa::GLPCDisplayList::sizeincrement ( ) const
inline

Return/Set amount to increase id list by.

Definition at line 195 of file GLPCDisplayList.h.

References sizeincr_.

void casa::GLPCDisplayList::sizeincrement ( const casacore::uInt  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
void casa::GLPCDisplayList::unrefall ( )
private

Member Data Documentation

GLPCDisplayListElement** casa::GLPCDisplayList::list_
private

Definition at line 210 of file GLPCDisplayList.h.

casacore::uInt casa::GLPCDisplayList::listSize_
private

Definition at line 209 of file GLPCDisplayList.h.

casacore::uInt casa::GLPCDisplayList::numentries_
private

Definition at line 208 of file GLPCDisplayList.h.

casacore::uInt casa::GLPCDisplayList::sizeincr_
private

Definition at line 207 of file GLPCDisplayList.h.

Referenced by sizeincrement().

GLfloat casa::GLPCDisplayList::xt_
private

Definition at line 206 of file GLPCDisplayList.h.

GLfloat casa::GLPCDisplayList::yt_
private

Definition at line 206 of file GLPCDisplayList.h.

GLfloat casa::GLPCDisplayList::zt_
private

Definition at line 206 of file GLPCDisplayList.h.


The documentation for this class was generated from the following file: