18 #include "pandatoolbase.h"
20 #include "fltRecord.h"
21 #include "fltTransformRecord.h"
75 return get_class_type();
77 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
81 static void init_type() {
82 FltRecord::init_type();
83 register_type(_type_handle,
"FltBead",
84 FltRecord::get_class_type());
void set_transform(const LMatrix4d &mat)
Replaces the transform matrix on this bead.
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This is a 4-by-4 transform matrix.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
int get_replicate_count() const
Returns the replicate count of this bead.
FltTransformRecord * get_transform_step(int n)
Returns the nth individual step that defines the net transform on this bead.
void add_transform_step(FltTransformRecord *record)
Applies the indicated transform step to the net transformation applied to the bead.
const LMatrix4d & get_transform() const
Returns the single-precision 4x4 matrix that represents the transform applied to this bead...
A base class for any of a broad family of flt records that represent particular beads in the hierarch...
int get_num_transform_steps() const
Returns the number of individual steps that define the net transform on this bead as returned by set_...
bool has_transform() const
Returns true if the bead has been transformed, false otherwise.
The base class for all kinds of records in a MultiGen OpenFlight file.
void clear_transform()
Removes any transform matrix and all transform steps on this bead.
TypeHandle is the identifier used to differentiate C++ class types.
void set_replicate_count(int count)
Changes the replicate count of this bead.