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

FltVertex Class Reference

#include <fltVertex.h>

Inheritance diagram for FltVertex:

FltRecord TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

enum  Flags { F_hard_edge = 0x8000, F_normal_frozen = 0x4000, F_no_color = 0x2000, F_packed_color = 0x1000 }

Public Member Functions

 FltVertex (FltHeader *header)
FltOpcode get_opcode () const
int get_record_length () const
INLINE bool has_color () const
Colorf get_color () const
RGBColorf get_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 _color_name_index
unsigned int _flags
LPoint3d _pos
LPoint3f _normal
LPoint2f _uv
FltPackedColor _packed_color
int _color_index
bool _has_normal
bool _has_uv

Protected Member Functions

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

Static Private Attributes

TypeHandle _type_handle

Friends

class FltHeader

Member Enumeration Documentation

enum FltVertex::Flags
 

Enumeration values:
F_hard_edge 
F_normal_frozen 
F_no_color 
F_packed_color 

Definition at line 46 of file fltVertex.h.


Constructor & Destructor Documentation

FltVertex::FltVertex FltHeader header  ) 
 

Definition at line 32 of file fltVertex.cxx.

References _color_index, _color_name_index, _flags, _has_normal, _has_uv, _normal, _pos, and _uv.


Member Function Documentation

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

Reimplemented from FltRecord.

Definition at line 234 of file fltVertex.cxx.

References _color_index, _color_name_index, _flags, FltRecord::_header, _normal, _packed_color, _pos, _uv, Datagram::add_be_float32(), Datagram::add_be_float64(), Datagram::add_be_int16(), Datagram::add_be_uint16(), Datagram::add_be_uint32(), FltPackedColor::build_record(), FltRecord::build_record(), FltHeader::get_flt_version(), Datagram::get_length(), get_opcode(), get_record_length(), nassertr, Datagram::pad_bytes(), and writer().

Referenced by FltHeader::write_vertex_palette().

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

Reimplemented from FltRecord.

Definition at line 158 of file fltVertex.cxx.

References _color_index, _color_name_index, _flags, _has_normal, _has_uv, FltRecord::_header, _normal, _packed_color, _pos, _uv, FltRecord::check_remaining_size(), FltPackedColor::extract_record(), FltRecord::extract_record(), FO_vertex_c, FO_vertex_cn, FO_vertex_cnu, FO_vertex_cu, DatagramIterator::get_be_float32(), DatagramIterator::get_be_float64(), DatagramIterator::get_be_int16(), DatagramIterator::get_be_int32(), DatagramIterator::get_be_uint16(), FltHeader::get_flt_version(), DatagramIterator::get_remaining_size(), nassertr, reader(), and DatagramIterator::skip_bytes().

Referenced by FltHeader::extract_vertex().

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

Reimplemented from FltRecord.

Definition at line 78 of file fltVertex.h.

References get_class_type(), and init_type().

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

Reimplemented from FltRecord.

Definition at line 79 of file fltVertex.h.

References _type_handle.

Referenced by force_init_type(), and get_type().

Colorf FltVertex::get_color  )  const
 

Definition at line 127 of file fltVertex.cxx.

References _color_index, _flags, FltRecord::_header, _packed_color, Colorf, F_packed_color, FltHeader::get_color(), has_color(), and nassertr.

Referenced by FltLocalVertexPool::build_record(), and FltToEggConverter::make_egg_vertex().

FltOpcode FltVertex::get_opcode  )  const
 

Definition at line 51 of file fltVertex.cxx.

References FO_vertex_c, FO_vertex_cn, FO_vertex_cnu, and FO_vertex_cu.

Referenced by build_record(), and get_record_length().

int FltVertex::get_record_length  )  const
 

Definition at line 74 of file fltVertex.cxx.

References FltRecord::_header, FO_vertex_c, FO_vertex_cn, FO_vertex_cnu, FO_vertex_cu, FltHeader::get_flt_version(), get_opcode(), and nassertr.

Referenced by build_record(), and FltHeader::update_vertex_lookups().

RGBColorf FltVertex::get_rgb  )  const
 

Definition at line 142 of file fltVertex.cxx.

References _color_index, _flags, FltRecord::_header, _packed_color, F_packed_color, FltHeader::get_rgb(), has_color(), nassertr, and RGBColorf.

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

Reimplemented from FltRecord.

Definition at line 75 of file fltVertex.h.

References get_class_type().

INLINE bool FltVertex::has_color  )  const
 

Referenced by FltLocalVertexPool::build_record(), get_color(), get_rgb(), and FltToEggConverter::make_egg_vertex().

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

Reimplemented from FltRecord.

Definition at line 82 of file fltVertex.h.

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

Referenced by force_init_type(), and init_libflt().


Friends And Related Function Documentation

friend class FltHeader [friend]
 

Definition at line 91 of file fltVertex.h.


Member Data Documentation

int FltVertex::_color_index
 

Definition at line 59 of file fltVertex.h.

Referenced by build_record(), FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), get_color(), and get_rgb().

int FltVertex::_color_name_index
 

Definition at line 53 of file fltVertex.h.

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

unsigned int FltVertex::_flags
 

Definition at line 54 of file fltVertex.h.

Referenced by build_record(), FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), get_color(), and get_rgb().

bool FltVertex::_has_normal
 

Definition at line 61 of file fltVertex.h.

Referenced by FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), and FltToEggConverter::make_egg_vertex().

bool FltVertex::_has_uv
 

Definition at line 62 of file fltVertex.h.

Referenced by FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), and FltToEggConverter::make_egg_vertex().

LPoint3f FltVertex::_normal
 

Definition at line 56 of file fltVertex.h.

Referenced by build_record(), FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), and FltToEggConverter::make_egg_vertex().

FltPackedColor FltVertex::_packed_color
 

Definition at line 58 of file fltVertex.h.

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

LPoint3d FltVertex::_pos
 

Definition at line 55 of file fltVertex.h.

Referenced by build_record(), FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), and FltToEggConverter::make_egg_vertex().

TypeHandle FltVertex::_type_handle [static, private]
 

Reimplemented from FltRecord.

Definition at line 24 of file fltVertex.cxx.

Referenced by get_class_type(), and init_type().

LPoint2f FltVertex::_uv
 

Definition at line 57 of file fltVertex.h.

Referenced by build_record(), FltLocalVertexPool::build_record(), extract_record(), FltLocalVertexPool::extract_record(), FltVertex(), and FltToEggConverter::make_egg_vertex().


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