#include <lwoLayer.h>
Inheritance diagram for LwoLayer:
Public Types | |
enum | Flags { F_hidden = 0x0001 } |
Public Member Functions | |
void | make_generic () |
Resets the layer's parameters to initial defaults for a generic layer created implicitly. | |
virtual bool | read_iff (IffInputFile *in, size_t stop_at) |
Reads the data of the chunk in from the given input file, if possible. | |
virtual void | write (ostream &out, int indent_level=0) const |
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 void | output (ostream &out) 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 () |
Public Attributes | |
int | _number |
int | _flags |
LPoint3f | _pivot |
string | _name |
int | _parent |
Protected Attributes | |
int | _ref_count |
Static Private Attributes | |
TypeHandle | _type_handle |
All the data chunks which follow will be included in this layer until another layer chunk is encountered. If data is encountered before a layer chunk, it goes into an arbitrary layer.
Definition at line 46 of file lwoLayer.h.
|
Definition at line 50 of file lwoLayer.h. |
|
Reimplemented from LwoChunk. Definition at line 68 of file lwoLayer.h. |
|
Reimplemented from LwoChunk. Definition at line 69 of file lwoLayer.h. References _type_handle. Referenced by LwoToEggConverter::cleanup(). |
|
|
Reimplemented from LwoChunk. Definition at line 65 of file lwoLayer.h. |
|
Reimplemented from LwoChunk. Definition at line 72 of file lwoLayer.h. |
|
Resets the layer's parameters to initial defaults for a generic layer created implicitly.
Definition at line 41 of file lwoLayer.cxx. References _flags, _name, _number, _parent, _pivot, DCAST, IffInputFile::get_be_uint16(), IffInputFile::get_bytes_read(), IffInputFile::get_string(), and LwoInputFile::get_vec3(). |
|
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(). |
|
Reads the data of the chunk in from the given input file, if possible. The ID and length of the chunk have already been read. stop_at is the byte position of the file to stop at (based on the current position at in->get_bytes_read()). Returns true on success, false otherwise. Implements IffChunk. Definition at line 68 of file lwoLayer.cxx. |
|
Changes the ID associated with this chunk.
Definition at line 56 of file iffChunk.I. |
|
Reimplemented from IffChunk. Definition at line 96 of file lwoLayer.cxx. |
|
Definition at line 55 of file lwoLayer.h. Referenced by make_generic(). |
|
Definition at line 57 of file lwoLayer.h. Referenced by make_generic(). |
|
Definition at line 54 of file lwoLayer.h. Referenced by make_generic(). |
|
Definition at line 58 of file lwoLayer.h. Referenced by make_generic(). |
|
Definition at line 56 of file lwoLayer.h. Referenced by make_generic(). |
|
Reimplemented from LwoChunk. Definition at line 28 of file lwoLayer.cxx. Referenced by get_class_type(). |