Panda3D
|
The first chunk in a Lightwave Object file. More...
#include "lwoHeader.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
double | get_version () const |
Returns the version of the Lightwave file. | |
bool | is_valid () const |
Returns true if the header represents a valid and recognized Lightwave header, false otherwise. | |
virtual bool | read_iff (IffInputFile *in, size_t stop_at) |
Reads the data of the chunk in from the given input file, if possible. | |
virtual void | write (ostream &out, int indent_level=0) const |
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. | |
Public Attributes | |
IffId | _lwid |
The first chunk in a Lightwave Object file.
Definition at line 26 of file lwoHeader.h.
double LwoHeader::get_version | ( | ) | const [inline] |
Returns the version of the Lightwave file.
Definition at line 33 of file lwoHeader.I.
static void LwoHeader::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 LwoGroupChunk.
Definition at line 51 of file lwoHeader.h.
bool LwoHeader::is_valid | ( | ) | const [inline] |
Returns true if the header represents a valid and recognized Lightwave header, false otherwise.
Definition at line 23 of file lwoHeader.I.
Referenced by LwoToEggConverter::convert_file().
bool LwoHeader::read_iff | ( | IffInputFile * | in, |
size_t | stop_at | ||
) | [virtual] |
Reads the data of the chunk in from the given input file, if possible.
The ID and length of the chunk have already been read. stop_at is the byte position of the file to stop at (based on the current position at in->get_bytes_read()). Returns true on success, false otherwise.
Implements IffChunk.
Definition at line 45 of file lwoHeader.cxx.
References IffInputFile::get_id(), LwoGroupChunk::read_chunks_iff(), and LwoInputFile::set_lwo_version().