casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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

Public Member Functions

virtual void call (casacore::Bool force=false, const casacore::uInt nspaces=0)
 Draw element unless disabled or force is true. More...
 
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 ()
 

Protected Member Functions

 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)
 

Private Attributes

casacore::uLong usage_
 
casacore::Bool enabled_
 
casacore::Bool trace_
 
casacore::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 ( )
protectedvirtual

Elements self delete when the reference count goes to 0.

Member Function Documentation

virtual void casa::GLPCDisplayListElement::call ( casacore::Bool  force = false,
const casacore::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
casacore::Bool casa::GLPCDisplayListElement::disabled ( ) const
inline

Definition at line 76 of file GLPCDisplayList.h.

References enabled_.

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

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

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

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

casacore::Bool casa::GLPCDisplayListElement::trace ( ) const
inline

Enable/disable tracing.

Definition at line 92 of file GLPCDisplayList.h.

References trace_.

void casa::GLPCDisplayListElement::trace ( const casacore::Bool  t)
inline

Definition at line 95 of file GLPCDisplayList.h.

References trace_.

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

Each element is reference counted.

Definition at line 106 of file GLPCDisplayList.h.

References usage_.

Member Data Documentation

casacore::Bool casa::GLPCDisplayListElement::enabled_
private

Definition at line 119 of file GLPCDisplayList.h.

Referenced by disabled(), and enabled().

casacore::String casa::GLPCDisplayListElement::name_
private

Definition at line 121 of file GLPCDisplayList.h.

Referenced by name().

casacore::Bool casa::GLPCDisplayListElement::trace_
private

Definition at line 120 of file GLPCDisplayList.h.

Referenced by trace().

casacore::uLong casa::GLPCDisplayListElement::usage_
private

Definition at line 118 of file GLPCDisplayList.h.

Referenced by useCount().


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