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

FltGeometry Class Reference

#include <fltGeometry.h>

Inheritance diagram for FltGeometry:

FltBeadID FltBead FltRecord TypedReferenceCount TypedObject ReferenceCount FltFace FltMesh List of all members.

Public Types

enum  DrawType {
  DT_solid_backface = 0, DT_solid_no_backface = 1, DT_wireframe = 2, DT_wireframe_close = 3,
  DT_wireframe_highlight = 4, DT_omni_light = 5, DT_uni_light = 6, DT_bi_light = 7
}
enum  BillboardType { BT_none = 0, BT_fixed = 1, BT_axial = 2, BT_point = 4 }
enum  Flags {
  F_terrain = 0x80000000, F_no_color = 0x40000000, F_no_alt_color = 0x20000000, F_packed_color = 0x10000000,
  F_terrain_footprint = 0x08000000, F_hidden = 0x04000000
}
enum  LightMode { LM_face_no_normal = 0, LM_vertex_no_normal = 1, LM_face_with_normal = 2, LM_vertex_with_normal = 3 }

Public Member Functions

 FltGeometry (FltHeader *header)
INLINE bool has_texture () const
INLINE FltTextureget_texture () const
INLINE bool has_material () const
INLINE FltMaterialget_material () const
INLINE bool has_color () const
Colorf get_color () const
RGBColorf get_rgb () const
bool has_alt_color () const
Colorf get_alt_color () const
RGBColorf get_alt_rgb () const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

int _ir_color
int _relative_priority
DrawType _draw_type
bool _texwhite
int _color_name_index
int _alt_color_name_index
BillboardType _billboard_type
int _detail_texture_index
int _texture_index
int _material_index
int _dfad_material_code
int _dfad_feature_id
int _ir_material_code
int _transparency
int _lod_generation_control
int _line_style_index
unsigned int _flags
LightMode _light_mode
FltPackedColor _packed_color
FltPackedColor _alt_packed_color
int _texture_mapping_index
int _color_index
int _alt_color_index

Protected Member Functions

virtual bool extract_record (FltRecordReader &reader)
virtual bool build_record (FltRecordWriter &writer) const

Static Private Attributes

TypeHandle _type_handle

Member Enumeration Documentation

enum FltGeometry::BillboardType
 

Enumeration values:
BT_none 
BT_fixed 
BT_axial 
BT_point 

Definition at line 55 of file fltGeometry.h.

enum FltGeometry::DrawType
 

Enumeration values:
DT_solid_backface 
DT_solid_no_backface 
DT_wireframe 
DT_wireframe_close 
DT_wireframe_highlight 
DT_omni_light 
DT_uni_light 
DT_bi_light 

Definition at line 44 of file fltGeometry.h.

enum FltGeometry::Flags
 

Enumeration values:
F_terrain 
F_no_color 
F_no_alt_color 
F_packed_color 
F_terrain_footprint 
F_hidden 

Definition at line 62 of file fltGeometry.h.

enum FltGeometry::LightMode
 

Enumeration values:
LM_face_no_normal 
LM_vertex_no_normal 
LM_face_with_normal 
LM_vertex_with_normal 

Definition at line 71 of file fltGeometry.h.


Constructor & Destructor Documentation

FltGeometry::FltGeometry FltHeader header  ) 
 

Definition at line 33 of file fltGeometry.cxx.

References _alt_color_index, _alt_color_name_index, _billboard_type, _color_index, _color_name_index, _detail_texture_index, _dfad_feature_id, _dfad_material_code, _draw_type, _flags, _ir_color, _ir_material_code, _light_mode, _line_style_index, _lod_generation_control, _material_index, _relative_priority, _texture_index, _texture_mapping_index, _texwhite, _transparency, BT_none, DT_solid_backface, and LM_face_no_normal.


Member Function Documentation

bool FltGeometry::build_record FltRecordWriter writer  )  const [protected, virtual]
 

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 224 of file fltGeometry.cxx.

References _alt_color_index, _alt_color_name_index, _alt_packed_color, _billboard_type, _color_index, _color_name_index, _detail_texture_index, _dfad_feature_id, _dfad_material_code, _draw_type, _flags, FltRecord::_header, _ir_color, _ir_material_code, _light_mode, _line_style_index, _lod_generation_control, _material_index, _packed_color, _relative_priority, _texture_index, _texture_mapping_index, _texwhite, _transparency, Datagram::add_be_int16(), Datagram::add_be_int32(), Datagram::add_be_uint16(), Datagram::add_be_uint32(), Datagram::add_int8(), Datagram::add_uint8(), FltPackedColor::build_record(), FltHeader::get_flt_version(), Datagram::pad_bytes(), and writer().

Referenced by FltMesh::build_record(), and FltFace::build_record().

bool FltGeometry::extract_record FltRecordReader reader  )  [protected, virtual]
 

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 170 of file fltGeometry.cxx.

References _alt_color_index, _alt_color_name_index, _alt_packed_color, _billboard_type, _color_index, _color_name_index, _detail_texture_index, _dfad_feature_id, _dfad_material_code, _draw_type, _flags, FltRecord::_header, _ir_color, _ir_material_code, _light_mode, _line_style_index, _lod_generation_control, _material_index, _packed_color, _relative_priority, _texture_index, _texture_mapping_index, _texwhite, _transparency, FltPackedColor::extract_record(), DatagramIterator::get_be_int16(), DatagramIterator::get_be_int32(), DatagramIterator::get_be_uint16(), DatagramIterator::get_be_uint32(), FltHeader::get_flt_version(), DatagramIterator::get_int8(), DatagramIterator::get_uint8(), reader(), and DatagramIterator::skip_bytes().

Referenced by FltMesh::extract_record(), and FltFace::extract_record().

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

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 126 of file fltGeometry.h.

References get_class_type(), and init_type().

Colorf FltGeometry::get_alt_color  )  const
 

Definition at line 139 of file fltGeometry.cxx.

References _alt_color_index, _alt_packed_color, _flags, FltRecord::_header, _transparency, Colorf, F_packed_color, FltHeader::get_color(), has_alt_color(), and nassertr.

RGBColorf FltGeometry::get_alt_rgb  )  const
 

Definition at line 154 of file fltGeometry.cxx.

References _alt_color_index, _alt_packed_color, _flags, FltRecord::_header, F_packed_color, FltHeader::get_rgb(), has_alt_color(), nassertr, and RGBColorf.

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

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 127 of file fltGeometry.h.

References _type_handle.

Referenced by force_init_type(), get_type(), FltMesh::init_type(), and FltFace::init_type().

Colorf FltGeometry::get_color  )  const
 

Definition at line 69 of file fltGeometry.cxx.

References FltMaterial::_alpha, _color_index, FltMaterial::_diffuse, _flags, FltRecord::_header, _packed_color, _texwhite, _transparency, alpha, Colorf, F_packed_color, get_material(), FltHeader::get_rgb(), has_color(), has_material(), has_texture(), and RGBColorf.

Referenced by FltToEggConverter::setup_geometry().

INLINE FltMaterial* FltGeometry::get_material  )  const
 

Referenced by get_color(), and get_rgb().

RGBColorf FltGeometry::get_rgb  )  const
 

Definition at line 104 of file fltGeometry.cxx.

References _color_index, FltMaterial::_diffuse, _flags, FltRecord::_header, _packed_color, _texwhite, F_packed_color, get_material(), FltHeader::get_rgb(), has_color(), has_material(), has_texture(), and RGBColorf.

INLINE FltTexture* FltGeometry::get_texture  )  const
 

Referenced by FltCopy::scan_flt(), and FltToEggConverter::setup_geometry().

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

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 123 of file fltGeometry.h.

References get_class_type().

bool FltGeometry::has_alt_color  )  const
 

Definition at line 127 of file fltGeometry.cxx.

References _flags, and F_no_alt_color.

Referenced by get_alt_color(), and get_alt_rgb().

INLINE bool FltGeometry::has_color  )  const
 

Referenced by get_color(), get_rgb(), and FltToEggConverter::setup_geometry().

INLINE bool FltGeometry::has_material  )  const
 

Referenced by get_color(), and get_rgb().

INLINE bool FltGeometry::has_texture  )  const
 

Referenced by get_color(), get_rgb(), FltCopy::scan_flt(), and FltToEggConverter::setup_geometry().

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

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 130 of file fltGeometry.h.

References _type_handle, FltBeadID::get_class_type(), FltBeadID::init_type(), and register_type().

Referenced by force_init_type(), init_libflt(), FltMesh::init_type(), and FltFace::init_type().


Member Data Documentation

int FltGeometry::_alt_color_index
 

Definition at line 100 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), get_alt_color(), and get_alt_rgb().

int FltGeometry::_alt_color_name_index
 

Definition at line 83 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

FltPackedColor FltGeometry::_alt_packed_color
 

Definition at line 97 of file fltGeometry.h.

Referenced by build_record(), extract_record(), get_alt_color(), and get_alt_rgb().

BillboardType FltGeometry::_billboard_type
 

Definition at line 84 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), and FltToEggConverter::setup_geometry().

int FltGeometry::_color_index
 

Definition at line 99 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), get_color(), and get_rgb().

int FltGeometry::_color_name_index
 

Definition at line 82 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_detail_texture_index
 

Definition at line 85 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_dfad_feature_id
 

Definition at line 89 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_dfad_material_code
 

Definition at line 88 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

DrawType FltGeometry::_draw_type
 

Definition at line 80 of file fltGeometry.h.

Referenced by build_record(), FltToEggConverter::convert_face(), extract_record(), FltGeometry(), and FltToEggConverter::setup_geometry().

unsigned int FltGeometry::_flags
 

Definition at line 94 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), get_alt_color(), get_alt_rgb(), get_color(), get_rgb(), and has_alt_color().

int FltGeometry::_ir_color
 

Definition at line 78 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_ir_material_code
 

Definition at line 90 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

LightMode FltGeometry::_light_mode
 

Definition at line 95 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), and FltToEggConverter::setup_geometry().

int FltGeometry::_line_style_index
 

Definition at line 93 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_lod_generation_control
 

Definition at line 92 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_material_index
 

Definition at line 87 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

FltPackedColor FltGeometry::_packed_color
 

Definition at line 96 of file fltGeometry.h.

Referenced by build_record(), extract_record(), get_color(), and get_rgb().

int FltGeometry::_relative_priority
 

Definition at line 79 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_texture_index
 

Definition at line 86 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

int FltGeometry::_texture_mapping_index
 

Definition at line 98 of file fltGeometry.h.

Referenced by build_record(), extract_record(), and FltGeometry().

bool FltGeometry::_texwhite
 

Definition at line 81 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), get_color(), get_rgb(), and FltToEggConverter::setup_geometry().

int FltGeometry::_transparency
 

Definition at line 91 of file fltGeometry.h.

Referenced by build_record(), extract_record(), FltGeometry(), get_alt_color(), and get_color().

TypeHandle FltGeometry::_type_handle [static, private]
 

Reimplemented from FltBeadID.

Reimplemented in FltFace, and FltMesh.

Definition at line 25 of file fltGeometry.cxx.

Referenced by get_class_type(), and init_type().


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