00001 // Filename: stTree.I 00002 // Created by: drose (06Oct10) 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: STTree::get_fullpath 00018 // Access: Published 00019 // Description: Returns the full pathname to the SRT file that was 00020 // loaded for this tree, as passed to the constructor. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE const Filename &STTree:: 00023 get_fullpath() const { 00024 return _fullpath; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: STTree::is_valid 00029 // Access: Published 00030 // Description: Returns true if the tree was successfully loaded and 00031 // is ready to be used, false otherwise. 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE bool STTree:: 00034 is_valid() const { 00035 return _is_valid; 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: STTree::get_tree 00040 // Access: Public 00041 // Description: Returns a const pointer to the internal SpeedTree 00042 // object. 00043 //////////////////////////////////////////////////////////////////// 00044 INLINE const SpeedTree::CTreeRender *STTree:: 00045 get_tree() const { 00046 return &_tree; 00047 } 00048 00049 //////////////////////////////////////////////////////////////////// 00050 // Function: STTree::modify_tree 00051 // Access: Public 00052 // Description: Returns a modifiable pointer to the internal SpeedTree 00053 // object. 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE SpeedTree::CTreeRender *STTree:: 00056 modify_tree() { 00057 return &_tree; 00058 }