00001 // Filename: planeNode.I 00002 // Created by: drose (11Jul02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: PlaneNode::CData::Constructor 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE PlaneNode::CData:: 00026 CData() { 00027 // The default plane (perpendicular to the Z-axis) is used until 00028 // another one is specified explicitly. 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: PlaneNode::CData::Copy Constructor 00033 // Access: Public 00034 // Description: 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE PlaneNode::CData:: 00037 CData(const PlaneNode::CData ©) : 00038 _plane(copy._plane) 00039 { 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: set_plane 00044 // Access: Public 00045 // Description: Sets the particular plane represented by the 00046 // PlaneNode. 00047 //////////////////////////////////////////////////////////////////// 00048 INLINE void PlaneNode:: 00049 set_plane(const Planef &plane) { 00050 CDWriter cdata(_cycler); 00051 cdata->_plane = plane; 00052 } 00053 00054 //////////////////////////////////////////////////////////////////// 00055 // Function: get_plane 00056 // Access: Public 00057 // Description: Returns the plane represented by the PlaneNode. 00058 //////////////////////////////////////////////////////////////////// 00059 INLINE const Planef &PlaneNode:: 00060 get_plane() const { 00061 CDReader cdata(_cycler); 00062 return cdata->_plane; 00063 }