16 #include "speedTreeNode.h"
31 Namable(fullpath.get_basename_wo_extension()),
38 speedtree_cat.warning()
39 <<
"SpeedTree license not available.\n";
56 if (!_tree.LoadTree(os_fullpath.c_str())) {
57 speedtree_cat.warning()
58 <<
"Couldn't read: " << _fullpath <<
"\n";
64 <<
"Read " << _fullpath <<
"\n";
85 output(ostream &out)
const {
87 out <<
"(invalid STTree)";
89 out <<
"STTree(" << get_name() <<
")";
bool is_valid() const
Returns true if the tree was successfully loaded and is ready to be used, false otherwise.
static bool authorize(const string &license="")
Make this call to initialized the SpeedTree API and verify the license.
A base class for all things which can have a name.
The name of a file, such as a texture file or an Egg file.
string to_os_specific() const
Converts the filename from our generic Unix-like convention (forward slashes starting with the root a...
STTree(const Filename &fullpath)
The constructor reads the indicated SRT file immediately.
TypeHandle is the identifier used to differentiate C++ class types.
static void write_error(ostream &out)
Writes the current SpeedTree error message to the indicated stream.
Encapsulates a single tree model in the SpeedTree library, as loaded from an SRT file.