Panda3D
|
An array of tag strings that will be referenced by later chunks. More...
#include "lwoTags.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
int | get_num_tags () const |
Returns the number of tags of this group. | |
string | get_tag (int n) const |
Returns the nth tag of this group. | |
virtual TypeHandle | get_type () const |
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 |
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. |
An array of tag strings that will be referenced by later chunks.
This also serves as an array of surface names to be referenced by a later LwoPolygons chunk, in 5.x LWOB files. The chunk id can be used to differentiate the meaning (TAGS vs. SRFS).
int LwoTags::get_num_tags | ( | ) | const |
Returns the number of tags of this group.
Definition at line 29 of file lwoTags.cxx.
Referenced by CLwoPolygons::get_surface().
string LwoTags::get_tag | ( | int | n | ) | const |
Returns the nth tag of this group.
Definition at line 39 of file lwoTags.cxx.
Referenced by CLwoPolygons::get_surface().
static void LwoTags::init_type | ( | ) | [inline, static] |
bool LwoTags::read_iff | ( | IffInputFile * | in, |
size_t | stop_at | ||
) | [virtual] |
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 55 of file lwoTags.cxx.
References IffInputFile::get_bytes_read(), IffInputFile::get_string(), and IffInputFile::is_eof().