Panda3D

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