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.
Returns the class identifier ’kArcAttributeType’.
Makes a copy of the AlArcAttributes. The returned AlArcAttributes will reference the same data as the original.
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.
> double& x - center point x coordinate
> double& y - center point y coordinate
> double& z - center point z coordinate
sSuccess - the center point was successfully returned
sInvalidObject - the attribute was invalid
Returns the point where the arc starts.
> double& x - start point x coordinate
> double& y - start point y coordinate
> double& z - start point z coordinate
sSuccess - the start point was successfully returned
sInvalidObject - the attribute was invalid
Returns the point where the arc ends.
> double& x - end point x coordinate
> double& y - end point y coordinate
> double& z - end point z coordinate
sSuccess - the start point was successfully returned
sInvalidObject - the attribute was invalid
Returns the number of degrees in the arc. Zero is returned if the attribute is not valid.
Returns the radius of the arc. Zero is returned if the attribute is not valid.
This function will convert the attribute information to start and end angle format. The start and end angles are rotated by the axis into their correct position.
> x,y,z axis
> start and end angle
sSuccess - Converting the data succeeded
sInvalidObject - the attribute was invalid
sFailure - Conversion failed
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.
< double x - start point x coordinate
< double y - start point y coordinate
< double z - start point z coordinate
sSuccess - setting the start point succeeded
sInvalidObject - the attribute was not valid
sFailure - setting the start point failed
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.
< double x - end point x coordinate
< double y - end point y coordinate
< double z - end point z coordinate
sSuccess - setting the end point succeeded
sInvalidObject - the attribute was invalid
sFailure - setting the end point failed
Changes the sweep of the arc from the start point. This operation will move the end point. The sweep is given in degrees.
< sweep - the sweep from the start point (in degrees)
sSuccess - setting the sweep succeeded
sInvalidObject - the attribute was invalid
sFailure - setting the sweep failed
Changes the sweep of the arc from the end point. This operation will move the start point. The sweep is given in degrees.
< sweep - the sweep from the end point (in degrees)
sSuccess - setting the sweep succeeded
sInvalidObject - the attribute was invalid
sFailure - setting the sweep failed
Change the radius for the arc. This operation will move the center point for the arc.
< radius - the radius of the arc
sSuccess - setting the sweep succeeded
sInvalidObject - the attribute was invalid
sFailure - setting the sweep failed