Class BlendShapeIndex

Definition

Namespace:
Tizen.NUI.Scene3D
Assembly:
Tizen.NUI.Scene3D.dll
API Level:
11

Specialized MotionIndex to control blend shape. We can control the blend shape by index (when we set BlendShapeId as IndexKey), or by name (when we set BlendShapeId as StringKey).

C#
Copy
public class BlendShapeIndex : MotionIndex, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable
Inheritance
Implements
Remarks

MotionValue should be float type.

Examples
Copy
BlendShapeIndex blendShapeIndex0 = new BlendShapeIndex(new PropertyKey("nodeName"), new PropertyKey(0u)); BlendShapeIndex blendShapeIndex1 = new BlendShapeIndex(new PropertyKey("nodeName"), new PropertyKey("Target_1")); // We can change the property later. BlendShapeIndex blendShapeIndex2 = new BlendShapeIndex; blendShapeIndex2.ModelNodeId = new PropertyKey("nodeName"); blendShapeIndex2.BlendShapeId = new PropertyKey("Target_2");

Specially, if ModelNodeId is invalid and BlendShapeId is StringKey, It will control all ModelNode that has the inputed blend shape name.

Copy
// If "node0" and "node1" has same BlendShape named "Smile", // blendShapeIndexAll will control both nodes. BlendShapeIndex blendShapeIndexAll = new BlendShapeIndex(new PropertyKey("Smile")); BlendShapeIndex blendShapeIndex0 = new BlendShapeIndex(new PropertyKey("node0"), new PropertyKey("Smile")); BlendShapeIndex blendShapeIndex1 = new BlendShapeIndex(new PropertyKey("node1"), new PropertyKey("Smile"));

Constructors

View Source

BlendShapeIndex()

Create an initialized blend shape index.

Declaration
C#
Copy
public BlendShapeIndex()
API Level: 11
View Source

BlendShapeIndex(String)

Create an initialized blend shape index with invalid node ID, and given blend shape string ID.

Declaration
C#
Copy
public BlendShapeIndex(string blendShapeName)
Parameters
Type Name Description
String blendShapeName

Blend shape string ID for this motion index

API Level: 11
View Source

BlendShapeIndex(String, String)

Create an initialized blend shape index with given node string ID and blend shape string ID.

Declaration
C#
Copy
public BlendShapeIndex(string modelNodeName, string blendShapeName)
Parameters
Type Name Description
String modelNodeName

Node string ID for this motion index

String blendShapeName

Blend shape string ID for this motion index

API Level: 11
View Source

BlendShapeIndex(PropertyKey)

Create an initialized blend shape index with invalid node ID, and given blend shape ID.

Declaration
C#
Copy
public BlendShapeIndex(PropertyKey blendShapeId)
Parameters
Type Name Description
PropertyKey blendShapeId

Blend shape ID for this motion index

API Level: 11
View Source

BlendShapeIndex(PropertyKey, PropertyKey)

Create an initialized blend shape index with given node ID and blend shape ID.

Declaration
C#
Copy
public BlendShapeIndex(PropertyKey modelNodeId, PropertyKey blendShapeId)
Parameters
Type Name Description
PropertyKey modelNodeId

Node ID for this motion index

PropertyKey blendShapeId

Blend shape ID for this motion index

API Level: 11
View Source

BlendShapeIndex(BlendShapeIndex)

Copy constructor.

Declaration
C#
Copy
public BlendShapeIndex(BlendShapeIndex blendShapeIndex)
Parameters
Type Name Description
BlendShapeIndex blendShapeIndex

Source object to copy.

API Level: 11

Properties

View Source

BlendShapeId

The key of blend shape.

Declaration
C#
Copy
public PropertyKey BlendShapeId { get; set; }
Property Value
Type Description
PropertyKey
API Level: 11

Methods

View Source

ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)

Release swigCPtr.

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
System.Runtime.InteropServices.HandleRef swigCPtr
Overrides

Implements

Extension Methods