Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
LwoInputFile Class Reference

A specialization of IffInputFile to handle reading a Lightwave Object file. More...

#include "lwoInputFile.h"

Inheritance diagram for LwoInputFile:
IffInputFile TypedObject MemoryBase

List of all members.

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 IffChunkmake_new_chunk (IffId id)
 Allocates and returns a new chunk of the appropriate type based on the given ID.

Detailed Description

A specialization of IffInputFile to handle reading a Lightwave Object file.

Definition at line 29 of file lwoInputFile.h.


Member Function Documentation

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().

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations