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

BillboardEffect Class Reference

#include <billboardEffect.h>

Inheritance diagram for BillboardEffect:

RenderEffect TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

virtual bool safe_to_transform () const
virtual void output (ostream &out) const
 CPT (TransformState) do_billboard(const TransformState *net_transform
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Public Attributes

const TransformState *camera_transform const

Protected Member Functions

virtual int compare_to_impl (const RenderEffect *other) const
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Member Functions

INLINE BillboardEffect ()
INLINE bool is_off () const
INLINE const LVector3f & get_up_vector () const
INLINE bool get_eye_relative () const
INLINE bool get_axial_rotate () const
INLINE float get_offset () const
INLINE const NodePathget_look_at () const
INLINE const LPoint3f & get_look_at_point () const

Static Private Member Functions

INLINE CPT (RenderEffect) make_axis()
INLINE CPT (RenderEffect) make_point_eye()
INLINE CPT (RenderEffect) make_point_world()

Private Attributes

PUBLISHED __pad0__: static CPT(RenderEffect) make(const LVector3f &up_vector
PUBLISHED bool eye_relative
PUBLISHED bool bool axial_rotate
PUBLISHED bool bool float offset
PUBLISHED bool bool float
const NodePath
look_at
PUBLISHED bool bool float
const NodePath const LPoint3f & 
look_at_point
bool _off
LVector3f _up_vector
bool _eye_relative
bool _axial_rotate
float _offset
NodePath _look_at
LPoint3f _look_at_point

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE BillboardEffect::BillboardEffect  )  [private]
 


Member Function Documentation

int BillboardEffect::compare_to_impl const RenderEffect other  )  const [protected, virtual]
 

Reimplemented from RenderEffect.

Definition at line 171 of file billboardEffect.cxx.

References _axial_rotate, _eye_relative, _look_at, _look_at_point, _offset, _up_vector, NodePath::compare_to(), and DCAST_INTO_R.

BillboardEffect::CPT TransformState   )  const
 

INLINE BillboardEffect::CPT RenderEffect   )  [static, private]
 

Reimplemented from RenderEffect.

INLINE BillboardEffect::CPT RenderEffect   )  [static, private]
 

Reimplemented from RenderEffect.

INLINE BillboardEffect::CPT RenderEffect   )  [static, private]
 

Reimplemented from RenderEffect.

void BillboardEffect::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from RenderEffect.

Definition at line 259 of file billboardEffect.cxx.

References _axial_rotate, _eye_relative, _look_at_point, _off, _offset, _up_vector, RenderEffect::fillin(), DatagramIterator::get_bool(), and DatagramIterator::get_float32().

Referenced by make_from_bam().

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

Reimplemented from RenderEffect.

Definition at line 96 of file billboardEffect.h.

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

INLINE bool BillboardEffect::get_axial_rotate  )  const [private]
 

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

Reimplemented from RenderEffect.

Definition at line 85 of file billboardEffect.h.

Referenced by NodePath::clear_billboard(), RenderEffects::determine_billboard(), NodePath::has_billboard(), and register_with_read_factory().

INLINE bool BillboardEffect::get_eye_relative  )  const [private]
 

INLINE const NodePath& BillboardEffect::get_look_at  )  const [private]
 

INLINE const LPoint3f& BillboardEffect::get_look_at_point  )  const [private]
 

INLINE float BillboardEffect::get_offset  )  const [private]
 

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

Reimplemented from RenderEffect.

Definition at line 93 of file billboardEffect.h.

References RenderEffect::get_class_type().

Referenced by output().

INLINE const LVector3f& BillboardEffect::get_up_vector  )  const [private]
 

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

Reimplemented from RenderEffect.

Definition at line 88 of file billboardEffect.h.

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

Referenced by init_libpgraph().

INLINE bool BillboardEffect::is_off  )  const [private]
 

Referenced by output().

TypedWritable * BillboardEffect::make_from_bam const FactoryParams params  )  [static, protected]
 

Definition at line 240 of file billboardEffect.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void BillboardEffect::output ostream &  out  )  const [virtual]
 

Definition at line 68 of file billboardEffect.cxx.

References _look_at, _look_at_point, _offset, _up_vector, get_type(), NodePath::is_empty(), and is_off().

void BillboardEffect::register_with_read_factory  )  [static]
 

Definition at line 206 of file billboardEffect.cxx.

References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory().

Referenced by init_libpgraph().

bool BillboardEffect::safe_to_transform  )  const [virtual]
 

Reimplemented from RenderEffect.

Definition at line 58 of file billboardEffect.cxx.

void BillboardEffect::write_datagram BamWriter manager,
Datagram dg
[virtual]
 

Reimplemented from RenderEffect.

Definition at line 217 of file billboardEffect.cxx.

References _axial_rotate, _eye_relative, _look_at_point, _off, _offset, _up_vector, Datagram::add_bool(), Datagram::add_float32(), and RenderEffect::write_datagram().


Member Data Documentation

PUBLISHED BillboardEffect::__pad0__ [private]
 

Reimplemented from RenderEffect.

Definition at line 39 of file billboardEffect.h.

bool BillboardEffect::_axial_rotate [private]
 

Definition at line 71 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), fillin(), and write_datagram().

bool BillboardEffect::_eye_relative [private]
 

Definition at line 70 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), fillin(), and write_datagram().

NodePath BillboardEffect::_look_at [private]
 

Definition at line 73 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), and output().

LPoint3f BillboardEffect::_look_at_point [private]
 

Definition at line 74 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), fillin(), output(), and write_datagram().

bool BillboardEffect::_off [private]
 

Definition at line 68 of file billboardEffect.h.

Referenced by CPT(), fillin(), and write_datagram().

float BillboardEffect::_offset [private]
 

Definition at line 72 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), fillin(), output(), and write_datagram().

TypeHandle BillboardEffect::_type_handle [static, private]
 

Reimplemented from RenderEffect.

Definition at line 27 of file billboardEffect.cxx.

LVector3f BillboardEffect::_up_vector [private]
 

Definition at line 69 of file billboardEffect.h.

Referenced by compare_to_impl(), CPT(), fillin(), output(), and write_datagram().

PUBLISHED bool bool BillboardEffect::axial_rotate [private]
 

Definition at line 39 of file billboardEffect.h.

const TransformState* camera_transform BillboardEffect::const
 

Definition at line 62 of file billboardEffect.h.

PUBLISHED bool BillboardEffect::eye_relative [private]
 

Definition at line 39 of file billboardEffect.h.

PUBLISHED bool bool float const NodePath& BillboardEffect::look_at [private]
 

Definition at line 39 of file billboardEffect.h.

PUBLISHED bool bool float const NodePath const LPoint3f& BillboardEffect::look_at_point [private]
 

Definition at line 39 of file billboardEffect.h.

PUBLISHED bool bool float BillboardEffect::offset [private]
 

Definition at line 39 of file billboardEffect.h.


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