Panda3D
Public Member Functions | Static Public Member Functions

IffChunk Class Reference

The basic kind of record in an EA "IFF" file, which the LightWave object file is based on. More...

#include "iffChunk.h"

Inheritance diagram for IffChunk:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase IffGenericChunk LwoChunk LwoBoundingBox LwoDiscontinuousVertexMap LwoGroupChunk LwoLayer LwoPoints LwoPolygons LwoPolygonTags LwoStillImage LwoSurfaceBlockAxis LwoSurfaceBlockChannel LwoSurfaceBlockCoordSys LwoSurfaceBlockEnabled LwoSurfaceBlockImage LwoSurfaceBlockOpacity LwoSurfaceBlockProjection LwoSurfaceBlockRefObj LwoSurfaceBlockRepeat LwoSurfaceBlockTransform LwoSurfaceBlockVMapName LwoSurfaceBlockWrap LwoSurfaceColor LwoSurfaceParameter LwoSurfaceSidedness LwoSurfaceSmoothingAngle LwoTags LwoVertexMap

List of all members.

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 IffChunkmake_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.

Detailed Description

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.


Member Function Documentation

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]
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.


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