Panda3D
Public Member Functions | Static Public Member Functions | Friends | List of all members
MayaBlendDesc Class Reference

A handle to a Maya blend shape description. More...

#include "mayaBlendDesc.h"

Inheritance diagram for MayaBlendDesc:
ReferenceCount Namable MemoryBase MemoryBase

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. More...
 
void set_slider (PN_stdfloat value)
 Moves the Maya slider associated with this blend shape to the indicated value. More...
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 
WeakReferenceListget_weak_list () const
 Returns the WeakReferenceList associated with this ReferenceCount object. More...
 
bool has_weak_list () const
 Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More...
 
void local_object ()
 This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More...
 
void ref () const
 Explicitly increments the reference count. More...
 
bool ref_if_nonzero () const
 Atomically increases the reference count of this object if it is not zero. More...
 
bool test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool test_ref_count_nonzero () const
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
virtual bool unref () const
 Explicitly decrements the reference count. More...
 
WeakReferenceListweak_ref ()
 Adds the indicated PointerToVoid as a weak reference to this object. More...
 
void weak_unref ()
 Removes the indicated PointerToVoid as a weak reference to this object. More...
 
- Public Member Functions inherited from Namable
 Namable (const std::string &initial_name="")
 
void clear_name ()
 Resets the Namable's name to empty. More...
 
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. More...
 
void output (std::ostream &out) const
 Outputs the Namable. More...
 
void set_name (const std::string &name)
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from Namable
static TypeHandle get_class_type ()
 
static void init_type ()
 

Friends

class MayaNodeTree
 

Additional Inherited Members

- Public Attributes inherited from ReferenceCount
 get_ref_count
 Returns the current reference count. More...
 
- Public Attributes inherited from Namable
 get_name
 
 set_name
 

Detailed Description

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.

Member Function Documentation

◆ get_slider()

PN_stdfloat MayaBlendDesc::get_slider ( ) const

Returns the current position of the Maya slider associated with this blend shape.

Definition at line 59 of file mayaBlendDesc.cxx.

◆ set_slider()

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 46 of file mayaBlendDesc.cxx.


The documentation for this class was generated from the following files: