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

PlanarReflector Class Reference

#include <planarReflector.h>

Inheritance diagram for PlanarReflector:

CasterShader FrustumShader Shader ReferenceCount Configurable TypedObject List of all members.

Public Member Functions

 PlanarReflector (void)
 PlanarReflector (PlaneNode *plane_node)
 PlanarReflector (const Colorf &c)
 PlanarReflector (PlaneNode *plane_node, const Colorf &c)
virtual void pre_apply (Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg)
virtual void apply (Node *node, const AllAttributesWrapper &init_state, const AllTransitionsWrapper &net_trans, GraphicsStateGuardian *gsg)
INLINE void set_save_color_buffer (bool val)
INLINE void set_save_depth_buffer (bool val)
INLINE void set_clip_to_plane (bool val)
INLINE void set_plane_node (PlaneNode *p)
INLINE void set_color (const Colorf &c)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

void init (PlaneNode *plane_node, const Colorf &c)
 PT (PixelBuffer) _color_buffer
 PT (PixelBuffer) _depth_buffer
 PT (PlaneNode) _plane_node

Protected Attributes

bool _save_color_buffer
bool _save_depth_buffer
bool _clip_to_plane
Colorf _color

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

PlanarReflector::PlanarReflector void   ) 
 

Definition at line 57 of file planarReflector.cxx.

References c, Colorf, init(), and NULL.

PlanarReflector::PlanarReflector PlaneNode plane_node  ) 
 

Definition at line 69 of file planarReflector.cxx.

References c, Colorf, and init().

PlanarReflector::PlanarReflector const Colorf c  ) 
 

Definition at line 81 of file planarReflector.cxx.

References c, init(), and NULL.

PlanarReflector::PlanarReflector PlaneNode plane_node,
const Colorf c
 

Definition at line 92 of file planarReflector.cxx.

References c, and init().


Member Function Documentation

void PlanarReflector::apply Node *  node,
const AllAttributesWrapper &  init_state,
const AllTransitionsWrapper &  net_trans,
GraphicsStateGuardian gsg
[virtual]
 

Reimplemented from Shader.

Definition at line 139 of file planarReflector.cxx.

References CasterShader::_casters, _color, Shader::_multipass_on, Shader::apply(), c, GraphicsStateGuardian::clear(), cm, GraphicsStateGuardianBase::copy_pixel_buffer(), GraphicsStateGuardian::get_current_display_region(), CasterShader::get_num_casters(), GraphicsStateGuardian::get_render_buffer(), PT(), RenderBuffer::T_back, RenderBuffer::T_depth, and RenderBuffer::T_stencil.

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

Reimplemented from CasterShader.

Definition at line 87 of file planarReflector.h.

References CasterShader::get_class_type(), and CasterShader::init_type().

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

Reimplemented from CasterShader.

Definition at line 76 of file planarReflector.h.

Referenced by ConfigureFn().

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

Reimplemented from CasterShader.

Definition at line 84 of file planarReflector.h.

References CasterShader::get_class_type().

void PlanarReflector::init PlaneNode plane_node,
const Colorf c
[protected]
 

Definition at line 102 of file planarReflector.cxx.

References _clip_to_plane, _color, _save_color_buffer, _save_depth_buffer, c, and NULL.

Referenced by PlanarReflector().

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

Reimplemented from CasterShader.

Definition at line 79 of file planarReflector.h.

References CasterShader::get_class_type(), CasterShader::init_type(), and register_type().

Referenced by ConfigureFn().

void PlanarReflector::pre_apply Node *  node,
const AllAttributesWrapper &  init_state,
const AllTransitionsWrapper &  net_trans,
GraphicsStateGuardian gsg
[virtual]
 

Reimplemented from Shader.

Definition at line 124 of file planarReflector.cxx.

References PixelBuffer::depth_buffer(), GraphicsStateGuardian::get_current_display_region(), DisplayRegion::get_region_pixels(), PixelBuffer::rgb_buffer(), and w.

PlanarReflector::PT PlaneNode   )  [protected]
 

PlanarReflector::PT PixelBuffer   )  [protected]
 

PlanarReflector::PT PixelBuffer   )  [protected]
 

Referenced by apply().

INLINE void PlanarReflector::set_clip_to_plane bool  val  )  [inline]
 

Definition at line 56 of file planarReflector.h.

INLINE void PlanarReflector::set_color const Colorf c  )  [inline]
 

Definition at line 58 of file planarReflector.h.

References c.

INLINE void PlanarReflector::set_plane_node PlaneNode p  )  [inline]
 

Definition at line 57 of file planarReflector.h.

References p.

INLINE void PlanarReflector::set_save_color_buffer bool  val  )  [inline]
 

Definition at line 54 of file planarReflector.h.

INLINE void PlanarReflector::set_save_depth_buffer bool  val  )  [inline]
 

Definition at line 55 of file planarReflector.h.


Member Data Documentation

bool PlanarReflector::_clip_to_plane [protected]
 

Definition at line 68 of file planarReflector.h.

Referenced by init().

Colorf PlanarReflector::_color [protected]
 

Definition at line 72 of file planarReflector.h.

Referenced by apply(), and init().

bool PlanarReflector::_save_color_buffer [protected]
 

Definition at line 66 of file planarReflector.h.

Referenced by init().

bool PlanarReflector::_save_depth_buffer [protected]
 

Definition at line 67 of file planarReflector.h.

Referenced by init().

TypeHandle PlanarReflector::_type_handle [static, private]
 

Reimplemented from CasterShader.

Definition at line 50 of file planarReflector.cxx.


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