Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GraphicsLayer Class Reference

#include <graphicsLayer.h>

Inheritance diagram for GraphicsLayer:

TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

void channel_resized (int x, int y)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Private Types

typedef pvector< PT(DisplayRegionDisplayRegions )

Private Member Functions

 GraphicsLayer ()
 GraphicsLayer (GraphicsChannel *channel)
 GraphicsLayer (const GraphicsLayer &copy)
void operator= (const GraphicsLayer &copy)
DisplayRegionmake_display_region ()
DisplayRegionmake_display_region (float l, float r, float b, float t)
int get_num_drs () const
DisplayRegionget_dr (int index) const
void remove_dr (int index)
bool remove_dr (DisplayRegion *display_region)
GraphicsChannelget_channel () const
GraphicsWindowget_window () const
GraphicsPipeget_pipe () const
void set_active (bool active)
INLINE bool is_active () const
void win_display_regions_changed ()

Private Attributes

PUBLISHED __pad0__: virtual ~GraphicsLayer()
Mutex _lock
GraphicsChannel_channel
bool _is_active
DisplayRegions _display_regions

Static Private Attributes

TypeHandle _type_handle

Friends

class GraphicsChannel
class GraphicsWindow
class DisplayRegion

Member Typedef Documentation

typedef pvector< PT(DisplayRegion) GraphicsLayer::DisplayRegions) [private]
 

Definition at line 83 of file graphicsLayer.h.


Constructor & Destructor Documentation

GraphicsLayer::GraphicsLayer  )  [private]
 

Definition at line 38 of file graphicsLayer.cxx.

References _channel, _is_active, and NULL.

GraphicsLayer::GraphicsLayer GraphicsChannel channel  )  [private]
 

Definition at line 50 of file graphicsLayer.cxx.

References _is_active.

GraphicsLayer::GraphicsLayer const GraphicsLayer &  copy  )  [private]
 

Definition at line 62 of file graphicsLayer.cxx.


Member Function Documentation

void GraphicsLayer::channel_resized int  x,
int  y
 

Definition at line 269 of file graphicsLayer.cxx.

References _display_regions, _lock, x, and y.

virtual TypeHandle GraphicsLayer::force_init_type void   )  [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 99 of file graphicsLayer.h.

References ReferenceCount::get_class_type(), and TypedReferenceCount::init_type().

GraphicsChannel * GraphicsLayer::get_channel  )  const [private]
 

Definition at line 215 of file graphicsLayer.cxx.

References _channel, and _lock.

Referenced by DisplayRegion::get_channel().

TypeHandle GraphicsLayer::get_class_type void   )  [inline, static]
 

Reimplemented from ReferenceCount.

Definition at line 88 of file graphicsLayer.h.

DisplayRegion * GraphicsLayer::get_dr int  index  )  const [private]
 

Definition at line 155 of file graphicsLayer.cxx.

References _display_regions, _lock, index, and NULL.

Referenced by Tiledviz::Flush().

int GraphicsLayer::get_num_drs  )  const [private]
 

Definition at line 142 of file graphicsLayer.cxx.

References _display_regions, and _lock.

Referenced by Tiledviz::Flush().

GraphicsPipe * GraphicsLayer::get_pipe  )  const [private]
 

Definition at line 241 of file graphicsLayer.cxx.

References _channel, _lock, GraphicsChannel::get_pipe(), and NULL.

Referenced by DisplayRegion::get_pipe().

virtual TypeHandle GraphicsLayer::get_type void   )  const [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 96 of file graphicsLayer.h.

References ReferenceCount::get_class_type().

GraphicsWindow * GraphicsLayer::get_window  )  const [private]
 

Definition at line 228 of file graphicsLayer.cxx.

References _channel, _lock, GraphicsChannel::get_window(), and NULL.

Referenced by DisplayRegion::get_window().

void GraphicsLayer::init_type void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

Definition at line 91 of file graphicsLayer.h.

References TypedObject::get_class_type(), TypedReferenceCount::init_type(), and register_type().

Referenced by init_libdisplay().

INLINE bool GraphicsLayer::is_active  )  const [private]
 

Referenced by GraphicsWindow::do_determine_display_regions().

DisplayRegion * GraphicsLayer::make_display_region float  l,
float  r,
float  b,
float  t
[private]
 

Definition at line 125 of file graphicsLayer.cxx.

References _display_regions, _lock, b, DisplayRegion, NULL, PT, r, t, and win_display_regions_changed().

DisplayRegion * GraphicsLayer::make_display_region  )  [private]
 

Definition at line 109 of file graphicsLayer.cxx.

References _display_regions, _lock, DisplayRegion, PT, and win_display_regions_changed().

void GraphicsLayer::operator= const GraphicsLayer &  copy  )  [private]
 

Definition at line 72 of file graphicsLayer.cxx.

bool GraphicsLayer::remove_dr DisplayRegion display_region  )  [private]
 

Definition at line 190 of file graphicsLayer.cxx.

References _display_regions, DisplayRegion::_layer, _lock, NULL, PT, and win_display_regions_changed().

void GraphicsLayer::remove_dr int  index  )  [private]
 

Definition at line 172 of file graphicsLayer.cxx.

References _display_regions, _lock, index, NULL, and win_display_regions_changed().

void GraphicsLayer::set_active bool  active  )  [private]
 

Definition at line 253 of file graphicsLayer.cxx.

References _is_active, _lock, and win_display_regions_changed().

void GraphicsLayer::win_display_regions_changed  )  [private]
 

Definition at line 291 of file graphicsLayer.cxx.

References _channel, NULL, and GraphicsChannel::win_display_regions_changed().

Referenced by make_display_region(), remove_dr(), set_active(), and DisplayRegion::win_display_regions_changed().


Friends And Related Function Documentation

friend class DisplayRegion [friend]
 

Definition at line 106 of file graphicsLayer.h.

Referenced by make_display_region().

friend class GraphicsChannel [friend]
 

Definition at line 104 of file graphicsLayer.h.

friend class GraphicsWindow [friend]
 

Definition at line 105 of file graphicsLayer.h.


Member Data Documentation

PUBLISHED GraphicsLayer::__pad0__ [private]
 

Reimplemented from TypedReferenceCount.

Definition at line 55 of file graphicsLayer.h.

GraphicsChannel* GraphicsLayer::_channel [private]
 

Definition at line 80 of file graphicsLayer.h.

Referenced by get_channel(), get_pipe(), get_window(), GraphicsLayer(), and win_display_regions_changed().

DisplayRegions GraphicsLayer::_display_regions [private]
 

Definition at line 84 of file graphicsLayer.h.

Referenced by channel_resized(), GraphicsWindow::do_determine_display_regions(), get_dr(), get_num_drs(), make_display_region(), and remove_dr().

bool GraphicsLayer::_is_active [private]
 

Definition at line 81 of file graphicsLayer.h.

Referenced by GraphicsLayer(), and set_active().

Mutex GraphicsLayer::_lock [private]
 

Definition at line 79 of file graphicsLayer.h.

Referenced by channel_resized(), get_channel(), get_dr(), get_num_drs(), get_pipe(), get_window(), make_display_region(), remove_dr(), and set_active().

TypeHandle GraphicsLayer::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Definition at line 29 of file graphicsLayer.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:29 2003 for Panda by doxygen1.3