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

EggPolysetMaker Class Reference

#include <eggPolysetMaker.h>

Inheritance diagram for EggPolysetMaker:

EggBinMaker EggObject TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

enum  BinNumber { BN_none = 0, BN_polyset }
enum  Properties {
  P_has_texture = 0x001, P_texture = 0x002, P_has_material = 0x004, P_material = 0x008,
  P_has_poly_color = 0x010, P_poly_color = 0x020, P_has_poly_normal = 0x040, P_has_vertex_normal = 0x080,
  P_has_vertex_color = 0x100, P_bface = 0x200
}

Public Member Functions

 EggPolysetMaker ()
void set_properties (int properties)
virtual int get_bin_number (const EggNode *node)
virtual bool sorts_less (int bin_number, const EggNode *a, const EggNode *b)

Private Attributes

int _properties

Member Enumeration Documentation

enum EggPolysetMaker::BinNumber
 

Enumeration values:
BN_none 
BN_polyset 

Definition at line 44 of file eggPolysetMaker.h.

Referenced by sorts_less().

enum EggPolysetMaker::Properties
 

Enumeration values:
P_has_texture 
P_texture 
P_has_material 
P_material 
P_has_poly_color 
P_poly_color 
P_has_poly_normal 
P_has_vertex_normal 
P_has_vertex_color 
P_bface 

Definition at line 49 of file eggPolysetMaker.h.


Constructor & Destructor Documentation

EggPolysetMaker::EggPolysetMaker  ) 
 

Definition at line 28 of file eggPolysetMaker.cxx.

References _properties.


Member Function Documentation

int EggPolysetMaker::get_bin_number const EggNode node  )  [virtual]
 

Implements EggBinMaker.

Definition at line 53 of file eggPolysetMaker.cxx.

References BN_none, BN_polyset, EggPolygon::get_class_type(), and TypedObject::is_of_type().

void EggPolysetMaker::set_properties int  properties  ) 
 

Definition at line 43 of file eggPolysetMaker.cxx.

References _properties.

bool EggPolysetMaker::sorts_less int  bin_number,
const EggNode a,
const EggNode b
[virtual]
 

Reimplemented from EggBinMaker.

Definition at line 68 of file eggPolysetMaker.cxx.

References _properties, a, b, BinNumber, BN_polyset, DCAST, EggPrimitive::get_bface_flag(), EggAttributes::get_color(), EggPrimitive::get_material(), EggPrimitive::get_texture(), EggAttributes::has_color(), EggPrimitive::has_material(), EggAttributes::has_normal(), EggPrimitive::has_texture(), EggPrimitive::has_vertex_color(), EggPrimitive::has_vertex_normal(), P_has_material, P_has_texture, P_material, P_texture, pb, EggMaterial::sorts_less_than(), and EggTexture::sorts_less_than().


Member Data Documentation

int EggPolysetMaker::_properties [private]
 

Definition at line 73 of file eggPolysetMaker.h.

Referenced by EggPolysetMaker(), set_properties(), and sorts_less().


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