Detailed Description
- See also:
 
- Class Control,
Class INode.
 
- Description:
 
- This class is available in release 2.0 and later only.
This class represents the interface to the Path Position
Controller. You can obtain a pointer to the path position
controller interface using; GetIPathConstInterface(cd). This
macro will return
(IPathPosition*)(CD)->GetFPInterface(PATH_CONSTRAINT_INTERFACE).
PATHPOS_PATH_REF may be used to access the position
constraint controller's references and PATHPOS_PBLOCK_REF to
reference the parameter block.
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 | 
| virtual
void  | 
SetFollow
(BOOL f)=0 | 
| virtual
BOOL  | 
GetFollow
()=0 | 
| virtual
void  | 
SetBankAmount
(float a)=0 | 
| virtual
float  | 
GetBankAmount
()=0 | 
| virtual
void  | 
SetBank
(BOOL b)=0 | 
| virtual
BOOL  | 
GetBank
()=0 | 
| virtual
void  | 
SetTracking
(float t)=0 | 
| virtual
float  | 
GetTracking
()=0 | 
| virtual
void  | 
SetAllowFlip
(BOOL f)=0 | 
| virtual
BOOL  | 
GetAllowFlip
()=0 | 
| virtual
void  | 
SetConstVel
(BOOL cv)=0 | 
| virtual
BOOL  | 
GetConstVel
()=0 | 
| virtual
void  | 
SetFlip
(BOOL onOff)=0 | 
| virtual
BOOL  | 
GetFlip
()=0 | 
| virtual
void  | 
SetAxis
(int axis)=0 | 
| virtual
int  | 
GetAxis
()=0 | 
| virtual
void  | 
SetLoop
(BOOL l)=0 | 
| virtual
BOOL  | 
GetLoop
()=0 | 
| virtual
void  | 
SetRelative
(BOOL rel)=0 | 
| virtual
BOOL  | 
GetRelative
()=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 path list to be obtained. 
 
 
| virtual float GetTargetWeight | 
( | 
int  | 
targetNumber | 
) | 
[pure virtual] | 
 
- Parameters:
 
- int targetNumber
The node number in the path list whose weight is to be
obtained. 
 
 
| virtual BOOL SetTargetWeight | 
( | 
int  | 
targetNumber, | 
 | 
 | 
float  | 
weight  | 
 | 
) | 
 | 
[pure virtual] | 
 
- Parameters:
 
- int targetNumber
The node number in the path list whose weight is to be set.
float weight
The weight to assign. 
- Returns:
 
- TRUE if there is more than one path 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 path list.
float weight=50.0
The weight to be assigned to the newly appended path. 
 
 
| virtual BOOL DeleteTarget | 
( | 
int  | 
selection | 
) | 
[pure virtual] | 
 
- Parameters:
 
- int selection
The node number in the orientation target list to delete. 
- Returns:
 
- TRUE if successful, otherwise FALSE.
 
 
 
| virtual void SetFollow | 
( | 
BOOL  | 
f | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL f
TRUE for on, FALSE for off.
 
 
 
| virtual BOOL GetFollow | 
( | 
 | 
) | 
[pure virtual] | 
 
 
| virtual void SetBankAmount | 
( | 
float  | 
a | 
) | 
[pure virtual] | 
 
- Parameters:
 
- float a
The bank amount. 
 
 
| virtual float GetBankAmount | 
( | 
 | 
) | 
[pure virtual] | 
 
 
| virtual void SetBank | 
( | 
BOOL  | 
b | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL b
TRUE for on; FALSE for off. 
 
 
| virtual BOOL GetBank | 
( | 
 | 
) | 
[pure virtual] | 
 
 
| virtual void SetTracking | 
( | 
float  | 
t | 
) | 
[pure virtual] | 
 
- Parameters:
 
- float t
The smoothness setting. 
 
 
| virtual float GetTracking | 
( | 
 | 
) | 
[pure virtual] | 
 
 
| virtual void SetAllowFlip | 
( | 
BOOL  | 
f | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL f
TRUE for on; FALSE for off. 
 
 
| virtual BOOL GetAllowFlip | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- TRUE for on; FALSE for off.
 
 
 
| virtual void SetConstVel | 
( | 
BOOL  | 
cv | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL cv
TRUE for on; FALSE for off. 
 
 
| virtual BOOL GetConstVel | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- TRUE for on; FALSE for off.
 
 
 
| virtual void SetFlip | 
( | 
BOOL  | 
onOff | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL onOff
TRUE for on; FALSE for off. 
 
 
| virtual BOOL GetFlip | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- TRUE for on; FALSE for off.
 
 
 
| virtual void SetAxis | 
( | 
int  | 
axis | 
) | 
[pure virtual] | 
 
- Parameters:
 
- int axis
The axis setting. One of the following values:
0: X axis.
1: Y axis.
2: Z axis. 
 
 
| virtual int GetAxis | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- One of the following values:
0: X axis.
1: Y axis.
2: Z axis. 
 
 
| virtual void SetLoop | 
( | 
BOOL  | 
l | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL l
TRUE for on; FALSE for off. 
 
 
| virtual BOOL GetLoop | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- TRUE for on; FALSE for off.
 
 
 
| virtual void SetRelative | 
( | 
BOOL  | 
rel | 
) | 
[pure virtual] | 
 
- Parameters:
 
- BOOL rel
TRUE to set to relative; FALSE to set to absolute. 
 
 
| virtual BOOL GetRelative | 
( | 
 | 
) | 
[pure virtual] | 
 
- Returns:
 
- TRUE if relative is on; FALSE is off (i.e. absolute).
 
 
 
 
IPathPosition IPathPosition
IPathPosition IPathPosition IPathPosition IPathPosition
IPathPosition IPathPosition IPathPosition IPathPosition
IPathPosition IPathPosition
IPathPosition IPathPosition IPathPosition IPathPosition
IPathPosition IPathPosition IPathPosition IPathPosition