Interface to Alias arc curve attributes.
#include <AlArcAttributes.h>
class AlArcAttributes : public AlAttributes
virtual AlObjectType type() const;
AlObject* copyWrapper() const;
statusCode centerPoint(double&, double&, double&) const;
statusCode startPoint(double&, double&, double&) const;
statusCode endPoint(double&, double&, double&) const;
double sweep() const;
double radius() const;
statusCode calculateStartAndEndAngles( double& start_angle, double&
end_angle, double xaxis[3],
double yaxis[3], double zaxis[3]);
statusCode setStartPoint(double, double, double);
statusCode setEndPoint(double, double, double);
statusCode setSweepFromStartPoint(double);
statusCode setSweepFromEndPoint(double);
statusCode setRadius(double);
AlArcAttributes is a class derived from the AlAttributes class. This class allows access to the attributes for an arc.
The attributes that define an arc are its radius, sweep angle, center point, start point, and end point. Coordinates are given in object space, and not world space.
statusCode AlArcAttributes::centerPoint(double& x, double& y, double& z) const
Returns the center point for the arc. Note that there is no "set" method for the center point. The center point is moved by changing the arc’s radius.
statusCode AlArcAttributes::startPoint(double& x, double& y, double& z) const
statusCode AlArcAttributes::endPoint(double& x, double& y, double& z) const
statusCode AlArcAttributes::calculateStartAndEndAngles( double& start_angle, double& end_angle, double xaxis[3], double yaxis[3], double zaxis[3] )
statusCode AlArcAttributes::setStartPoint(double x, double y, double z)
Moves the start point of the arc. Changing the start point changes the size of the sweep, and if the new start point is not on the circle about the arc’s center point, the center point is moved.
statusCode AlArcAttributes::setEndPoint(double x, double y, double z)
Moves the end point of the arc. Changing the end point changes the size of the sweep, and if the new end point is not on the circle about the arc’s center point, the center point is moved.
statusCode AlArcAttributes::setSweepFromStartPoint(double sweep)
statusCode AlArcAttributes::setSweepFromEndPoint(double sweep)