Panda3D
vertexSlider.I
1 // Filename: vertexSlider.I
2 // Created by: drose (28Mar05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: VertexSlider::get_name
18 // Access: Published
19 // Description: Returns the name of this particular slider. Every
20 // unique blend shape within a particular Geom must be
21 // identified with a different name, which is shared by
22 // the slider that controls it.
23 ////////////////////////////////////////////////////////////////////
24 INLINE const InternalName *VertexSlider::
25 get_name() const {
26  return _name;
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: VertexSlider::get_modified
31 // Access: Published
32 // Description: Returns a sequence number that's guaranteed to change
33 // at least every time the value reported by
34 // get_slider() changes.
35 ////////////////////////////////////////////////////////////////////
37 get_modified(Thread *current_thread) const {
38  CDReader cdata(_cycler, current_thread);
39  return cdata->_modified;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: VertexSlider::CData::Constructor
44 // Access: Public
45 // Description:
46 ////////////////////////////////////////////////////////////////////
47 INLINE VertexSlider::CData::
48 CData() {
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: VertexSlider::CData::Copy Constructor
53 // Access: Public
54 // Description:
55 ////////////////////////////////////////////////////////////////////
56 INLINE VertexSlider::CData::
57 CData(const VertexSlider::CData &copy) :
58  _modified(copy._modified)
59 {
60 }
61 
62 INLINE ostream &
63 operator << (ostream &out, const VertexSlider &obj) {
64  obj.output(out);
65  return out;
66 }
const InternalName * get_name() const
Returns the name of this particular slider.
Definition: vertexSlider.I:25
UpdateSeq get_modified(Thread *current_thread) const
Returns a sequence number that&#39;s guaranteed to change at least every time the value reported by get_s...
Definition: vertexSlider.I:37
This is an abstract base class that retains some slider value, which is a linear value that typically...
Definition: vertexSlider.h:41
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
A thread; that is, a lightweight process.
Definition: thread.h:51
This is a sequence number that increments monotonically.
Definition: updateSeq.h:43