#include <rdFunction.h>
Inheritance diagram for rdFunction:

Public Member Functions | |
| rdFunction () | |
| Default constructor. | |
| rdFunction (IDOM_Element *aElement) | |
| Construct a function from an XML Element. | |
| rdFunction (const rdFunction &aFunction) | |
| Copy constructor. | |
| virtual | ~rdFunction () |
| Destructor. | |
| virtual rdFunction * | copy () const=0 |
| virtual rdFunction * | copy (IDOM_Element *aElement) const=0 |
| rdFunction & | operator= (const rdFunction &aFunction) |
| Assignment operator. | |
| void | setMinX (double aMinX) |
| Set the minimum x independent variable. | |
| double | getMinX () const |
| Get the minimum x independent variable. | |
| void | setMaxX (double aMaxX) |
| Set the maximum x independent variable. | |
| double | getMaxX () const |
| Get the maximum x independent variable. | |
| void | setMinY (double aMinY) |
| Set the minimum y independent variable. | |
| double | getMinY () const |
| Get the minimum y independent variable. | |
| void | setMaxY (double aMaxY) |
| Set the maximum y independent variable. | |
| double | getMaxY () const |
| Get the maximum y independent variable. | |
| void | setMinZ (double aMinZ) |
| Set the minimum z independent variable. | |
| double | getMinZ () const |
| Get the minimum z independent variable. | |
| void | setMaxZ (double aMaxZ) |
| Set the maximum z independent variable. | |
| double | getMaxZ () const |
| Get the maximum z independent variable. | |
| virtual void | updateBoundingBox ()=0 |
| virtual double | evaluate (int aDerivOrder, double aX=0.0, double aY=0.0, double aZ=0.0)=0 |
| virtual void | updateObject (bool aDeep=true) |
| Update this object based on its XML node. | |
| virtual void | updateNode (bool aDeep=true) |
| Update the XML node representing this object. | |
| virtual void | generateNode (IDOM_Element *aParent) |
| Generate an XML node representing this object. | |
| void | updateData () |
| Update the member data of this object based on its XML node. | |
Static Public Attributes | |
| const char | DEFAULT_NAME [] = "default" |
| const char | PROP_MIN_X [] = "min_x" |
| const char | PROP_MIN_Y [] = "min_y" |
| const char | PROP_MIN_Z [] = "min_z" |
| const char | PROP_MAX_X [] = "max_x" |
| const char | PROP_MAX_Y [] = "max_y" |
| const char | PROP_MAX_Z [] = "max_z" |
Protected Attributes | |
| double | _minX |
| Minimum value of the x independent variable. | |
| double | _maxX |
| Maximum value of the x independent variable. | |
| double | _minY |
| Minimum value of the y independent variable. | |
| double | _maxY |
| Maximum value of the y independent variable. | |
| double | _minZ |
| Minimum value of the z independent variable. | |
| double | _maxZ |
| Maximum value of the z independent variable. | |
Private Member Functions | |
| void | setNull () |
| Set all member variables to NULL values. | |
| void | setEqual (const rdFunction &aFunction) |
| Set all member variables equal to the members of another object. | |
A function is a relation between independent variables and a dependent value such that for any particular set of independent variables there is only one unique dependent value. Values of the function and its derivatives are obtained by calling the evaluate() method. The curve may or may not be finite or diferentiable; the evaluate method returns values between rdMath::MINUS_INFINITY and rdMath::PLUS_INFINITY, or it returns rdMath::NAN (not a number) if the curve is not defined. Currently, functions of up to 3 variables (x,y,z) are supported.
|
|
Construct a function from an XML Element.
|
|
|
Copy constructor.
|
|
|
Generate an XML node representing this object.
Reimplemented from rdObject. Reimplemented in rdGCVSpline. |
|
|
Get the maximum x independent variable.
|
|
|
Get the maximum y independent variable.
|
|
|
Get the maximum z independent variable.
|
|
|
Get the minimum x independent variable.
|
|
|
Get the minimum y independent variable.
|
|
|
Get the minimum z independent variable.
|
|
|
Assignment operator.
|
|
|
Set all member variables equal to the members of another object. Note that this method is private. It is only meant for copying the data members defined in this class. It does not, for example, make any changes to data members of base classes. |
|
|
Set the maximum x independent variable.
|
|
|
Set the maximum y independent variable.
|
|
|
Set the maximum z independent variable.
|
|
|
Set the minimum x independent variable.
|
|
|
Set the minimum y independent variable.
|
|
|
Set the minimum z independent variable.
|
|
|
Update the member data of this object based on its XML node. Member objects (children) are not updated. Reimplemented in rdGCVSpline. |
|
|
Update the XML node representing this object.
Reimplemented from rdObject. Reimplemented in rdGCVSpline. |
|
|
Update this object based on its XML node.
Reimplemented from rdObject. Reimplemented in rdGCVSpline. |
1.3