Public Member Functions

ISetIKKeyProp Class Reference

Search for all occurrences

Detailed Description

This is a helper class.

If we want to set just one attribute of the IK Key Property, we can derive a new class from it as follows:

 class SetIKBlendProp : public ISetIKKeyProp {
 public:
     SetIKBlendProp(float blend) : mBlend(blend) {}
     float GetIKBlend() const { return mBlend; }
     bool  SetIKBlend() const { return true; }
     float mBlend;
 };
 IKeyControl2* keyControl = (IKeyControl2*)control->GetInterface(I_KEYCONTROL2);
 SetIKBlendProp prop(new_blend_value);
 keyControl->SetKeyProp(IKeyProperty::kIKProp, key_index, prop); 

#include <istdplug.h>

Inheritance diagram for ISetIKKeyProp:
Inheritance graph
[legend]

List of all members.

Public Member Functions

float  GetIKBlend () const
  Override IIKKeyProp::GetIKBlend().
EnumIKSpace  GetIKSpace () const
  Override IIKKeyProp::GetIKSpace().
bool  GetPivotOn () const
  Override IIKKeyProp::GetPivotOn().
Point3  GetWorldPivot () const
  Override IIKKeyProp::GetWorldPivot().
INode GetPivotNode () const
  Override IIKKeyProp::GetPivotNode().

Member Function Documentation

float GetIKBlend ( ) const [inline, virtual]

Override IIKKeyProp::GetIKBlend().

Implements IIKKeyProp.

{ return 0.0f; }
EnumIKSpace GetIKSpace ( ) const [inline, virtual]
bool GetPivotOn ( ) const [inline, virtual]

Override IIKKeyProp::GetPivotOn().

Implements IIKKeyProp.

{ return false; }
Point3 GetWorldPivot ( ) const [inline, virtual]
INode* GetPivotNode ( ) const [inline, virtual]

Override IIKKeyProp::GetPivotNode().

Implements IIKKeyProp.

{ return NULL; }

ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp
ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp ISetIKKeyProp