18 #include "pandatoolbase.h"
19 #include "distanceUnit.h"
20 #include "coordinateSystem.h"
21 #include "referenceCount.h"
22 #include "pointerTo.h"
35 MayaApi(
const string &program_name,
bool view_license =
false,
bool revertdir =
true);
37 void operator = (
const MayaApi ©);
42 static PT(
MayaApi) open_api(
string program_name =
"",
bool view_license =
false,
bool revertdir =
true);
void set_units(DistanceUnit unit)
Set Maya's UI units.
bool read(const Filename &filename)
Reads the indicated maya file into the global model space.
bool write(const Filename &filename)
Writes the global model space to the indicated file.
DistanceUnit get_units()
Returns Maya's internal units in effect.
bool clear()
Resets the global model space to the empty state, for instance in preparation for building a new file...
The name of a file, such as a texture file or an Egg file.
bool is_valid() const
Returns true if the API has been successfully opened and may be used, or false if there is some probl...
A base class for all things that want to be reference-counted.
CoordinateSystem get_coordinate_system()
Returns Maya's internal coordinate system in effect.
This class presents a wrapper around the global Maya interface.