Public Member Functions | Protected Member Functions

FbxBlendShape Class Reference

Search for all occurrences

Detailed Description

Class for blend shape deformer.

A blend shape deformer takes a base shape (polygonal surface, curve, or surface) and blends it with other target shapes based on weight values. Blend shape deformer organize all target shapes via blend shape channel. One blend shape deformer can contains multiple blend shape channels, then each channel can organize multiple target shapes,

See also:
FbxBlendShapeChannel, FbxShape.
Remarks:
The blend effect of each blend shape channel is additive, so the final blend effect of a blend shape deformer is the sum of blend effect of all blend shape channels it contains, the blend effect of each blend shape channel is controlled by the property DeformPercent of blend shape channel.
See also:
FbxGeometry, FbxGeometryBase.

Definition at line 39 of file fbxblendshape.h.

#include <fbxblendshape.h>

Inheritance diagram for FbxBlendShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool SetGeometry (FbxGeometry *pGeometry)
 Set the geometry affected by this blend shape deformer.
FbxGeometryGetGeometry ()
 Get the geometry affected by this blend shape deformer.
bool AddBlendShapeChannel (FbxBlendShapeChannel *pBlendShapeChannel)
 Add a blend shape channel.
FbxBlendShapeChannelRemoveBlendShapeChannel (FbxBlendShapeChannel *pBlendShapeChannel)
 Remove the given blend shape.
int GetBlendShapeChannelCount () const
 Get the number of blend shape channels.
FbxBlendShapeChannelGetBlendShapeChannel (int pIndex)
 Get blend shape channel at given index.
FbxBlendShapeChannel const * GetBlendShapeChannel (int pIndex) const
 Get the blend shape channel at given index.
EDeformerType GetDeformerType () const
 Get the type of the deformer.
void Reset ()
 Restore the blend shape deformer to the initial state.
virtual FbxObjectCopy (const FbxObject &pObject)
 Copy an object content into this object.

Protected Member Functions

virtual FbxStringList GetTypeFlags () const

Member Function Documentation

bool SetGeometry ( FbxGeometry pGeometry)

Set the geometry affected by this blend shape deformer.

Parameters:
pGeometryPointer to the geometry object to set.
Returns:
true on success, false otherwise.
Remarks:
One blend shape deformer can only be used on one base geometry. So when SetGeometry is called, the pGeometry will replace the current base geometry connected to this blend shape deformer.
FbxGeometry* GetGeometry ( )

Get the geometry affected by this blend shape deformer.

Returns:
A pointer to the geometry if it is set or NULL if not set yet.
bool AddBlendShapeChannel ( FbxBlendShapeChannel pBlendShapeChannel)

Add a blend shape channel.

Parameters:
pBlendShapeChannelPointer to the blend shape channel object to add.
Returns:
true on success, false otherwise.
FbxBlendShapeChannel* RemoveBlendShapeChannel ( FbxBlendShapeChannel pBlendShapeChannel)

Remove the given blend shape.

Parameters:
pBlendShapeChannelPointer to the blend shape channel to remove from this blend shape deformer.
Returns:
Pointer to the blend shape channel or NULL if pBlendShapeChannel is not owned by this blend shape deformer.
int GetBlendShapeChannelCount ( ) const

Get the number of blend shape channels.

Returns:
Number of blend shape channels that have been added to this object.
FbxBlendShapeChannel* GetBlendShapeChannel ( int  pIndex)

Get blend shape channel at given index.

Parameters:
pIndexIndex of the blend shape channel.
Returns:
Pointer to the blend shape channel or NULL if index is out of range.
FbxBlendShapeChannel const* GetBlendShapeChannel ( int  pIndex) const

Get the blend shape channel at given index.

Parameters:
pIndexIndex of the blend shape channel.
Returns:
Pointer to the blend shape channel or NULL if index is out of range.
EDeformerType GetDeformerType ( ) const [inline, virtual]

Get the type of the deformer.

Returns:
The deformer type identifier of blend shape deformer.

Reimplemented from FbxDeformer.

Definition at line 90 of file fbxblendshape.h.

{return eBlendShape; };
void Reset ( )

Restore the blend shape deformer to the initial state.

Calling this function will do the following:

  • Clear the pointer to base geometry.
  • Remove all the blend shape channels.
virtual FbxObject& Copy ( const FbxObject pObject) [virtual]

Copy an object content into this object.

Parameters:
pObjectThe source object to copy data from.
Returns:
Returns the destination object being modified by the source.
Remarks:
This function replace the assignment operator (operator=). It will copy all property values and the name. Connections are NOT copied.

Reimplemented from FbxObject.

virtual FbxStringList GetTypeFlags ( ) const [protected, virtual]

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

FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape
FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape FbxBlendShape