Panda3D
vertexTransform.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file vertexTransform.I
10  * @author drose
11  * @date 2005-03-23
12  */
13 
14 /**
15  * Returns a sequence number that's guaranteed to change at least every time
16  * the value reported by get_matrix() changes.
17  */
19 get_modified(Thread *current_thread) const {
20  CDReader cdata(_cycler, current_thread);
21  return cdata->_modified;
22 }
23 
24 /**
25  * Returns the currently highest VertexTransform::get_modified() value in the
26  * world. This can be used as a quick way to determine if any
27  * VertexTransforms have changed value recently.
28  */
30 get_global_modified(Thread *current_thread) {
31  CDReader cdata(_global_cycler, current_thread);
32  return cdata->_modified;
33 }
34 
35 /**
36  *
37  */
38 INLINE VertexTransform::CData::
39 CData() {
40 }
41 
42 /**
43  *
44  */
45 INLINE VertexTransform::CData::
46 CData(const VertexTransform::CData &copy) :
47  _modified(copy._modified)
48 {
49 }
50 
51 INLINE std::ostream &
52 operator << (std::ostream &out, const VertexTransform &obj) {
53  obj.output(out);
54  return out;
55 }
get_modified
Returns a sequence number that's guaranteed to change at least every time the value reported by get_m...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This is an abstract base class that holds a pointer to some transform, computed in some arbitrary way...
static UpdateSeq get_global_modified(Thread *current_thread)
Returns the currently highest VertexTransform::get_modified() value in the world.
A thread; that is, a lightweight process.
Definition: thread.h:46
This is a sequence number that increments monotonically.
Definition: updateSeq.h:37