Interface to Alias curve locators
#include <AlCurveLocator.h>
class AlCurveLocator : public AlPointLocator
AlCurveLocator();
virtual ~AlCurveLocator();
virtual AlObject * copyWrapper() const;
virtual AlObjectType type() const;
statusCode create(const AlCurve *, double);
statusCode setParameter(double);
statusCode parameter(double &) const;
virtual statusCode worldPosition(double &, double &, double &) const;
statusCode tangent(double &, double &, double &) const;
statusCode normal1(double &, double &, double &) const;
statusCode normal2(double &, double &, double &) const;
statusCode radius(double &) const;
statusCode arcLength(double &) const;
A locator can be created in the parametric space of any AlCurve. This locator can be queried for the curve's normals, tangent, position in the world coordinate system, arc length, and curvature. This class contains methods for creating and moving the curve locator.
If the AlCurve is deleted, the curve locator created on it is automatically deleted.
Constructs an AlCurveLocator wrapper object.
Deletes an AlCurveLocator wrapper object.
Returns an exact copy of the AlCurveLocator wrapper.
Returns the class identifier kCurveLocatorType.
Creates a locator on the given curve.
< curve - the curve on which the locator is created
< u - the curve parameter at which the locator is created
sSuccess - the locator was successfully created
sAlreadyCreated - the object has already been created
sFailure - the locator could not be created on the curve
sInvalidArgument - the curve is not a valid object
Moves the position of a locator created on a curve.
< u - the parameter on the curve where the locator has to be moved
sSuccess - the locator was moved
sInvalidObject - the locator is not valid
Finds the parameter value at which the locator is present.
> u - the curve parameter where the locator is present
sSuccess - the parameter was found
sInvalidObject - the locator is not valid
Finds the world coordinates of the curve locator.
> x, y, z - the world coordinates of the curve locator.
sSuccess - the coordinates were found
sInvalidObject - the locator is not valid
Finds the tangent vector to the curve at the point where the locator is present.
> x, y, z - the X, Y, Z components of the tangent
sSuccess - the tangent was found
sInvalidObject - the locator is not valid
Finds the normal to the curve at the point where the locator is present.
> x, y, z - the X, Y, Z components of the normal
sSuccess - the normal was found
sInvalidObject - the locator is not valid
Finds the second normal to the curve at the point where the locator is present.
> x, y, z - the x, y, and z components of the second normal vector that has been normalized
sSuccess - the normal was found
sInvalidObject - the locator is not valid
Finds the radius of the curve at the point where the locator is present.
> rad - the radius of the curve at the locator
sSuccess - the radius was found
sInvalidObject - the locator is not valid
Finds the length of the curve on which the locator is present.
> arcLen - the length of the curve
sSuccess - the arc length was found
sInvalidObject - the locator is not valid