Panda3D
|
A handle to a Maya blend shape description. More...
#include "mayaBlendDesc.h"
Public Member Functions | |
MayaBlendDesc (MFnBlendShapeDeformer &deformer, int weight_index) | |
PN_stdfloat | get_slider () const |
Returns the current position of the Maya slider associated with this blend shape. | |
void | set_slider (PN_stdfloat value) |
Moves the Maya slider associated with this blend shape to the indicated value. | |
![]() | |
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) |
![]() | |
Namable (const std::string &initial_name="") | |
void | clear_name () |
Resets the Namable's name to empty. | |
const std::string & | get_name () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
void | output (std::ostream &out) const |
Outputs the Namable. | |
void | set_name (const std::string &name) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Friends | |
class | MayaNodeTree |
Additional Inherited Members | |
![]() | |
get_ref_count | |
Returns the current reference count. | |
![]() | |
get_name | |
set_name | |
A handle to a Maya blend shape description.
This is just one target of a Maya BlendShape object, and thus corresponds more or less one-to-one with a single Egg morph target. (We don't attempt to support Maya's chained target shapes here; should we need to later, it would mean breaking each of those target shapes on the one continuous Maya slider into a separate MayaBlendDesc object, and synthesizing the egg slider values appropriately.)
Definition at line 40 of file mayaBlendDesc.h.
MayaBlendDesc::MayaBlendDesc | ( | MFnBlendShapeDeformer & | deformer, |
int | weight_index ) |
Definition at line 22 of file mayaBlendDesc.cxx.
MayaBlendDesc::~MayaBlendDesc | ( | ) |
Definition at line 37 of file mayaBlendDesc.cxx.
|
inlinestatic |
Definition at line 57 of file mayaBlendDesc.h.
PN_stdfloat MayaBlendDesc::get_slider | ( | ) | const |
Returns the current position of the Maya slider associated with this blend shape.
Definition at line 58 of file mayaBlendDesc.cxx.
|
inlinestatic |
Definition at line 60 of file mayaBlendDesc.h.
void MayaBlendDesc::set_slider | ( | PN_stdfloat | value | ) |
Moves the Maya slider associated with this blend shape to the indicated value.
This will move all the affected vertices.
Definition at line 45 of file mayaBlendDesc.cxx.
|
friend |
Definition at line 71 of file mayaBlendDesc.h.