Panda3D
userVertexTransform.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 userVertexTransform.I
10  * @author drose
11  * @date 2005-03-24
12  */
13 
14 /**
15  * Returns the name passed to the constructor. Completely arbitrary.
16  */
17 INLINE const std::string &UserVertexTransform::
18 get_name() const {
19  return _name;
20 }
21 
22 /**
23  * Stores the indicated matrix.
24  */
25 INLINE void UserVertexTransform::
26 set_matrix(const LMatrix4 &matrix) {
27  Thread *current_thread = Thread::get_current_thread();
28  CDWriter cdata(_cycler, true, current_thread);
29  cdata->_matrix = matrix;
30  mark_modified(current_thread);
31 }
32 
33 /**
34  *
35  */
36 INLINE UserVertexTransform::CData::
37 CData() :
38  _matrix(LMatrix4::ident_mat())
39 {
40 }
41 
42 /**
43  *
44  */
45 INLINE UserVertexTransform::CData::
46 CData(const UserVertexTransform::CData &copy) :
47  _matrix(copy._matrix)
48 {
49 }
const std::string & get_name() const
Returns the name passed to the constructor.
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A thread; that is, a lightweight process.
Definition: thread.h:46
void set_matrix(const LMatrix4 &matrix)
Stores the indicated matrix.