#include <rdControlLinearNode.h>
Public Member Functions | |
| rdControlLinearNode (double aT=0.0, double aX=0.0, double aMin=0.0, double aMax=1.0) | |
| Default constructor. | |
| rdControlLinearNode (const rdControlLinearNode &aNode) | |
| Copy constructor. | |
| rdControlLinearNode & | operator= (const rdControlLinearNode &aControl) |
| Assignment operator. | |
| bool | operator== (const rdControlLinearNode &aControl) const |
| Equality operator. | |
| bool | operator< (const rdControlLinearNode &aControl) const |
| Less than operator. | |
| void | setTime (double aT) |
| Set the time at which this control node occurs. | |
| double | getTime () const |
| Get the time at which this control node occurs. | |
| void | setValue (double aX) |
| Set the value of this control node. | |
| double | getValue () const |
| Get the value of this control node. | |
| void | setMin (double aMin) |
| Set the minimum allowed value of this control node. | |
| double | getMin () const |
| Get the minimum allowed value of this control node. | |
| void | setMax (double aMax) |
| Set the maximum allowed value of this control node. | |
| double | getMax () const |
| Get the maximum allowed value of this control node. | |
| char * | toString () const |
| Convert the node to a string representation. | |
Static Public Member Functions | |
| void | SetEqualityTolerance (double aTol) |
| Set the tolerance for determining equality of nodes. | |
| double | GetEqualityTolerance () |
| Get the tolerance for determining equality of nodes. | |
Protected Attributes | |
| double | _t |
| Time at which the node occurs. | |
| double | _x |
| Control value of the node. | |
| double | _min |
| Minimum control value of the node. | |
| double | _max |
| Maximum control value of the node. | |
Static Protected Attributes | |
| double | _EqualityTolerance = rdMath::ZERO |
| Equality tolerance. | |
The member variables consist of a time, a value, a minimum value, and a maximum value. So that an rdArray<T> can be instantiated for rdControlLinearNode, this class implements a default constructor, a copy constructor, the assignment operator (=), the equality operator (==), and the less than operator (<). The time at which a control node occurs is used to determine the results of the operators == and <.
|
||||||||||||||||||||
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Get the tolerance for determining equality of nodes. Equality of nodes is dertermined by comparing _time member varaibles. If two nodes have the same value for _time within the set equality tolerance, the two nodes are considered equal. Note that the member variable _EqualityTolerance and this method are static. So, the specified equality tolerance affects all nodes.
|
|
|
Get the maximum allowed value of this control node.
|
|
|
Get the minimum allowed value of this control node.
|
|
|
Get the time at which this control node occurs.
|
|
|
Get the value of this control node.
|
|
|
Less than operator.
|
|
|
Assignment operator.
|
|
|
Equality operator.
Equality of nodes is dertermined by comparing the _time member varaibles. If two nodes have the same value for _time within the set equality tolerance, the two nodes are considered equal:
|
|
|
Set the tolerance for determining equality of nodes. Equality of nodes is dertermined by comparing _time member varaibles. If two nodes have the same value for _time within the set equality tolerance, the two nodes are considered equal. Note that the member variable _EqualityTolerance and this method are static. So, the specified equality tolerance affects all nodes.
|
|
|
Set the maximum allowed value of this control node.
|
|
|
Set the minimum allowed value of this control node.
|
|
|
Set the time at which this control node occurs.
|
|
|
Set the value of this control node.
|
|
|
Convert the node to a string representation. The caller is responsible for deleting the returned string.
|
1.3