Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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

 IffChunk ()
IffId get_id () const
 Returns the ID associated with this chunk.

void set_id (IffId id)
 Changes the ID associated with this chunk.

virtual bool read_iff (IffInputFile *in, size_t stop_at)=0
virtual void output (ostream &out) const
virtual void write (ostream &out, int indent_level=0) 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 TypeHandle get_type () const
virtual TypeHandle force_init_type ()
int get_type_index () const
bool is_of_type (TypeHandle handle) const
bool is_exact_type (TypeHandle handle) const
int get_ref_count () const
int ref () const
int unref () const
void test_ref_count_integrity () const

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Attributes

int _ref_count

Private Attributes

IffId _id

Static Private Attributes

TypeHandle _type_handle

Detailed Description

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

Definition at line 43 of file iffChunk.h.


Constructor & Destructor Documentation

IffChunk::IffChunk  )  [inline]
 

Definition at line 31 of file iffChunk.I.

References _id, and INLINE.


Member Function Documentation

virtual TypeHandle IffChunk::force_init_type void   )  [inline, virtual]
 

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 64 of file iffChunk.h.

TypeHandle IffChunk::get_class_type void   )  [inline, static]
 

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 65 of file iffChunk.h.

IffId IffChunk::get_id void   )  const [inline]
 

Returns the ID associated with this chunk.

Definition at line 43 of file iffChunk.I.

References _id, and INLINE.

Referenced by LwoTags::read_iff(), LwoSurfaceSmoothingAngle::read_iff(), LwoSurfaceSidedness::read_iff(), LwoSurfaceParameter::read_iff(), LwoSurfaceColor::read_iff(), LwoSurfaceBlockWrap::read_iff(), LwoSurfaceBlockVMapName::read_iff(), LwoSurfaceBlockTransform::read_iff(), LwoSurfaceBlockTMap::read_iff(), LwoSurfaceBlockRepeat::read_iff(), LwoSurfaceBlockRefObj::read_iff(), LwoSurfaceBlockProjection::read_iff(), LwoSurfaceBlockOpacity::read_iff(), LwoSurfaceBlockImage::read_iff(), LwoSurfaceBlockHeader::read_iff(), LwoSurfaceBlockEnabled::read_iff(), LwoSurfaceBlockCoordSys::read_iff(), LwoSurfaceBlockChannel::read_iff(), LwoSurfaceBlockAxis::read_iff(), LwoSurface::read_iff(), LwoStillImage::read_iff(), LwoPolygonTags::read_iff(), LwoPoints::read_iff(), LwoClip::read_iff(), LwoBoundingBox::read_iff(), and IffGenericChunk::read_iff().

virtual TypeHandle IffChunk::get_type void   )  const [inline, virtual]
 

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 61 of file iffChunk.h.

References _type_handle, TypedReferenceCount::init_type(), and register_type().

void IffChunk::init_type void   )  [inline, static]
 

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 68 of file iffChunk.h.

References _type_handle.

Referenced by ConfigureFn().

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 66 of file iffChunk.cxx.

Referenced by IffInputFile::get_chunk(), LwoSurfaceBlockTMap::write(), and LwoClip::write().

void IffChunk::output ostream &  out  )  const [virtual]
 

Definition at line 37 of file iffChunk.cxx.

References _id, and indent().

virtual bool IffChunk::read_iff IffInputFile in,
size_t  stop_at
[pure virtual]
 

Implemented in IffGenericChunk, LwoBoundingBox, LwoClip, LwoDiscontinuousVertexMap, LwoHeader, LwoLayer, LwoPoints, LwoPolygons, LwoPolygonTags, LwoStillImage, LwoSurface, LwoSurfaceBlock, LwoSurfaceBlockAxis, LwoSurfaceBlockChannel, LwoSurfaceBlockCoordSys, LwoSurfaceBlockEnabled, LwoSurfaceBlockHeader, LwoSurfaceBlockImage, LwoSurfaceBlockOpacity, LwoSurfaceBlockProjection, LwoSurfaceBlockRefObj, LwoSurfaceBlockRepeat, LwoSurfaceBlockTMap, LwoSurfaceBlockTransform, LwoSurfaceBlockVMapName, LwoSurfaceBlockWrap, LwoSurfaceColor, LwoSurfaceParameter, LwoSurfaceSidedness, LwoSurfaceSmoothingAngle, LwoTags, and LwoVertexMap.

void IffChunk::set_id IffId  id  )  [inline]
 

Changes the ID associated with this chunk.

Definition at line 56 of file iffChunk.I.

void IffChunk::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented in IffGenericChunk, LwoBoundingBox, LwoClip, LwoDiscontinuousVertexMap, LwoHeader, LwoLayer, LwoPoints, LwoPolygons, LwoPolygonTags, LwoStillImage, LwoSurface, LwoSurfaceBlock, LwoSurfaceBlockAxis, LwoSurfaceBlockChannel, LwoSurfaceBlockCoordSys, LwoSurfaceBlockEnabled, LwoSurfaceBlockHeader, LwoSurfaceBlockImage, LwoSurfaceBlockOpacity, LwoSurfaceBlockProjection, LwoSurfaceBlockRefObj, LwoSurfaceBlockRepeat, LwoSurfaceBlockTMap, LwoSurfaceBlockTransform, LwoSurfaceBlockVMapName, LwoSurfaceBlockWrap, LwoSurfaceColor, LwoSurfaceParameter, LwoSurfaceSidedness, LwoSurfaceSmoothingAngle, LwoTags, and LwoVertexMap.

Definition at line 49 of file iffChunk.cxx.

References IffInputFile::make_new_chunk().


Member Data Documentation

IffId IffChunk::_id [private]
 

Definition at line 58 of file iffChunk.h.

Referenced by get_id(), IffChunk(), and output().

TypeHandle IffChunk::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Reimplemented in IffGenericChunk, LwoBoundingBox, LwoChunk, LwoClip, LwoDiscontinuousVertexMap, LwoGroupChunk, LwoHeader, LwoLayer, LwoPoints, LwoPolygons, LwoPolygonTags, LwoStillImage, LwoSurface, LwoSurfaceBlock, LwoSurfaceBlockAxis, LwoSurfaceBlockChannel, LwoSurfaceBlockCoordSys, LwoSurfaceBlockEnabled, LwoSurfaceBlockHeader, LwoSurfaceBlockImage, LwoSurfaceBlockOpacity, LwoSurfaceBlockProjection, LwoSurfaceBlockRefObj, LwoSurfaceBlockRepeat, LwoSurfaceBlockTMap, LwoSurfaceBlockTransform, LwoSurfaceBlockVMapName, LwoSurfaceBlockWrap, LwoSurfaceColor, LwoSurfaceParameter, LwoSurfaceSidedness, LwoSurfaceSmoothingAngle, LwoTags, and LwoVertexMap.

Definition at line 27 of file iffChunk.cxx.

Referenced by get_type(), and init_type().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:27:16 2003 for Panda-Tool by doxygen1.3