Detailed Description
- See also:
- Class Control,
Class FPMixinInterface.
- Description:
- This class is available in release 4.0 and later only.
This class represents the interface to the Position Constraint. You
can obtain a pointer to the position constraint interface using;
GetIPosConstInterface(cd). This macro will return
(IPosConstPosition*)(CD)->GetFPInterface(POS_CONSTRAINT_INTERFACE).
POSPOS_PBLOCK_REF may be used to access the position
constraint controller's references:
All methods of this class are Implemented by the System.
#include <istdplug.h>
List of all
members.
Public Types
|
enum |
{
get_num_targets,
get_node,
get_target_weight,
set_target_weight,
append_target,
delete_target
} |
Public Member Functions
|
BEGIN_FUNCTION_MAP |
FN_0 (get_num_targets, TYPE_INT, GetNumTargets) |
|
FN_1 (get_node, TYPE_INODE, GetNode, TYPE_INDEX) |
|
FN_1 (get_target_weight, TYPE_FLOAT, GetTargetWeight,
TYPE_INDEX) |
|
FN_2 (set_target_weight, TYPE_BOOL, SetTargetWeight,
TYPE_INDEX, TYPE_FLOAT) |
|
FN_2 (append_target, TYPE_BOOL, AppendTarget, TYPE_INODE,
TYPE_FLOAT) |
|
FN_1 (delete_target, TYPE_BOOL, DeleteTarget, TYPE_INDEX) |
END_FUNCTION_MAP
FPInterfaceDesc * |
GetDesc () |
virtual
int |
GetNumTargets ()=0 |
virtual
INode * |
GetNode (int targetNumber)=0 |
virtual
float |
GetTargetWeight (int targetNumber)=0 |
virtual
BOOL |
SetTargetWeight (int targetNumber, float weight)=0 |
virtual
BOOL |
AppendTarget (INode
*target, float weight=50.0)=0 |
virtual
BOOL |
DeleteTarget (int selection)=0 |
Member Enumeration Documentation
- Enumerator:
-
get_num_targets |
|
get_node |
|
get_target_weight |
|
set_target_weight |
|
append_target |
|
delete_target |
|
Member Function Documentation
BEGIN_FUNCTION_MAP FN_0 |
( |
get_num_targets |
, |
|
|
TYPE_INT |
, |
|
|
GetNumTargets |
|
|
) |
|
|
FN_1 |
( |
get_node |
, |
|
|
TYPE_INODE |
, |
|
|
GetNode |
, |
|
|
TYPE_INDEX |
|
|
) |
|
|
FN_1 |
( |
get_target_weight |
, |
|
|
TYPE_FLOAT |
, |
|
|
GetTargetWeight |
, |
|
|
TYPE_INDEX |
|
|
) |
|
|
FN_2 |
( |
set_target_weight |
, |
|
|
TYPE_BOOL |
, |
|
|
SetTargetWeight |
, |
|
|
TYPE_INDEX |
, |
|
|
TYPE_FLOAT |
|
|
) |
|
|
FN_2 |
( |
append_target |
, |
|
|
TYPE_BOOL |
, |
|
|
AppendTarget |
, |
|
|
TYPE_INODE |
, |
|
|
TYPE_FLOAT |
|
|
) |
|
|
FN_1 |
( |
delete_target |
, |
|
|
TYPE_BOOL |
, |
|
|
DeleteTarget |
, |
|
|
TYPE_INDEX |
|
|
) |
|
|
virtual int GetNumTargets |
( |
|
) |
[pure virtual] |
virtual INode* GetNode |
( |
int |
targetNumber |
) |
[pure virtual] |
- Parameters:
- int targetNumber
The node number in the position target list to be obtained.
virtual float GetTargetWeight |
( |
int |
targetNumber |
) |
[pure virtual] |
- Parameters:
- int targetNumber
The node number in the position target list to set.
- Returns:
- Returns the position target weight if the targetNumber
is relevant, 0.0f otherwise.
virtual BOOL SetTargetWeight |
( |
int |
targetNumber, |
|
|
float |
weight |
|
) |
|
[pure virtual] |
- Parameters:
- int targetNumber
The node number in the position target list whose weight is to be
set.
float weight
The weight to set.
- Returns:
- TRUE if there is more than one position target in the list and
you are trying to set weight, FALSE otherwise.
virtual BOOL AppendTarget |
( |
INode * |
target, |
|
|
float |
weight =
50.0 |
|
) |
|
[pure virtual] |
- Parameters:
- INode
*target
The node that is to be appended to the current position target
list.
float weight=50.0
This is the weight that is to be assigned to the newly appended
position target. The default weight is 50.0.
- Returns:
- TRUE if the target was appended, otherwise FALSE.
virtual BOOL DeleteTarget |
( |
int |
selection |
) |
[pure virtual] |
- Parameters:
- int selection
The node number in the position target list to delete.
- Returns:
- TRUE if successful, otherwise FALSE.
IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition IPosConstPosition
IPosConstPosition IPosConstPosition