14#ifndef TRANSFORMBLENDTABLE_H
15#define TRANSFORMBLENDTABLE_H
45class EXPCL_PANDA_GOBJ TransformBlendTable :
public CopyOnWriteObject {
47 virtual PT(CopyOnWriteObject) make_cow_copy();
50 TransformBlendTable();
51 TransformBlendTable(
const TransformBlendTable ©);
52 void operator = (
const TransformBlendTable ©);
53 virtual ~TransformBlendTable();
71 void write(std::ostream &out,
int indent_level)
const;
83 INLINE
void consider_rebuild_index()
const;
86 void recompute_modified(CData *cdata,
Thread *current_thread);
87 void clear_modified(
Thread *current_thread);
93 typedef pvector<TransformBlend> Blends;
102 typedef pmap<const TransformBlend *, int, IndirectLess<TransformBlend> > BlendIndex;
103 BlendIndex _blend_index;
105 int _max_simultaneous_transforms;
110 class EXPCL_PANDA_GOBJ CData :
public CycleData {
113 INLINE CData(
const CData ©);
118 return TransformBlendTable::get_class_type();
125 PipelineCycler<CData> _cycler;
126 typedef CycleDataLockedReader<CData> CDLockedReader;
127 typedef CycleDataReader<CData> CDReader;
128 typedef CycleDataWriter<CData> CDWriter;
131 static void register_with_read_factory();
136 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
137 void fillin(DatagramIterator &scan, BamReader *manager);
140 static TypeHandle get_class_type() {
143 static void init_type() {
144 CopyOnWriteObject::init_type();
146 CopyOnWriteObject::get_class_type());
148 virtual TypeHandle get_type()
const {
149 return get_class_type();
151 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
154 static TypeHandle _type_handle;
156 friend class VertexTransform;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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...
This class records a set of integers, where each integer is either present or not present in the set.
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.
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.