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

EggRenderMode Class Reference

#include <eggRenderMode.h>

Inheritance diagram for EggRenderMode:

EggGroup EggPrimitive EggTexture EggBin EggCurve EggPoint EggPolygon EggSurface EggNurbsCurve EggNurbsSurface List of all members.

Public Types

enum  AlphaMode {
  AM_unspecified, AM_off, AM_on, AM_blend,
  AM_blend_no_occlude, AM_ms, AM_ms_mask, AM_binary,
  AM_dual
}
enum  DepthWriteMode { DWM_unspecified, DWM_off, DWM_on }
enum  DepthTestMode { DTM_unspecified, DTM_off, DTM_on }

Public Member Functions

INLINE EggRenderMode ()
INLINE EggRenderMode (const EggRenderMode &copy)
INLINE EggRenderMode & operator= (const EggRenderMode &copy)
void write (ostream &out, int indent_level) const
INLINE void set_alpha_mode (AlphaMode mode)
INLINE AlphaMode get_alpha_mode () const
INLINE void set_depth_write_mode (DepthWriteMode mode)
INLINE DepthWriteMode get_depth_write_mode () const
INLINE void set_depth_test_mode (DepthTestMode mode)
INLINE DepthTestMode get_depth_test_mode () const
INLINE void set_draw_order (int order)
INLINE int get_draw_order () const
INLINE bool has_draw_order () const
INLINE void clear_draw_order ()
INLINE void set_bin (const string &bin)
INLINE string get_bin () const
INLINE bool has_bin () const
INLINE void clear_bin ()
bool operator== (const EggRenderMode &other) const
INLINE bool operator!= (const EggRenderMode &other) const
bool operator< (const EggRenderMode &other) const

Static Public Member Functions

AlphaMode string_alpha_mode (const string &string)
DepthWriteMode string_depth_write_mode (const string &string)
DepthTestMode string_depth_test_mode (const string &string)
TypeHandle get_class_type ()
void init_type ()

Private Attributes

AlphaMode _alpha_mode
DepthWriteMode _depth_write_mode
DepthTestMode _depth_test_mode
int _draw_order
bool _has_draw_order
string _bin

Static Private Attributes

TypeHandle _type_handle

Member Enumeration Documentation

enum EggRenderMode::AlphaMode
 

Enumeration values:
AM_unspecified 
AM_off 
AM_on 
AM_blend 
AM_blend_no_occlude 
AM_ms 
AM_ms_mask 
AM_binary 
AM_dual 

Definition at line 48 of file eggRenderMode.h.

Referenced by init_libegg2pg(), and EggLoader::setup_bucket().

enum EggRenderMode::DepthTestMode
 

Enumeration values:
DTM_unspecified 
DTM_off 
DTM_on 

Definition at line 64 of file eggRenderMode.h.

Referenced by EggLoader::setup_bucket().

enum EggRenderMode::DepthWriteMode
 

Enumeration values:
DWM_unspecified 
DWM_off 
DWM_on 

Definition at line 60 of file eggRenderMode.h.

Referenced by EggLoader::setup_bucket().


Constructor & Destructor Documentation

INLINE EggRenderMode::EggRenderMode  ) 
 

INLINE EggRenderMode::EggRenderMode const EggRenderMode &  copy  ) 
 


Member Function Documentation

INLINE void EggRenderMode::clear_bin  ) 
 

INLINE void EggRenderMode::clear_draw_order  ) 
 

INLINE AlphaMode EggRenderMode::get_alpha_mode  )  const
 

Referenced by EggPrimitive::determine_alpha_mode(), EggGroup::determine_alpha_mode(), EggLoader::setup_bucket(), and write().

INLINE string EggRenderMode::get_bin  )  const
 

Referenced by EggLoader::setup_bucket(), and write().

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

Reimplemented in EggBin, EggCurve, EggGroup, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggTexture.

Definition at line 106 of file eggRenderMode.h.

Referenced by EggTexture::init_type(), EggPrimitive::init_type(), and EggGroup::init_type().

INLINE DepthTestMode EggRenderMode::get_depth_test_mode  )  const
 

Referenced by EggPrimitive::determine_depth_test_mode(), EggGroup::determine_depth_test_mode(), EggLoader::setup_bucket(), and write().

INLINE DepthWriteMode EggRenderMode::get_depth_write_mode  )  const
 

Referenced by EggPrimitive::determine_depth_write_mode(), EggGroup::determine_depth_write_mode(), EggLoader::setup_bucket(), and write().

INLINE int EggRenderMode::get_draw_order  )  const
 

Referenced by EggLoader::setup_bucket(), and write().

INLINE bool EggRenderMode::has_bin  )  const
 

Referenced by EggPrimitive::determine_bin(), EggGroup::determine_bin(), and write().

INLINE bool EggRenderMode::has_draw_order  )  const
 

Referenced by EggPrimitive::determine_draw_order(), EggGroup::determine_draw_order(), and write().

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

Reimplemented in EggBin, EggCurve, EggGroup, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggTexture.

Definition at line 109 of file eggRenderMode.h.

References register_type().

Referenced by init_libegg(), EggTexture::init_type(), and EggGroup::init_type().

INLINE bool EggRenderMode::operator!= const EggRenderMode &  other  )  const
 

Referenced by EggTexture::is_equivalent_to(), and EggTexture::sorts_less_than().

bool EggRenderMode::operator< const EggRenderMode &  other  )  const
 

Definition at line 89 of file eggRenderMode.cxx.

References _alpha_mode, _bin, _depth_test_mode, _depth_write_mode, _draw_order, and _has_draw_order.

Referenced by EggTexture::sorts_less_than().

INLINE EggRenderMode& EggRenderMode::operator= const EggRenderMode &  copy  ) 
 

Referenced by EggTexture::operator=(), and EggGroup::operator=().

bool EggRenderMode::operator== const EggRenderMode &  other  )  const
 

Definition at line 62 of file eggRenderMode.cxx.

References _alpha_mode, _bin, _depth_test_mode, _depth_write_mode, _draw_order, and _has_draw_order.

INLINE void EggRenderMode::set_alpha_mode AlphaMode  mode  ) 
 

INLINE void EggRenderMode::set_bin const string &  bin  ) 
 

INLINE void EggRenderMode::set_depth_test_mode DepthTestMode  mode  ) 
 

INLINE void EggRenderMode::set_depth_write_mode DepthWriteMode  mode  ) 
 

INLINE void EggRenderMode::set_draw_order int  order  ) 
 

EggRenderMode::AlphaMode EggRenderMode::string_alpha_mode const string &  string  )  [static]
 

Definition at line 125 of file eggRenderMode.cxx.

References AM_binary, AM_blend, AM_blend_no_occlude, AM_dual, AM_ms, AM_ms_mask, AM_off, AM_on, AM_unspecified, and cmp_nocase_uh().

Referenced by init_libegg2pg().

EggRenderMode::DepthTestMode EggRenderMode::string_depth_test_mode const string &  string  )  [static]
 

Definition at line 175 of file eggRenderMode.cxx.

References cmp_nocase_uh(), DTM_off, DTM_on, and DTM_unspecified.

EggRenderMode::DepthWriteMode EggRenderMode::string_depth_write_mode const string &  string  )  [static]
 

Definition at line 156 of file eggRenderMode.cxx.

References cmp_nocase_uh(), DWM_off, DWM_on, and DWM_unspecified.

void EggRenderMode::write ostream &  out,
int  indent_level
const
 

Reimplemented in EggGroup, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, and EggTexture.

Definition at line 33 of file eggRenderMode.cxx.

References AM_unspecified, DTM_unspecified, DWM_unspecified, get_alpha_mode(), get_bin(), get_depth_test_mode(), get_depth_write_mode(), get_draw_order(), has_bin(), has_draw_order(), and indent().

Referenced by EggTexture::write(), EggGroup::write(), and EggPrimitive::write_body().


Member Data Documentation

AlphaMode EggRenderMode::_alpha_mode [private]
 

Definition at line 97 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

string EggRenderMode::_bin [private]
 

Definition at line 102 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

DepthTestMode EggRenderMode::_depth_test_mode [private]
 

Definition at line 99 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

DepthWriteMode EggRenderMode::_depth_write_mode [private]
 

Definition at line 98 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

int EggRenderMode::_draw_order [private]
 

Definition at line 100 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

bool EggRenderMode::_has_draw_order [private]
 

Definition at line 101 of file eggRenderMode.h.

Referenced by operator<(), and operator==().

TypeHandle EggRenderMode::_type_handle [static, private]
 

Reimplemented in EggBin, EggCurve, EggGroup, EggNurbsCurve, EggNurbsSurface, EggPoint, EggPolygon, EggPrimitive, EggSurface, and EggTexture.

Definition at line 24 of file eggRenderMode.cxx.


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