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

RenderModeAttrib Class Reference

#include <renderModeAttrib.h>

Inheritance diagram for RenderModeAttrib:

RenderAttrib TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

virtual void issue (GraphicsStateGuardianBase *gsg) const
virtual void output (ostream &out) 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 ()

Protected Member Functions

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

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Member Functions

INLINE RenderModeAttrib (Mode mode, float line_width)
INLINE Mode get_mode () const
INLINE float get_line_width () const

Private Attributes

PUBLISHED __pad0__: enum Mode { M_filled
PUBLISHED M_wireframe
PUBLISHED __pad1__: static CPT(RenderAttrib) make(Mode mode
PUBLISHED float line_width = 1.0f)
Mode _mode
float _line_width

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE RenderModeAttrib::RenderModeAttrib Mode  mode,
float  line_width
[private]
 

Referenced by make_default_impl(), and make_from_bam().


Member Function Documentation

int RenderModeAttrib::compare_to_impl const RenderAttrib other  )  const [protected, virtual]
 

Reimplemented from RenderAttrib.

Definition at line 99 of file renderModeAttrib.cxx.

References _line_width, _mode, and DCAST_INTO_R.

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

Reimplemented from RenderAttrib.

Definition at line 180 of file renderModeAttrib.cxx.

References _line_width, _mode, RenderAttrib::fillin(), DatagramIterator::get_float32(), and DatagramIterator::get_int8().

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 81 of file renderModeAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 70 of file renderModeAttrib.h.

Referenced by NodePath::clear_render_mode(), NodePath::has_render_mode(), and register_with_read_factory().

INLINE float RenderModeAttrib::get_line_width  )  const [private]
 

Referenced by GLGraphicsStateGuardian::issue_render_mode(), CRGraphicsStateGuardian::issue_render_mode(), and output().

INLINE Mode RenderModeAttrib::get_mode  )  const [private]
 

Referenced by GLGraphicsStateGuardian::issue_render_mode(), DXGraphicsStateGuardian8::issue_render_mode(), CRGraphicsStateGuardian::issue_render_mode(), output(), and DXGraphicsStateGuardian7::prepare_texture().

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

Reimplemented from RenderAttrib.

Definition at line 78 of file renderModeAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 73 of file renderModeAttrib.h.

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

Referenced by init_libpgraph().

void RenderModeAttrib::issue GraphicsStateGuardianBase gsg  )  const [virtual]
 

Reimplemented from RenderAttrib.

Definition at line 60 of file renderModeAttrib.cxx.

References GraphicsStateGuardianBase::issue_render_mode().

RenderAttrib * RenderModeAttrib::make_default_impl  )  const [protected, virtual]
 

Implements RenderAttrib.

Definition at line 123 of file renderModeAttrib.cxx.

References RenderModeAttrib().

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

Definition at line 161 of file renderModeAttrib.cxx.

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

Referenced by register_with_read_factory().

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

Definition at line 70 of file renderModeAttrib.cxx.

References get_line_width(), get_mode(), get_type(), and M_wireframe.

void RenderModeAttrib::register_with_read_factory  )  [static]
 

Definition at line 134 of file renderModeAttrib.cxx.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 145 of file renderModeAttrib.cxx.

References _line_width, _mode, Datagram::add_float32(), Datagram::add_int8(), and RenderAttrib::write_datagram().


Member Data Documentation

PUBLISHED RenderModeAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 33 of file renderModeAttrib.h.

PUBLISHED RenderModeAttrib::__pad1__ [private]
 

Definition at line 44 of file renderModeAttrib.h.

float RenderModeAttrib::_line_width [private]
 

Definition at line 59 of file renderModeAttrib.h.

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

Mode RenderModeAttrib::_mode [private]
 

Definition at line 58 of file renderModeAttrib.h.

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

TypeHandle RenderModeAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file renderModeAttrib.cxx.

PUBLISHED float RenderModeAttrib::line_width = 1.0f) [private]
 

Definition at line 44 of file renderModeAttrib.h.

PUBLISHED RenderModeAttrib::M_wireframe [private]
 

Definition at line 33 of file renderModeAttrib.h.

Referenced by CPT(), GLGraphicsStateGuardian::issue_render_mode(), DXGraphicsStateGuardian8::issue_render_mode(), CRGraphicsStateGuardian::issue_render_mode(), output(), DXGraphicsStateGuardian7::prepare_texture(), and NodePath::set_render_mode_wireframe().


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