Panda3D
|
A specialization of IffInputFile to handle reading a Lightwave Object file. More...
#include "lwoInputFile.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
Filename | get_filename () |
Reads a Lightwave platform-neutral filename and converts it to a Panda platform-neutral filename. | |
double | get_lwo_version () const |
Returns the version of the Lightwave file being read. | |
virtual TypeHandle | get_type () const |
LVecBase3 | get_vec3 () |
Reads a three-component vector of floats. | |
int | get_vx () |
Reads a Lightwave variable-length index. | |
void | set_lwo_version (double version) |
Changes the version number reported for the Lightwave file. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Member Functions | |
virtual IffChunk * | make_new_chunk (IffId id) |
Allocates and returns a new chunk of the appropriate type based on the given ID. |
A specialization of IffInputFile to handle reading a Lightwave Object file.
Definition at line 29 of file lwoInputFile.h.
Reads a Lightwave platform-neutral filename and converts it to a Panda platform-neutral filename.
Definition at line 90 of file lwoInputFile.cxx.
References IffInputFile::get_string().
Referenced by LwoStillImage::read_iff().
double LwoInputFile::get_lwo_version | ( | ) | const [inline] |
Returns the version of the Lightwave file being read.
This is unknown until the header record has been read; then it will be set by the header.
Definition at line 24 of file lwoInputFile.I.
Referenced by LwoPolygons::read_iff().
Reads a three-component vector of floats.
Definition at line 75 of file lwoInputFile.cxx.
References IffInputFile::get_be_float32().
Referenced by LwoBoundingBox::read_iff(), LwoSurfaceColor::read_iff(), LwoPoints::read_iff(), LwoSurfaceBlockTransform::read_iff(), and LwoLayer::read_iff().
int LwoInputFile::get_vx | ( | ) |
Reads a Lightwave variable-length index.
This is either a 2-byte or 4-byte integer.
Definition at line 55 of file lwoInputFile.cxx.
References IffInputFile::get_be_uint16().
Referenced by LwoSurfaceBlockImage::read_iff(), LwoSurfaceParameter::read_iff(), LwoSurfaceColor::read_iff(), LwoSurfaceBlockRepeat::read_iff(), LwoPolygonTags::read_iff(), LwoSurfaceBlockTransform::read_iff(), LwoVertexMap::read_iff(), LwoDiscontinuousVertexMap::read_iff(), LwoSurfaceBlockOpacity::read_iff(), and LwoPolygons::read_iff().
static void LwoInputFile::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from IffInputFile.
Definition at line 55 of file lwoInputFile.h.
IffChunk * LwoInputFile::make_new_chunk | ( | IffId | id | ) | [protected, virtual] |
Allocates and returns a new chunk of the appropriate type based on the given ID.
Reimplemented from IffInputFile.
Definition at line 113 of file lwoInputFile.cxx.
void LwoInputFile::set_lwo_version | ( | double | lwo_version | ) | [inline] |
Changes the version number reported for the Lightwave file.
Normally this is only called by LwoHeader as it is read.
Definition at line 37 of file lwoInputFile.I.
Referenced by LwoHeader::read_iff().