Panda3D
stTree.I
1 // Filename: stTree.I
2 // Created by: drose (06Oct10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: STTree::get_fullpath
18 // Access: Published
19 // Description: Returns the full pathname to the SRT file that was
20 // loaded for this tree, as passed to the constructor.
21 ////////////////////////////////////////////////////////////////////
22 INLINE const Filename &STTree::
23 get_fullpath() const {
24  return _fullpath;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: STTree::is_valid
29 // Access: Published
30 // Description: Returns true if the tree was successfully loaded and
31 // is ready to be used, false otherwise.
32 ////////////////////////////////////////////////////////////////////
33 INLINE bool STTree::
34 is_valid() const {
35  return _is_valid;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: STTree::get_tree
40 // Access: Public
41 // Description: Returns a const pointer to the internal SpeedTree
42 // object.
43 ////////////////////////////////////////////////////////////////////
44 INLINE const SpeedTree::CTreeRender *STTree::
45 get_tree() const {
46  return &_tree;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: STTree::modify_tree
51 // Access: Public
52 // Description: Returns a modifiable pointer to the internal SpeedTree
53 // object.
54 ////////////////////////////////////////////////////////////////////
55 INLINE SpeedTree::CTreeRender *STTree::
57  return &_tree;
58 }
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
bool is_valid() const
Returns true if the tree was successfully loaded and is ready to be used, false otherwise.
Definition: stTree.I:34
const SpeedTree::CTreeRender * get_tree() const
Returns a const pointer to the internal SpeedTree object.
Definition: stTree.I:45
const Filename & get_fullpath() const
Returns the full pathname to the SRT file that was loaded for this tree, as passed to the constructor...
Definition: stTree.I:23
SpeedTree::CTreeRender * modify_tree()
Returns a modifiable pointer to the internal SpeedTree object.
Definition: stTree.I:56