26 return _chunks.size();
34 nassertr(n >= 0 && n < (
int)_chunks.size(),
nullptr);
46 PT(
IffChunk) chunk = in->get_chunk();
47 if (chunk ==
nullptr) {
50 _chunks.push_back(chunk);
62 PT(
IffChunk) chunk = in->get_subchunk(
this);
63 if (chunk ==
nullptr) {
66 _chunks.push_back(chunk);
77 write_chunks(std::ostream &out,
int indent_level)
const {
78 Chunks::const_iterator ci;
79 for (ci = _chunks.begin(); ci != _chunks.end(); ++ci) {
80 (*ci)->write(out, indent_level);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
IffChunk * get_chunk(int n) const
Returns the nth child chunk of this group.
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on.
int get_num_chunks() const
Returns the number of child chunks of this group.
TypeHandle is the identifier used to differentiate C++ class types.