Panda3D
 All Classes Functions Variables Enumerations
vertexSlider.I
00001 // Filename: vertexSlider.I
00002 // Created by:  drose (28Mar05)
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: VertexSlider::get_name
00018 //       Access: Published
00019 //  Description: Returns the name of this particular slider.  Every
00020 //               unique blend shape within a particular Geom must be
00021 //               identified with a different name, which is shared by
00022 //               the slider that controls it.
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE const InternalName *VertexSlider::
00025 get_name() const {
00026   return _name;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: VertexSlider::get_modified
00031 //       Access: Published
00032 //  Description: Returns a sequence number that's guaranteed to change
00033 //               at least every time the value reported by
00034 //               get_slider() changes.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE UpdateSeq VertexSlider::
00037 get_modified(Thread *current_thread) const {
00038   CDReader cdata(_cycler, current_thread);
00039   return cdata->_modified;
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: VertexSlider::CData::Constructor
00044 //       Access: Public
00045 //  Description:
00046 ////////////////////////////////////////////////////////////////////
00047 INLINE VertexSlider::CData::
00048 CData() {
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: VertexSlider::CData::Copy Constructor
00053 //       Access: Public
00054 //  Description:
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE VertexSlider::CData::
00057 CData(const VertexSlider::CData &copy) :
00058   _modified(copy._modified)
00059 {
00060 }
00061 
00062 INLINE ostream &
00063 operator << (ostream &out, const VertexSlider &obj) {
00064   obj.output(out);
00065   return out;
00066 }
 All Classes Functions Variables Enumerations