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

DisplayRegion Class Reference

#include <displayRegion.h>

Inheritance diagram for DisplayRegion:

ReferenceCount ClearableRegion List of all members.

Public Member Functions

 DisplayRegion (GraphicsLayer *layer)
 DisplayRegion (GraphicsLayer *layer, const float l, const float r, const float b, const float t)
 DisplayRegion (int xsize, int ysize)
 ~DisplayRegion ()
float get_left () const
float get_right () const
float get_bottom () const
float get_top () const
void set_dimensions (float l, float r, float b, float t)
GraphicsLayerget_layer () const
GraphicsChannelget_channel () const
GraphicsWindowget_window () const
GraphicsPipeget_pipe () const
void set_camera (const NodePath &camera)
const NodePathget_camera () const
void set_active (bool active)
INLINE bool is_active () const
void compute_pixels ()
void compute_pixels (int x_size, int y_size)
void get_pixels (int &pl, int &pr, int &pb, int &pt) const
void get_region_pixels (int &xo, int &yo, int &w, int &h) const
int get_pixel_width () const
int get_pixel_height () const
void output (ostream &out) const

Public Attributes

PUBLISHED __pad0__: void get_dimensions(float &l
PUBLISHED float & r
PUBLISHED float float & b
PUBLISHED float float float &t const

Private Member Functions

 DisplayRegion (const DisplayRegion &copy)
void operator= (const DisplayRegion &copy)
void win_display_regions_changed ()
INLINE void do_compute_pixels (int x_size, int y_size)
 PT (Camera) _camera_node
 PT (CullResult) _cull_result

Private Attributes

Mutex _lock
float _l
float _r
float _b
float _t
int _pl
int _pr
int _pb
int _pt
GraphicsLayer_layer
NodePath _camera
bool _active

Friends

class GraphicsLayer
class GraphicsEngine

Constructor & Destructor Documentation

DisplayRegion::DisplayRegion GraphicsLayer layer  ) 
 

Definition at line 36 of file displayRegion.cxx.

References compute_pixels(), and NULL.

DisplayRegion::DisplayRegion GraphicsLayer layer,
const float  l,
const float  r,
const float  b,
const float  t
 

Definition at line 51 of file displayRegion.cxx.

References b, compute_pixels(), NULL, r, and t.

DisplayRegion::DisplayRegion int  xsize,
int  ysize
 

Definition at line 69 of file displayRegion.cxx.

References NULL.

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

Definition at line 84 of file displayRegion.cxx.

DisplayRegion::~DisplayRegion  ) 
 

Definition at line 104 of file displayRegion.cxx.

References set_camera().


Member Function Documentation

void DisplayRegion::compute_pixels int  x_size,
int  y_size
 

Definition at line 353 of file displayRegion.cxx.

References _lock, and do_compute_pixels().

void DisplayRegion::compute_pixels  ) 
 

Definition at line 326 of file displayRegion.cxx.

References _lock, do_compute_pixels(), GraphicsWindow::get_properties(), GraphicsWindow::get_requested_properties(), get_window(), WindowProperties::get_x_size(), WindowProperties::get_y_size(), WindowProperties::has_size(), NULL, and win.

Referenced by DisplayRegion().

INLINE void DisplayRegion::do_compute_pixels int  x_size,
int  y_size
[private]
 

Referenced by compute_pixels(), and set_dimensions().

float DisplayRegion::get_bottom  )  const
 

Definition at line 158 of file displayRegion.cxx.

References _b, and _lock.

const NodePath & DisplayRegion::get_camera  )  const
 

Definition at line 297 of file displayRegion.cxx.

References _camera, and _lock.

Referenced by NonlinearImager::add_viewer(), GraphicsEngine::cull_and_draw_together(), and GraphicsEngine::cull_bin_draw().

GraphicsChannel * DisplayRegion::get_channel  )  const
 

Definition at line 223 of file displayRegion.cxx.

References _layer, _lock, GraphicsLayer::get_channel(), and NULL.

GraphicsLayer * DisplayRegion::get_layer  )  const
 

Definition at line 210 of file displayRegion.cxx.

References _layer, and _lock.

float DisplayRegion::get_left  )  const
 

Definition at line 132 of file displayRegion.cxx.

References _l, and _lock.

GraphicsPipe * DisplayRegion::get_pipe  )  const
 

Definition at line 249 of file displayRegion.cxx.

References _layer, _lock, GraphicsLayer::get_pipe(), and NULL.

int DisplayRegion::get_pixel_height  )  const
 

Definition at line 406 of file displayRegion.cxx.

References _lock, _pb, and _pt.

Referenced by DXGraphicsStateGuardian7::prepare_texture(), and PT().

int DisplayRegion::get_pixel_width  )  const
 

Definition at line 395 of file displayRegion.cxx.

References _lock, _pl, and _pr.

Referenced by DXGraphicsStateGuardian7::prepare_texture(), and PT().

void DisplayRegion::get_pixels int &  pl,
int &  pr,
int &  pb,
int &  pt
const
 

Definition at line 365 of file displayRegion.cxx.

References _lock, _pb, _pl, _pr, _pt, and pb.

void DisplayRegion::get_region_pixels int &  xo,
int &  yo,
int &  w,
int &  h
const
 

Definition at line 381 of file displayRegion.cxx.

References _lock, _pb, _pl, _pr, _pt, and w.

Referenced by GLGraphicsStateGuardian::copy_pixel_buffer(), DXGraphicsStateGuardian8::copy_pixel_buffer(), CRGraphicsStateGuardian::copy_pixel_buffer(), GLGraphicsStateGuardian::copy_texture(), DXGraphicsStateGuardian8::copy_texture(), CRGraphicsStateGuardian::copy_texture(), indirect_display_func(), PlanarReflector::pre_apply(), and DXGraphicsStateGuardian7::prepare_texture().

float DisplayRegion::get_right  )  const
 

Definition at line 145 of file displayRegion.cxx.

References _lock, and _r.

float DisplayRegion::get_top  )  const
 

Definition at line 171 of file displayRegion.cxx.

References _lock, and _t.

GraphicsWindow * DisplayRegion::get_window  )  const
 

Definition at line 236 of file displayRegion.cxx.

References _layer, _lock, GraphicsLayer::get_window(), and NULL.

Referenced by NonlinearImager::add_viewer(), compute_pixels(), and set_dimensions().

INLINE bool DisplayRegion::is_active  )  const
 

Referenced by GraphicsWindow::do_determine_display_regions().

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

Definition at line 94 of file displayRegion.cxx.

void DisplayRegion::output ostream &  out  )  const
 

Definition at line 417 of file displayRegion.cxx.

References _b, _l, _lock, _pb, _pl, _pr, _pt, _r, and _t.

DisplayRegion::PT CullResult   )  [private]
 

DisplayRegion::PT Camera   )  [private]
 

void DisplayRegion::set_active bool  active  ) 
 

Definition at line 310 of file displayRegion.cxx.

References _active, _lock, and win_display_regions_changed().

Referenced by indirect_keys().

void DisplayRegion::set_camera const NodePath camera  ) 
 

Definition at line 267 of file displayRegion.cxx.

References _camera, _lock, Camera::add_display_region(), DCAST_INTO_V, NodePath::is_empty(), NodePath::node(), and NULL.

Referenced by ~DisplayRegion().

void DisplayRegion::set_dimensions float  l,
float  r,
float  b,
float  t
 

Definition at line 186 of file displayRegion.cxx.

References _b, _l, _lock, _r, _t, b, do_compute_pixels(), GraphicsWindow::get_properties(), get_window(), WindowProperties::get_x_size(), WindowProperties::get_y_size(), WindowProperties::has_size(), NULL, r, t, and win.

void DisplayRegion::win_display_regions_changed  )  [private]
 

Definition at line 434 of file displayRegion.cxx.

References _layer, NULL, and GraphicsLayer::win_display_regions_changed().

Referenced by set_active().


Friends And Related Function Documentation

friend class GraphicsEngine [friend]
 

Definition at line 116 of file displayRegion.h.

friend class GraphicsLayer [friend]
 

Definition at line 115 of file displayRegion.h.


Member Data Documentation

PUBLISHED DisplayRegion::__pad0__
 

Reimplemented from ClearableRegion.

Definition at line 58 of file displayRegion.h.

bool DisplayRegion::_active [private]
 

Definition at line 108 of file displayRegion.h.

Referenced by set_active().

float DisplayRegion::_b [private]
 

Definition at line 93 of file displayRegion.h.

Referenced by get_bottom(), output(), and set_dimensions().

NodePath DisplayRegion::_camera [private]
 

Definition at line 102 of file displayRegion.h.

Referenced by get_camera(), and set_camera().

float DisplayRegion::_l [private]
 

Definition at line 91 of file displayRegion.h.

Referenced by get_left(), output(), and set_dimensions().

GraphicsLayer* DisplayRegion::_layer [private]
 

Definition at line 101 of file displayRegion.h.

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

Mutex DisplayRegion::_lock [private]
 

Definition at line 89 of file displayRegion.h.

Referenced by compute_pixels(), get_bottom(), get_camera(), get_channel(), get_layer(), get_left(), get_pipe(), get_pixel_height(), get_pixel_width(), get_pixels(), get_region_pixels(), get_right(), get_top(), get_window(), output(), set_active(), set_camera(), and set_dimensions().

int DisplayRegion::_pb [private]
 

Definition at line 98 of file displayRegion.h.

Referenced by get_pixel_height(), get_pixels(), get_region_pixels(), and output().

int DisplayRegion::_pl [private]
 

Definition at line 96 of file displayRegion.h.

Referenced by get_pixel_width(), get_pixels(), get_region_pixels(), and output().

int DisplayRegion::_pr [private]
 

Definition at line 97 of file displayRegion.h.

Referenced by get_pixel_width(), get_pixels(), get_region_pixels(), and output().

int DisplayRegion::_pt [private]
 

Definition at line 99 of file displayRegion.h.

Referenced by get_pixel_height(), get_pixels(), get_region_pixels(), and output().

float DisplayRegion::_r [private]
 

Definition at line 92 of file displayRegion.h.

Referenced by get_right(), output(), and set_dimensions().

float DisplayRegion::_t [private]
 

Definition at line 94 of file displayRegion.h.

Referenced by get_top(), output(), and set_dimensions().

PUBLISHED float float& DisplayRegion::b
 

Definition at line 58 of file displayRegion.h.

PUBLISHED float float float& t DisplayRegion::const
 

Definition at line 58 of file displayRegion.h.

PUBLISHED float& DisplayRegion::r
 

Definition at line 58 of file displayRegion.h.


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