Panda3D

userVertexTransform.I

00001 // Filename: userVertexTransform.I
00002 // Created by:  drose (24Mar05)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: UserVertexTransform::get_name
00018 //       Access: Published
00019 //  Description: Returns the name passed to the constructor.
00020 //               Completely arbitrary.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE const string &UserVertexTransform::
00023 get_name() const {
00024   return _name;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: UserVertexTransform::set_matrix
00029 //       Access: Published
00030 //  Description: Stores the indicated matrix.
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE void UserVertexTransform::
00033 set_matrix(const LMatrix4 &matrix) {
00034   Thread *current_thread = Thread::get_current_thread();
00035   CDWriter cdata(_cycler, true, current_thread);
00036   cdata->_matrix = matrix;
00037   mark_modified(current_thread);
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: UserVertexTransform::CData::Constructor
00042 //       Access: Public
00043 //  Description:
00044 ////////////////////////////////////////////////////////////////////
00045 INLINE UserVertexTransform::CData::
00046 CData() :
00047   _matrix(LMatrix4::ident_mat())
00048 {
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: UserVertexTransform::CData::Copy Constructor
00053 //       Access: Public
00054 //  Description:
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE UserVertexTransform::CData::
00057 CData(const UserVertexTransform::CData &copy) :
00058   _matrix(copy._matrix)
00059 {
00060 }
 All Classes Functions Variables Enumerations