14#ifndef TRANSFORMTABLE_H
15#define TRANSFORMTABLE_H
38class EXPCL_PANDA_GOBJ TransformTable :
public TypedWritableReferenceCount {
41 TransformTable(
const TransformTable ©);
42 void operator = (
const TransformTable ©);
43 virtual ~TransformTable();
46 INLINE
static CPT(TransformTable) register_table(
const TransformTable *table);
53 void set_transform(
size_t n,
const VertexTransform *transform);
58 void write(std::ostream &out)
const;
68 INLINE
void update_modified(
UpdateSeq modified,
Thread *current_thread);
73 typedef pvector< CPT(VertexTransform) > Transforms;
74 Transforms _transforms;
77 class EXPCL_PANDA_GOBJ CData :
public CycleData {
80 INLINE CData(
const CData ©);
85 return TransformTable::get_class_type();
91 PipelineCycler<CData> _cycler;
92 typedef CycleDataReader<CData> CDReader;
93 typedef CycleDataWriter<CData> CDWriter;
96 static void register_with_read_factory();
101 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
102 void fillin(DatagramIterator &scan, BamReader *manager);
105 static TypeHandle get_class_type() {
108 static void init_type() {
109 TypedWritableReferenceCount::init_type();
111 TypedWritableReferenceCount::get_class_type());
113 virtual TypeHandle get_type()
const {
114 return get_class_type();
116 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
119 static TypeHandle _type_handle;
121 friend class VertexTransform;
124INLINE std::ostream &operator << (std::ostream &out,
const TransformTable &obj);
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
A single page of data maintained by a PipelineCycler.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A thread; that is, a lightweight process.
get_current_thread
Returns a pointer to the currently-executing Thread object.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is a sequence number that increments monotonically.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.