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

LensNode Class Reference

#include <lensNode.h>

Inheritance diagram for LensNode:

PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject Camera LightLensNode Spotlight List of all members.

Public Member Functions

virtual void output (ostream &out) const
virtual void write (ostream &out, int indent_level=0) const
virtual void xform (const LMatrix4f &mat)
virtual PandaNodemake_copy () const
INLINE void set_lens (Lens *lens)
INLINE Lensget_lens () const
bool is_in_view (const LPoint3f &pos)
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual int complete_pointers (TypedWritable **plist, BamReader *manager)
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

PUBLISHED __pad1__: INLINE void copy_lens(const Lens &lens)

Protected Member Functions

 LensNode (const LensNode &copy)
 PT (Lens) _lens
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Attributes

PUBLISHED __pad0__: LensNode(const string &name)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

LensNode::LensNode const LensNode &  copy  )  [protected]
 

Definition at line 45 of file lensNode.cxx.

Referenced by make_copy(), and make_from_bam().


Member Function Documentation

int LensNode::complete_pointers TypedWritable **  plist,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 156 of file lensNode.cxx.

References TypedWritable::complete_pointers().

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 190 of file lensNode.cxx.

References PandaNode::fillin().

Referenced by LightLensNode::fillin(), Camera::fillin(), and make_from_bam().

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 80 of file lensNode.h.

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

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 69 of file lensNode.h.

Referenced by LightLensNode::force_init_type(), Camera::force_init_type(), LightLensNode::get_type(), Camera::get_type(), LightLensNode::init_type(), Camera::init_type(), PT(), register_with_read_factory(), and NonlinearImager::set_viewer_camera().

INLINE Lens* LensNode::get_lens  )  const
 

Referenced by GLGraphicsStateGuardian::bind_light(), DXGraphicsStateGuardian8::bind_light(), CRGraphicsStateGuardian::bind_light(), Spotlight::fill_viz_geom(), DXGraphicsStateGuardian7::prepare_texture(), PT(), CollisionSegment::set_from_lens(), CollisionRay::set_from_lens(), and Spotlight::write().

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 77 of file lensNode.h.

References PandaNode::get_class_type().

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 72 of file lensNode.h.

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

Referenced by LightLensNode::force_init_type(), Camera::force_init_type(), init_libpgraph(), LightLensNode::init_type(), and Camera::init_type().

bool LensNode::is_in_view const LPoint3f &  pos  ) 
 

Definition at line 85 of file lensNode.cxx.

References GeometricBoundingVolume::contains(), DCAST, NULL, and PT().

PandaNode * LensNode::make_copy  )  const [virtual]
 

Reimplemented from PandaNode.

Reimplemented in Camera, and Spotlight.

Definition at line 73 of file lensNode.cxx.

References LensNode().

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

Reimplemented from PandaNode.

Reimplemented in Camera, and Spotlight.

Definition at line 171 of file lensNode.cxx.

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

Referenced by register_with_read_factory().

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

Reimplemented from PandaNode.

Definition at line 101 of file lensNode.cxx.

References NULL, and PandaNode::output().

LensNode::PT Lens   )  [protected]
 

Referenced by Spotlight::fill_viz_geom(), and is_in_view().

void LensNode::register_with_read_factory  )  [static]
 

Reimplemented from PandaNode.

Reimplemented in Camera, and Spotlight.

Definition at line 130 of file lensNode.cxx.

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

Referenced by init_libpgraph().

INLINE void LensNode::set_lens Lens lens  ) 
 

Referenced by SpheretexReflector::pre_apply().

void LensNode::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented from PandaNode.

Reimplemented in LightLensNode, and Spotlight.

Definition at line 116 of file lensNode.cxx.

References NULL, and PandaNode::write().

Referenced by LightLensNode::write().

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

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 141 of file lensNode.cxx.

References PandaNode::write_datagram().

Referenced by LightLensNode::write_datagram(), and Camera::write_datagram().

void LensNode::xform const LMatrix4f &  mat  )  [virtual]
 

Reimplemented from PandaNode.

Reimplemented in Spotlight.

Definition at line 59 of file lensNode.cxx.

References PandaNode::xform().

Referenced by Spotlight::xform().


Member Data Documentation

PUBLISHED LensNode::__pad0__ [private]
 

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 37 of file lensNode.h.

PUBLISHED LensNode::__pad1__
 

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 49 of file lensNode.h.

TypeHandle LensNode::_type_handle [static, private]
 

Reimplemented from PandaNode.

Reimplemented in Camera, LightLensNode, and Spotlight.

Definition at line 26 of file lensNode.cxx.


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