14#ifndef VERTEXTRANSFORM_H
15#define VERTEXTRANSFORM_H
35class EXPCL_PANDA_GOBJ VertexTransform :
public TypedWritableReferenceCount {
38 virtual ~VertexTransform();
40 virtual void get_matrix(LMatrix4 &matrix)
const=0;
41 virtual void mult_matrix(LMatrix4 &result,
const LMatrix4 &previous)
const;
47 virtual void output(std::ostream &out)
const;
48 virtual void write(std::ostream &out,
int indent_level)
const;
54 void mark_modified(
Thread *current_thread);
61 class EXPCL_PANDA_GOBJ CData :
public CycleData {
64 INLINE CData(
const CData ©);
70 VertexTransform::init_type();
71 return VertexTransform::get_class_type();
77 PipelineCycler<CData> _cycler;
78 typedef CycleDataReader<CData> CDReader;
79 typedef CycleDataWriter<CData> CDWriter;
81 static PipelineCycler<CData> _global_cycler;
82 static UpdateSeq _next_modified;
88 void fillin(DatagramIterator &scan, BamReader *manager);
91 static TypeHandle get_class_type() {
94 static void init_type() {
95 TypedWritableReferenceCount::init_type();
97 TypedWritableReferenceCount::get_class_type());
99 virtual TypeHandle get_type()
const {
100 return get_class_type();
102 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
105 static TypeHandle _type_handle;
107 friend class TransformTable;
110INLINE std::ostream &operator << (std::ostream &out,
const VertexTransform &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 ...
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.
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
This is our own Panda specialization on the default STL list.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.