#include <lwoChunk.h>
Inheritance diagram for LwoChunk:
Public Member Functions | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
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. | |
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 |
Static Private Attributes | |
TypeHandle | _type_handle |
Each kind of chunk that is specific to a Lightwave file should inherit directly or indirectly from LwoChunk.
Definition at line 42 of file lwoChunk.h.
|
|
Reimplemented from IffChunk. Reimplemented in LwoBoundingBox, 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 51 of file lwoChunk.h. References _type_handle. |
|
|
|
|
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(). |
|
Definition at line 37 of file iffChunk.cxx. References IffChunk::_id, and indent(). |
|
|
Changes the ID associated with this chunk.
Definition at line 56 of file iffChunk.I. |
|
|
Reimplemented from IffChunk. Reimplemented in LwoBoundingBox, 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 24 of file lwoChunk.cxx. Referenced by get_class_type(). |