00001 // Filename: lineEmitter.I 00002 // Created by: charles (26Jun00) 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 // Function : set_endpoint1 00017 // Access : Public 00018 // Description : endpoint assignment 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE void LineEmitter:: 00021 set_endpoint1(const LPoint3& point) { 00022 _endpoint1 = point; 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function : set_endpoint2 00027 // Access : Public 00028 // Description : endpoint assignment 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE void LineEmitter:: 00031 set_endpoint2(const LPoint3& point) { 00032 _endpoint2 = point; 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function : get_endpoint1 00037 // Access : Public 00038 // Description : endpoint accessor 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE LPoint3 LineEmitter:: 00041 get_endpoint1() const { 00042 return _endpoint1; 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function : get_endpoint2 00047 // Access : Public 00048 // Description : endpoint accessor 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE LPoint3 LineEmitter:: 00051 get_endpoint2() const { 00052 return _endpoint2; 00053 }