28class EXPCL_PANDASPEEDTREE
STTree :
public TypedReferenceCount,
public Namable {
38 virtual void output(std::ostream &out)
const;
41 INLINE
const SpeedTree::CTreeRender *
get_tree()
const;
47 SpeedTree::CTreeRender _tree;
53 static void init_type() {
54 TypedReferenceCount::init_type();
56 TypedReferenceCount::get_class_type());
59 return get_class_type();
61 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
67INLINE std::ostream &operator << (std::ostream &out,
const STTree &tree) {
The name of a file, such as a texture file or an Egg file.
void output(std::ostream &out) const
Outputs the Namable.
Encapsulates a single tree model in the SpeedTree library, as loaded from an SRT file.
bool is_valid() const
Returns true if the tree was successfully loaded and is ready to be used, false otherwise.
STTree(const Filename &fullpath)
The constructor reads the indicated SRT file immediately.
const SpeedTree::CTreeRender * get_tree() const
Returns a const pointer to the internal SpeedTree object.
const Filename & get_fullpath() const
Returns the full pathname to the SRT file that was loaded for this tree, as passed to the constructor...
SpeedTree::CTreeRender * modify_tree()
Returns a modifiable pointer to the internal SpeedTree object.
Interfaces with the SpeedTree library to render SpeedTree objects, especially trees,...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.