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

LODNode Class Reference

#include <lodNode.h>

Inheritance diagram for LODNode:

SelectiveChildNode PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject List of all members.

Public Member Functions

virtual PandaNodemake_copy () const
virtual bool safe_to_combine () const
virtual void xform (const LMatrix4f &mat)
virtual bool has_cull_callback () const
virtual bool cull_callback (CullTraverser *trav, CullTraverserData &data)
virtual void output (ostream &out) const
INLINE bool set_switch (int index, float in, float out)
INLINE void clear_switches (void)
INLINE int get_num_switches () const
INLINE float get_in (int index) const
INLINE float get_out (int index) const
INLINE void set_center (const LPoint3f &center)
INLINE const LPoint3f & get_center () const
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

PUBLISHED __pad1__: INLINE void add_switch(float in
PUBLISHED float out

Protected Member Functions

INLINE LODNode (const LODNode &copy)
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Types

typedef CycleDataReader< CDataCDReader
typedef CycleDataWriter< CDataCDWriter

Private Attributes

PUBLISHED __pad0__: INLINE LODNode(const string &name)
PipelineCycler< CData_cycler

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef CycleDataReader<CData> LODNode::CDReader [private]
 

Reimplemented from PandaNode.

Definition at line 88 of file lodNode.h.

typedef CycleDataWriter<CData> LODNode::CDWriter [private]
 

Reimplemented from PandaNode.

Definition at line 89 of file lodNode.h.


Constructor & Destructor Documentation

INLINE LODNode::LODNode const LODNode &  copy  )  [protected]
 

Referenced by make_copy(), and make_from_bam().


Member Function Documentation

INLINE void LODNode::clear_switches void   ) 
 

bool LODNode::cull_callback CullTraverser trav,
CullTraverserData data
[virtual]
 

Reimplemented from PandaNode.

Definition at line 133 of file lodNode.cxx.

References _cycler, PandaNode::CPT(), data, CullTraverser::get_camera_transform(), PandaNode::get_num_children(), index, and SelectiveChildNode::select_child().

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

Reimplemented from PandaNode.

Definition at line 220 of file lodNode.cxx.

References _cycler, PandaNode::fillin(), and BamReader::read_cdata().

Referenced by make_from_bam().

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

Reimplemented from SelectiveChildNode.

Definition at line 103 of file lodNode.h.

INLINE const LPoint3f& LODNode::get_center  )  const
 

Referenced by EggLoader::make_node().

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

Reimplemented from SelectiveChildNode.

Definition at line 92 of file lodNode.h.

Referenced by register_with_read_factory().

INLINE float LODNode::get_in int  index  )  const
 

INLINE int LODNode::get_num_switches  )  const
 

INLINE float LODNode::get_out int  index  )  const
 

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

Reimplemented from SelectiveChildNode.

Definition at line 100 of file lodNode.h.

bool LODNode::has_cull_callback  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 109 of file lodNode.cxx.

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

Reimplemented from SelectiveChildNode.

Definition at line 95 of file lodNode.h.

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

Referenced by init_libpgraph().

PandaNode * LODNode::make_copy  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 67 of file lodNode.cxx.

References LODNode().

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

Reimplemented from PandaNode.

Definition at line 201 of file lodNode.cxx.

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

Referenced by register_with_read_factory().

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

Reimplemented from PandaNode.

Definition at line 162 of file lodNode.cxx.

References _cycler, and PandaNode::output().

void LODNode::register_with_read_factory  )  [static]
 

Reimplemented from PandaNode.

Definition at line 176 of file lodNode.cxx.

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

Referenced by init_libpgraph().

bool LODNode::safe_to_combine  )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 82 of file lodNode.cxx.

INLINE void LODNode::set_center const LPoint3f &  center  ) 
 

Referenced by EggLoader::make_node().

INLINE bool LODNode::set_switch int  index,
float  in,
float  out
 

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

Reimplemented from PandaNode.

Definition at line 187 of file lodNode.cxx.

References _cycler, BamWriter::write_cdata(), and PandaNode::write_datagram().

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

Reimplemented from PandaNode.

Definition at line 94 of file lodNode.cxx.

References _cycler.


Member Data Documentation

PUBLISHED LODNode::__pad0__ [private]
 

Reimplemented from SelectiveChildNode.

Definition at line 37 of file lodNode.h.

PUBLISHED LODNode::__pad1__
 

Reimplemented from PandaNode.

Definition at line 56 of file lodNode.h.

PipelineCycler<CData> LODNode::_cycler [private]
 

Reimplemented from PandaNode.

Definition at line 87 of file lodNode.h.

Referenced by cull_callback(), fillin(), output(), write_datagram(), and xform().

TypeHandle LODNode::_type_handle [static, private]
 

Reimplemented from SelectiveChildNode.

Definition at line 23 of file lodNode.cxx.

PUBLISHED float LODNode::out
 

Definition at line 56 of file lodNode.h.


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