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
 Returns the current reference count. More...
 
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 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...
 
void weak_ref (WeakPointerToVoid *ptv)
 Adds the indicated PointerToVoid as a weak reference to this object. More...
 
void weak_unref (WeakPointerToVoid *ptv)
 Removes the indicated PointerToVoid as a weak reference to this object. More...
 
- Public Member Functions inherited from Namable
 Namable (const string &initial_name="")
 
 Namable (const Namable &copy)
 
void clear_name ()
 Resets the Namable's name to empty. More...
 
const 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...
 
Namableoperator= (const Namable &other)
 
void output (ostream &out) const
 Outputs the Namable. More...
 
void set_name (const 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
 

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

Referenced by MayaToEggConverter::clear(), and set_slider().

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

References get_slider().

Referenced by MayaToEggConverter::clear().


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