14 #ifndef TRANSFORMTABLE_H 15 #define TRANSFORMTABLE_H 45 INLINE
bool is_registered()
const;
48 INLINE
size_t get_num_transforms()
const;
50 MAKE_SEQ(get_transforms, get_num_transforms, get_transform);
51 INLINE
UpdateSeq get_modified(
Thread *current_thread = Thread::get_current_thread())
const;
55 void remove_transform(
size_t n);
58 void write(std::ostream &out)
const;
60 MAKE_PROPERTY(registered, is_registered);
61 MAKE_PROPERTY(modified, get_modified);
62 MAKE_SEQ_PROPERTY(transforms, get_num_transforms, get_transform, set_transform,
63 remove_transform, insert_transform);
68 INLINE
void update_modified(
UpdateSeq modified,
Thread *current_thread);
77 class EXPCL_PANDA_GOBJ CData :
public CycleData {
80 INLINE CData(
const CData ©);
85 return TransformTable::get_class_type();
96 static void register_with_read_factory();
108 static void init_type() {
109 TypedWritableReferenceCount::init_type();
111 TypedWritableReferenceCount::get_class_type());
114 return get_class_type();
116 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
124 INLINE 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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A single page of data maintained by a PipelineCycler.
Base class for objects that can be written to and read from Bam files.
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.
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
virtual void write_datagram(BamWriter *, Datagram &) const
Writes the contents of this object to the datagram for shipping out to a Bam file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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 template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
A thread; that is, a lightweight process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.