casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes
casa::GLPCDisplayList Class Reference

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

#include <GLPCDisplayList.h>

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

List of all members.

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, uInt sizeincr=GLPCDisplayList::DefaultSizeIncrement)
 GLPCDisplayList (const GLPCDisplayList &list)
 Copy a display list's list.
 ~GLPCDisplayList ()
void add (GLPCDisplayListElement *)
 Append another element to list.
virtual void call (Bool force=False, uInt spaces=0)
 Run the current list.
void translate (Float xt, Float yt, Float zt=0.0)
 Translate the list.
void translation (Float &xo, Float &yo) const
 Return current translation.
void translation (Float &xo, Float &yo, Float &zo) const
uInt sizeincrement () const
 Return/Set amount to increase id list by.
void sizeincrement (const uInt sizeincr)

Private Member Functions

void resize ()
void unrefall ()

Private Attributes

GLfloat xt_
GLfloat yt_
GLfloat zt_
uInt sizeincr_
uInt numentries_
uInt listSize_
GLPCDisplayListElement ** list_

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 154 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 158 of file GLPCDisplayList.h.


Constructor & Destructor Documentation

Copy a display list's list.


Member Function Documentation

Append another element to list.

virtual void casa::GLPCDisplayList::call ( Bool  force = False,
uInt  spaces = 0 
) [virtual]

Run the current list.

Reimplemented from casa::GLPCDisplayListElement.

void casa::GLPCDisplayList::resize ( ) [private]

Return/Set amount to increase id list by.

Definition at line 183 of file GLPCDisplayList.h.

References sizeincr_.

void casa::GLPCDisplayList::sizeincrement ( const uInt  sizeincr) [inline]

Definition at line 184 of file GLPCDisplayList.h.

References sizeincr_.

void casa::GLPCDisplayList::translate ( Float  xt,
Float  yt,
Float  zt = 0.0 
)

Translate the list.

Set translation values. New values are added to current.

void casa::GLPCDisplayList::translation ( Float xo,
Float yo 
) const

Return current translation.

void casa::GLPCDisplayList::translation ( Float xo,
Float yo,
Float zo 
) const
void casa::GLPCDisplayList::unrefall ( ) [private]

Member Data Documentation

Definition at line 194 of file GLPCDisplayList.h.

Definition at line 193 of file GLPCDisplayList.h.

Definition at line 192 of file GLPCDisplayList.h.

Definition at line 191 of file GLPCDisplayList.h.

Referenced by sizeincrement().

GLfloat casa::GLPCDisplayList::xt_ [private]

Definition at line 190 of file GLPCDisplayList.h.

GLfloat casa::GLPCDisplayList::yt_ [private]

Definition at line 190 of file GLPCDisplayList.h.

GLfloat casa::GLPCDisplayList::zt_ [private]

Definition at line 190 of file GLPCDisplayList.h.


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