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

GraphicsChannel Class Reference

#include <graphicsChannel.h>

Inheritance diagram for GraphicsChannel:

TypedReferenceCount TypedObject ReferenceCount HardwareChannel List of all members.

Public Member Functions

 GraphicsChannel (GraphicsWindow *window)
virtual void window_resized (int x_size, int y_size)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Types

typedef pvector< PT(GraphicsLayerGraphicsLayers )

Protected Member Functions

 GraphicsChannel ()

Protected Attributes

Mutex _lock
GraphicsWindow_window
bool _is_active
GraphicsLayers _layers

Private Member Functions

 GraphicsChannel (const GraphicsChannel &copy)
void operator= (const GraphicsChannel &copy)
GraphicsLayermake_layer (int index=-1)
int get_num_layers () const
GraphicsLayerget_layer (int index) const
void move_layer (int from_index, int to_index)
void remove_layer (int index)
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 ~GraphicsChannel()

Static Private Attributes

TypeHandle _type_handle

Friends

class GraphicsWindow
class GraphicsLayer

Member Typedef Documentation

typedef pvector< PT(GraphicsLayer) GraphicsChannel::GraphicsLayers) [protected]
 

Definition at line 77 of file graphicsChannel.h.


Constructor & Destructor Documentation

GraphicsChannel::GraphicsChannel  )  [protected]
 

Definition at line 35 of file graphicsChannel.cxx.

References _is_active, _window, and NULL.

GraphicsChannel::GraphicsChannel GraphicsWindow window  ) 
 

Definition at line 48 of file graphicsChannel.cxx.

References _is_active.

INLINE GraphicsChannel::GraphicsChannel const GraphicsChannel &  copy  )  [private]
 

Definition at line 60 of file graphicsChannel.cxx.


Member Function Documentation

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

Reimplemented from TypedReferenceCount.

Reimplemented in HardwareChannel.

Definition at line 92 of file graphicsChannel.h.

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

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

Reimplemented from ReferenceCount.

Reimplemented in HardwareChannel.

Definition at line 81 of file graphicsChannel.h.

Referenced by HardwareChannel::force_init_type(), HardwareChannel::get_type(), and HardwareChannel::init_type().

GraphicsLayer * GraphicsChannel::get_layer int  index  )  const [private]
 

Definition at line 139 of file graphicsChannel.cxx.

References _layers, _lock, index, and NULL.

Referenced by Tiledviz::Flush().

int GraphicsChannel::get_num_layers  )  const [private]
 

Definition at line 128 of file graphicsChannel.cxx.

References _layers, and _lock.

Referenced by Tiledviz::Flush().

GraphicsPipe * GraphicsChannel::get_pipe  )  const [private]
 

Definition at line 214 of file graphicsChannel.cxx.

References _lock, _window, GraphicsWindow::get_pipe(), and NULL.

Referenced by GraphicsLayer::get_pipe().

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

Reimplemented from TypedReferenceCount.

Reimplemented in HardwareChannel.

Definition at line 89 of file graphicsChannel.h.

References ReferenceCount::get_class_type().

GraphicsWindow * GraphicsChannel::get_window  )  const [private]
 

Definition at line 201 of file graphicsChannel.cxx.

References _lock, and _window.

Referenced by GraphicsLayer::get_window().

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

Reimplemented from TypedReferenceCount.

Reimplemented in HardwareChannel.

Definition at line 84 of file graphicsChannel.h.

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

Referenced by HardwareChannel::force_init_type(), init_libdisplay(), and HardwareChannel::init_type().

INLINE bool GraphicsChannel::is_active  )  const [private]
 

Referenced by GraphicsWindow::do_determine_display_regions().

GraphicsLayer * GraphicsChannel::make_layer int  index = -1  )  [private]
 

Definition at line 110 of file graphicsChannel.cxx.

References _layers, _lock, GraphicsLayer, index, and PT.

void GraphicsChannel::move_layer int  from_index,
int  to_index
[private]
 

Definition at line 156 of file graphicsChannel.cxx.

References _layers, _lock, and PT.

INLINE void GraphicsChannel::operator= const GraphicsChannel &  copy  )  [private]
 

Definition at line 70 of file graphicsChannel.cxx.

void GraphicsChannel::remove_layer int  index  )  [private]
 

Definition at line 184 of file graphicsChannel.cxx.

References _layers, _lock, and index.

void GraphicsChannel::set_active bool  active  )  [private]
 

Definition at line 226 of file graphicsChannel.cxx.

References _is_active, _lock, and win_display_regions_changed().

Referenced by HardwareChannel::HardwareChannel().

void GraphicsChannel::win_display_regions_changed  )  [private]
 

Definition at line 265 of file graphicsChannel.cxx.

References _window, NULL, and GraphicsWindow::win_display_regions_changed().

Referenced by set_active(), and GraphicsLayer::win_display_regions_changed().

void GraphicsChannel::window_resized int  x_size,
int  y_size
[virtual]
 

Reimplemented in HardwareChannel.

Definition at line 242 of file graphicsChannel.cxx.

References _layers, and _lock.

Referenced by GraphicsWindow::set_properties_now(), and GraphicsWindow::system_changed_size().


Friends And Related Function Documentation

friend class GraphicsLayer [friend]
 

Definition at line 98 of file graphicsChannel.h.

Referenced by make_layer().

friend class GraphicsWindow [friend]
 

Definition at line 97 of file graphicsChannel.h.


Member Data Documentation

PUBLISHED GraphicsChannel::__pad0__ [private]
 

Reimplemented from TypedReferenceCount.

Definition at line 53 of file graphicsChannel.h.

bool GraphicsChannel::_is_active [protected]
 

Definition at line 75 of file graphicsChannel.h.

Referenced by GraphicsChannel(), and set_active().

GraphicsLayers GraphicsChannel::_layers [protected]
 

Definition at line 78 of file graphicsChannel.h.

Referenced by GraphicsWindow::do_determine_display_regions(), get_layer(), get_num_layers(), make_layer(), move_layer(), remove_layer(), and window_resized().

Mutex GraphicsChannel::_lock [protected]
 

Definition at line 73 of file graphicsChannel.h.

Referenced by get_layer(), get_num_layers(), get_pipe(), get_window(), make_layer(), move_layer(), remove_layer(), set_active(), and window_resized().

TypeHandle GraphicsChannel::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Reimplemented in HardwareChannel.

Definition at line 27 of file graphicsChannel.cxx.

GraphicsWindow* GraphicsChannel::_window [protected]
 

Definition at line 74 of file graphicsChannel.h.

Referenced by get_pipe(), get_window(), GraphicsChannel(), and win_display_regions_changed().


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