Panda3D
|
This class presents a wrapper around the global Maya interface. More...
#include "mayaApi.h"
Public Member Functions | |
bool | clear () |
Resets the global model space to the empty state, for instance in preparation for building a new file. | |
CoordinateSystem | get_coordinate_system () |
Returns Maya's internal coordinate system in effect. | |
DistanceUnit | get_units () |
Returns Maya's internal units in effect. | |
bool | read (const Filename &filename) |
Reads the indicated maya file into the global model space. | |
void | set_units (DistanceUnit unit) |
Set Maya's UI units. | |
bool | write (const Filename &filename) |
Writes the global model space to the indicated file. | |
![]() | |
int | get_ref_count () const |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. | |
void | ref () const |
Explicitly increments the reference count. | |
bool | ref_if_nonzero () const |
Atomically increases the reference count of this object if it is not zero. | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
virtual bool | unref () const |
Explicitly decrements the reference count. | |
bool | unref_if_one () const |
Atomically decreases the reference count of this object if it is one. | |
WeakReferenceList * | weak_ref () |
Adds the indicated PointerToVoid as a weak reference to this object. | |
void | weak_unref () |
Removes the indicated PointerToVoid as a weak reference to this object. | |
![]() | |
void | operator delete (void *, void *) |
void | operator delete (void *ptr) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
Static Public Member Functions | |
static PT(MayaApi) open_api(std bool | is_valid () const |
Returns true if the API has been successfully opened and may be used, or false if there is some problem. | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Additional Inherited Members | |
![]() | |
get_ref_count | |
Returns the current reference count. | |
This class presents a wrapper around the global Maya interface.
While the reference count is held, it keeps the Maya interface open, and closes the interface when the object destructs.
MayaApi::~MayaApi | ( | ) |
Definition at line 122 of file mayaApi.cxx.
bool MayaApi::clear | ( | ) |
Resets the global model space to the empty state, for instance in preparation for building a new file.
Returns true if successful, false otherwise.
Definition at line 335 of file mayaApi.cxx.
CoordinateSystem MayaApi::get_coordinate_system | ( | ) |
Returns Maya's internal coordinate system in effect.
Definition at line 412 of file mayaApi.cxx.
DistanceUnit MayaApi::get_units | ( | ) |
Returns Maya's internal units in effect.
Definition at line 348 of file mayaApi.cxx.
|
static |
Returns true if the API has been successfully opened and may be used, or false if there is some problem.
Definition at line 224 of file mayaApi.cxx.
bool MayaApi::read | ( | const Filename & | filename | ) |
Reads the indicated maya file into the global model space.
Returns true if successful, false otherwise.
Definition at line 248 of file mayaApi.cxx.
References Filename::to_os_generic(), and Filename::to_os_specific().
void MayaApi::set_units | ( | DistanceUnit | unit | ) |
Set Maya's UI units.
Definition at line 376 of file mayaApi.cxx.
bool MayaApi::write | ( | const Filename & | filename | ) |
Writes the global model space to the indicated file.
Returns true if successful, false otherwise.
Definition at line 291 of file mayaApi.cxx.
References Filename::get_extension(), Filename::to_os_generic(), and Filename::to_os_specific().