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

Base class for the various display list subclasses. More...

#include <GLPCDisplayList.h>

Inheritance diagram for casa::GLPCDisplayListElement:
casa::GLPCDisplayList casa::GLPCDisplayListEntry casa::GLPCTexturedImage

List of all members.

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_

Detailed Description

Base class for the various display list subclasses.

Definition at line 66 of file GLPCDisplayList.h.


Constructor & Destructor Documentation

casa::GLPCDisplayListElement::GLPCDisplayListElement ( const char *  name = NULL) [protected]

Elements self delete when the reference count goes to 0.


Member Function Documentation

virtual void casa::GLPCDisplayListElement::call ( Bool  force = False,
const uInt  nspaces = 0 
) [virtual]

Draw element unless disabled or force is True.

Reimplemented in casa::GLPCDisplayList, and casa::GLPCDisplayListEntry.

virtual void casa::GLPCDisplayListElement::disable ( ) [virtual]

Definition at line 74 of file GLPCDisplayList.h.

References enabled_.

virtual void casa::GLPCDisplayListElement::enable ( ) [virtual]

enable/disable

Definition at line 73 of file GLPCDisplayList.h.

References enabled_.

const char* casa::GLPCDisplayListElement::name ( ) const [inline]

Each element has a name which is printed out when tracing.

Definition at line 81 of file GLPCDisplayList.h.

References casa::String::chars(), and name_.

void casa::GLPCDisplayListElement::name ( const char *  )
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.

Enable/disable tracing.

Definition at line 86 of file GLPCDisplayList.h.

References trace_.

void casa::GLPCDisplayListElement::trace ( const Bool  t) [inline]

Definition at line 87 of file GLPCDisplayList.h.

References trace_.

void casa::GLPCDisplayListElement::traceCheck ( uInt  spaces = 0,
const char *  str = NULL,
const char *  name = NULL 
) [protected]

Each element is reference counted.

Definition at line 96 of file GLPCDisplayList.h.

References usage_.


Member Data Documentation

Definition at line 107 of file GLPCDisplayList.h.

Referenced by disabled(), and enabled().

Definition at line 109 of file GLPCDisplayList.h.

Referenced by name().

Definition at line 108 of file GLPCDisplayList.h.

Referenced by trace().

Definition at line 106 of file GLPCDisplayList.h.

Referenced by useCount().


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