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