AlRadialLocator
Interface to Alias Radial locators.
Synopsis
#include <AlRadialLocator.h>
class AlRadialLocator : public AlLocator
AlRadialLocator();
~AlRadialLocator();
virtual AlObject * copyWrapper() const;
virtual AlObjectType type() const;
statusCode create(const AlCurve *, double u = 0.0);
statusCode create(const AlCurveOnSurface *, double u = 0.0);
statusCode radius(double &) const;
statusCode center(double &, double &, double &) const;
statusCode setParameter(double);
statusCode parameter(double &) const;
statusCode setOffset(double);
statusCode offset(double &) const;
statusCode setLeftJustify(boolean);
statusCode leftJustify(boolean &) const;
Description
A Radial locator is used to create a radial measure of a curve or a curve on surface in its respective parametric space. This class encompasses methods to create the locator, query the radius and set the display attributes of the radial locator in the Alias windows. If the curve or curve on surface on which this locator is created is deleted, the locator is automatically deleted.
SUMMARY
AlRadialLocator::AlRadialLocator(void)
Description:
Constructs an AlRadialLocator wrapper object.
AlRadialLocator::~AlRadialLocator()
Description:
Deletes an AlRadialLocator wrapper object.
AlObject *AlRadialLocator::copyWrapper() const
Description:
Returns an exact copy of the AlRadialLocator wrapper.
AlObjectType AlRadialLocator::type() const
Description:
Returns the class identifier kRadialLocatorType.
statusCode AlRadialLocator::create(const AlCurve *curve, double u)
Description:
Creates a radial locator on the given curve
Arguments:
< curve - the curve on which which the locator is created.
< u - curve parameter at which locator is created.
Return codes:
sSuccess - the locator was successfully created.
sAlreadyCreated - object has already been created.
sFailure - the radial locator could not be created.
sInvalidArgument - the curve is not a valid object.
statusCode AlRadialLocator::create(const AlCurveOnSurface *curve, double u)
Description:
Creates a radial locator on the given curve on surface.
Arguments:
< curve - the curve on surface on which which the locator is created.
< u - curve parameter at which locator is created.
Return codes:
sSuccess - the locator was successfully created.
sAlreadyCreated - object has already been created .
sFailure - the radial locator could not be created.
sInvalidArgument - the given curve on surface is not a valid object.
statusCode AlRadialLocator::radius(double &radiusValue) const
Description:
Gets the radius of the curve where the radial locator is created.
Arguments:
> radius - the radius of the curve.
Return codes:
sSuccess - the radius was found.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::center(double &x, double &y, double &z) const
Description:
Gets the center of curvature of the curve where the radial locator is created.
Arguments:
> x, y, z - the world coordinates of the center.
Return codes:
sSuccess - the center was found.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::setParameter(double u)
Description:
Sets the curve parameter at which the radial locator is located.
Arguments:
< u - curve parameter.
Return codes:
sSuccess - the parameter was set.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::parameter(double &u) const
Description:
Gets the curve parameter where radial locator is located.
Arguments:
> u - curve parameter.
Return codes:
sSuccess - the parameter was found.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::setOffset(double offset)
Description:
Sets the offset in Radial locator display.
Arguments:
< offset - the value of the offset.
Return codes:
sSuccess - the offset was set.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::offset(double &offsetValue) const
Description:
Gets the offset of the Radial locator display.
Arguments:
> offsetValue - the display offset.
Return codes:
sSuccess - the offset was found.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::setLeftJustify(boolean leftJustify)
Description:
Sets the justification of the text for the Radial locator. The text can be right justified or left justified.
Arguments:
< leftJustify - a value of true makes the text left justified and a value false makes it right justified.
Return codes:
sSuccess - setting was successful.
sInvalidObject - the object is not valid.
statusCode AlRadialLocator::leftJustify(boolean &leftJustify) const
Description:
Finds whether the text of radial locator is left justified or right justified.
Arguments:
> leftJustify - a value of true indicates that it is left justified and false indicates right justification.
Return codes:
sSuccess - the justification was found.
sInvalidObject - the object is not valid.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.