Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
FltGroup Class Reference

The main grouping bead of the flt file. More...

#include "fltGroup.h"

Inheritance diagram for FltGroup:
FltBeadID FltBead FltRecord TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Types

enum  Flags {
  F_forward_animation = 0x40000000, F_swing_animation = 0x20000000, F_bounding_box = 0x10000000, F_freeze_bounding_box = 0x08000000,
  F_default_parent = 0x04000000
}

Public Member Functions

 FltGroup (FltHeader *header)
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () 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.

Public Attributes

unsigned int _flags
int _layer_id
int _relative_priority
int _significance
int _special_id1
int _special_id2

Protected Member Functions

virtual bool build_record (FltRecordWriter &writer) const
 Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.
virtual bool extract_record (FltRecordReader &reader)
 Fills in the information in this bead based on the information given in the indicated datagram, whose opcode has already been read.

Detailed Description

The main grouping bead of the flt file.

Definition at line 26 of file fltGroup.h.


Member Function Documentation

bool FltGroup::build_record ( FltRecordWriter writer) const [protected, virtual]

Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.

Returns true on success, false if there is some error.

Reimplemented from FltBeadID.

Definition at line 79 of file fltGroup.cxx.

References Datagram::add_be_int16(), Datagram::add_be_uint32(), Datagram::add_int8(), FltBeadID::build_record(), Datagram::pad_bytes(), FltRecordWriter::set_opcode(), and FltRecordWriter::update_datagram().

bool FltGroup::extract_record ( FltRecordReader reader) [protected, virtual]

Fills in the information in this bead based on the information given in the indicated datagram, whose opcode has already been read.

Returns true on success, false if the datagram is invalid.

Reimplemented from FltBeadID.

Definition at line 46 of file fltGroup.cxx.

References FltRecord::check_remaining_size(), FltBeadID::extract_record(), FltHeader::get_flt_version(), FltRecordReader::get_iterator(), and FltRecordReader::get_opcode().

static void FltGroup::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from FltBeadID.

Definition at line 56 of file fltGroup.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations