Panda3D
|
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on. More...
#include "iffChunk.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
IffId | get_id () const |
Returns the ID associated with this chunk. | |
virtual TypeHandle | get_type () const |
virtual IffChunk * | make_new_chunk (IffInputFile *in, IffId id) |
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the context given by this chunk itself. | |
virtual void | output (ostream &out) const |
virtual bool | read_iff (IffInputFile *in, size_t stop_at)=0 |
void | set_id (IffId id) |
Changes the ID associated with this chunk. | |
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. |
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on.
Definition at line 32 of file iffChunk.h.
IffId IffChunk::get_id | ( | ) | const [inline] |
Returns the ID associated with this chunk.
Definition at line 31 of file iffChunk.I.
static void IffChunk::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 TypedReferenceCount.
Reimplemented in IffGenericChunk, LwoBoundingBox, LwoChunk, LwoClip, LwoDiscontinuousVertexMap, LwoGroupChunk, LwoHeader, LwoLayer, LwoPoints, LwoPolygons, LwoPolygonTags, LwoStillImage, LwoSurface, LwoSurfaceBlockAxis, LwoSurfaceBlockChannel, LwoSurfaceBlockCoordSys, LwoSurfaceBlockEnabled, LwoSurfaceBlockHeader, LwoSurfaceBlockImage, LwoSurfaceBlockOpacity, LwoSurfaceBlockProjection, LwoSurfaceBlockRefObj, LwoSurfaceBlockRepeat, LwoSurfaceBlockTMap, LwoSurfaceBlockTransform, LwoSurfaceBlockVMapName, LwoSurfaceBlockWrap, LwoSurfaceColor, LwoSurfaceParameter, LwoSurfaceSidedness, LwoSurfaceSmoothingAngle, LwoTags, and LwoVertexMap.
Definition at line 57 of file iffChunk.h.
IffChunk * IffChunk::make_new_chunk | ( | IffInputFile * | in, |
IffId | id | ||
) | [virtual] |
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the context given by this chunk itself.
Reimplemented in LwoClip, LwoSurface, LwoSurfaceBlock, LwoSurfaceBlockHeader, and LwoSurfaceBlockTMap.
Definition at line 50 of file iffChunk.cxx.
References IffInputFile::make_new_chunk().
void IffChunk::set_id | ( | IffId | id | ) | [inline] |
Changes the ID associated with this chunk.
Definition at line 41 of file iffChunk.I.