Panda3D
 All Classes Functions Variables Enumerations
vertexTransform.I
00001 // Filename: vertexTransform.I
00002 // Created by:  drose (23Mar05)
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: VertexTransform::get_modified
00018 //       Access: Published
00019 //  Description: Returns a sequence number that's guaranteed to change
00020 //               at least every time the value reported by
00021 //               get_matrix() changes.
00022 ////////////////////////////////////////////////////////////////////
00023 INLINE UpdateSeq VertexTransform::
00024 get_modified(Thread *current_thread) const {
00025   CDReader cdata(_cycler, current_thread);
00026   return cdata->_modified;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: VertexTransform::get_global_modified
00031 //       Access: Published, Static
00032 //  Description: Returns the currently highest
00033 //               VertexTransform::get_modified() value in the world.
00034 //               This can be used as a quick way to determine if any
00035 //               VertexTransforms have changed value recently.
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE UpdateSeq VertexTransform::
00038 get_global_modified(Thread *current_thread) {
00039   CDReader cdata(_global_cycler, current_thread);
00040   return cdata->_modified;
00041 }
00042 
00043 ////////////////////////////////////////////////////////////////////
00044 //     Function: VertexTransform::CData::Constructor
00045 //       Access: Public
00046 //  Description:
00047 ////////////////////////////////////////////////////////////////////
00048 INLINE VertexTransform::CData::
00049 CData() {
00050 }
00051 
00052 ////////////////////////////////////////////////////////////////////
00053 //     Function: VertexTransform::CData::Copy Constructor
00054 //       Access: Public
00055 //  Description:
00056 ////////////////////////////////////////////////////////////////////
00057 INLINE VertexTransform::CData::
00058 CData(const VertexTransform::CData &copy) :
00059   _modified(copy._modified)
00060 {
00061 }
00062 
00063 INLINE ostream &
00064 operator << (ostream &out, const VertexTransform &obj) {
00065   obj.output(out);
00066   return out;
00067 }
 All Classes Functions Variables Enumerations