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]
virtual casa::GLPCDisplayListElement::~GLPCDisplayListElement (  )  [protected, virtual]

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::GLPCDisplayListEntry, and casa::GLPCDisplayList.

virtual void casa::GLPCDisplayListElement::disable (  )  [virtual]
Bool casa::GLPCDisplayListElement::disabled (  )  const [inline]

Definition at line 76 of file GLPCDisplayList.h.

References enabled_.

virtual void casa::GLPCDisplayListElement::enable (  )  [virtual]
Bool casa::GLPCDisplayListElement::enabled (  )  const [inline]

enable/disable

Definition at line 73 of file GLPCDisplayList.h.

References enabled_.

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

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

Definition at line 85 of file GLPCDisplayList.h.

References name_.

void casa::GLPCDisplayListElement::ref (  ) 
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.

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

Definition at line 95 of file GLPCDisplayList.h.

References trace_.

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

Enable/disable tracing.

Definition at line 92 of file GLPCDisplayList.h.

References trace_.

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

Each element is reference counted.

Definition at line 106 of file GLPCDisplayList.h.

References usage_.


Member Data Documentation

Definition at line 119 of file GLPCDisplayList.h.

Referenced by disabled(), and enabled().

Definition at line 121 of file GLPCDisplayList.h.

Referenced by name().

Definition at line 120 of file GLPCDisplayList.h.

Referenced by trace().

Definition at line 118 of file GLPCDisplayList.h.

Referenced by useCount().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1