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

LwoPolygons Class Reference

#include <lwoPolygons.h>

Inheritance diagram for LwoPolygons:

LwoChunk IffChunk TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

enum  PolygonFlags { PF_continuity_1 = 0x0400, PF_continuity_2 = 0x0800, PF_numverts_mask = 0x03ff, PF_decal = 0x0001 }

Public Member Functions

int get_num_polygons () const
Polygonget_polygon (int n) const
virtual bool read_iff (IffInputFile *in, size_t stop_at)
virtual void write (ostream &out, int indent_level=0) const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

IffId _polygon_type

Private Types

typedef pvector< PT(PolygonPolygons )

Private Attributes

Polygons _polygons

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef pvector< PT(Polygon) LwoPolygons::Polygons) [private]
 

Definition at line 71 of file lwoPolygons.h.


Member Enumeration Documentation

enum LwoPolygons::PolygonFlags
 

Enumeration values:
PF_continuity_1 
PF_continuity_2 
PF_numverts_mask 
PF_decal 

Definition at line 38 of file lwoPolygons.h.


Member Function Documentation

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

Reimplemented from LwoChunk.

Definition at line 78 of file lwoPolygons.h.

References get_class_type(), and init_type().

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

Reimplemented from LwoChunk.

Definition at line 79 of file lwoPolygons.h.

References _type_handle.

Referenced by LwoToEggConverter::collect_lwo(), force_init_type(), and get_type().

int LwoPolygons::get_num_polygons  )  const
 

Definition at line 33 of file lwoPolygons.cxx.

References _polygons.

LwoPolygons::Polygon * LwoPolygons::get_polygon int  n  )  const
 

Definition at line 43 of file lwoPolygons.cxx.

References _polygons, n, nassertr, and NULL.

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

Reimplemented from LwoChunk.

Definition at line 75 of file lwoPolygons.h.

References get_class_type().

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

Reimplemented from LwoChunk.

Definition at line 82 of file lwoPolygons.h.

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

Referenced by force_init_type(), and init_liblwo().

bool LwoPolygons::read_iff IffInputFile in,
size_t  stop_at
[virtual]
 

Implements IffChunk.

Definition at line 59 of file lwoPolygons.cxx.

References _polygon_type, _polygons, DCAST, IffInputFile::get_be_int16(), IffInputFile::get_be_uint16(), IffInputFile::get_bytes_read(), IffInputFile::get_id(), LwoInputFile::get_lwo_version(), LwoInputFile::get_vx(), IffInputFile::is_eof(), PF_decal, PF_numverts_mask, and PT.

void LwoPolygons::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented from IffChunk.

Definition at line 132 of file lwoPolygons.cxx.

References _polygon_type, _polygons, IffChunk::get_id(), and indent().


Member Data Documentation

IffId LwoPolygons::_polygon_type
 

Definition at line 64 of file lwoPolygons.h.

Referenced by read_iff(), and write().

Polygons LwoPolygons::_polygons [private]
 

Definition at line 72 of file lwoPolygons.h.

Referenced by get_num_polygons(), get_polygon(), read_iff(), and write().

TypeHandle LwoPolygons::_type_handle [static, private]
 

Reimplemented from LwoChunk.

Definition at line 25 of file lwoPolygons.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:01:13 2003 for Panda-Tool by doxygen1.3