#include <ispringctrl.h>
Public Types |
|
enum | { get_mass, set_mass, get_drag, set_drag, get_tension, set_tension, get_dampening, set_dampening, add_spring, get_spring_count, remove_spring_by_index, remove_spring, get_spring_system } |
Public Member Functions |
|
BEGIN_FUNCTION_MAP | FN_0 (get_mass, TYPE_FLOAT, GetMass) |
VFN_1 (set_mass, SetMass, TYPE_FLOAT) | |
FN_0 (get_drag, TYPE_FLOAT, GetDrag) | |
VFN_1 (set_drag, SetDrag, TYPE_FLOAT) | |
FN_1 (get_tension, TYPE_FLOAT, GetTension, TYPE_INDEX) | |
VFN_2 (set_tension, SetTension, TYPE_INDEX, TYPE_FLOAT) | |
FN_1 (get_dampening, TYPE_FLOAT, GetDampening, TYPE_INDEX) | |
VFN_2 (set_dampening, SetDampening, TYPE_INDEX, TYPE_FLOAT) | |
FN_1 (add_spring, TYPE_BOOL, AddSpring, TYPE_INODE) | |
FN_0 (get_spring_count, TYPE_INT, GetSpringCount) | |
VFN_1 (remove_spring_by_index, RemoveSpring, TYPE_INDEX) | |
VFN_1 (remove_spring, RemoveSpring, TYPE_INODE) | |
END_FUNCTION_MAP FPInterfaceDesc * | GetDesc () |
virtual SpringSys * | GetSpringSystem ()=0 |
virtual float | GetMass ()=0 |
virtual void | SetMass (float mass, bool update=true)=0 |
virtual float | GetDrag ()=0 |
virtual void | SetDrag (float drag, bool update=true)=0 |
virtual float | GetTension (int index)=0 |
virtual void | SetTension (int index, float tension, int absolute=1, bool update=true)=0 |
virtual float | GetDampening (int index)=0 |
virtual void | SetDampening (int index, float dampening, int absolute=1, bool update=true)=0 |
virtual BOOL | AddSpring (INode *node)=0 |
virtual INT | GetSpringCount ()=0 |
virtual void | RemoveSpring (int which)=0 |
virtual void | RemoveSpring (INode *node)=0 |
Public Attributes |
|
SpringSys * | partsys |
anonymous enum |
BEGIN_FUNCTION_MAP FN_0 | ( | get_mass | , |
TYPE_FLOAT | , | ||
GetMass | |||
) |
VFN_1 | ( | set_mass | , |
SetMass | , | ||
TYPE_FLOAT | |||
) |
FN_0 | ( | get_drag | , |
TYPE_FLOAT | , | ||
GetDrag | |||
) |
VFN_1 | ( | set_drag | , |
SetDrag | , | ||
TYPE_FLOAT | |||
) |
FN_1 | ( | get_tension | , |
TYPE_FLOAT | , | ||
GetTension | , | ||
TYPE_INDEX | |||
) |
VFN_2 | ( | set_tension | , |
SetTension | , | ||
TYPE_INDEX | , | ||
TYPE_FLOAT | |||
) |
FN_1 | ( | get_dampening | , |
TYPE_FLOAT | , | ||
GetDampening | , | ||
TYPE_INDEX | |||
) |
VFN_2 | ( | set_dampening | , |
SetDampening | , | ||
TYPE_INDEX | , | ||
TYPE_FLOAT | |||
) |
FN_1 | ( | add_spring | , |
TYPE_BOOL | , | ||
AddSpring | , | ||
TYPE_INODE | |||
) |
FN_0 | ( | get_spring_count | , |
TYPE_INT | , | ||
GetSpringCount | |||
) |
VFN_1 | ( | remove_spring_by_index | , |
RemoveSpring | , | ||
TYPE_INDEX | |||
) |
VFN_1 | ( | remove_spring | , |
RemoveSpring | , | ||
TYPE_INODE | |||
) |
END_FUNCTION_MAP FPInterfaceDesc* GetDesc | ( | ) | [virtual] |
Implements FPInterface.
virtual SpringSys* GetSpringSystem | ( | ) | [pure virtual] |
virtual float GetMass | ( | ) | [pure virtual] |
virtual void SetMass | ( | float | mass, |
bool | update =
true |
||
) | [pure virtual] |
virtual float GetDrag | ( | ) | [pure virtual] |
virtual void SetDrag | ( | float | drag, |
bool | update =
true |
||
) | [pure virtual] |
virtual float GetTension | ( | int | index | ) | [pure virtual] |
virtual void SetTension | ( | int | index, |
float | tension, | ||
int | absolute = 1 , |
||
bool | update =
true |
||
) | [pure virtual] |
virtual float GetDampening | ( | int | index | ) | [pure virtual] |
virtual void SetDampening | ( | int | index, |
float | dampening, | ||
int | absolute = 1 , |
||
bool | update =
true |
||
) | [pure virtual] |
virtual BOOL AddSpring | ( | INode * | node | ) | [pure virtual] |
virtual INT GetSpringCount | ( | ) | [pure virtual] |
virtual void RemoveSpring | ( | int | which | ) | [pure virtual] |
virtual void RemoveSpring | ( | INode * | node | ) | [pure virtual] |