Interface to Alias construction planes.
#include <AlConstructionPlane.h> class AlConstructionPlane : public AlConstructionEntity AlConstructionPlane(); virtual ~AlConstructionPlane(); virtual AlObject* copyWrapper() const; virtual AlObjectType type() const; statusCode create( AlPoint *, AlPoint *, AlPoint * ); statusCode create( AlPoint *, AlPoint *, double[3] ); statusCode create( double[3], double[3], double[3]); AlPoint * first(); AlPoint * second(); AlPoint * third(); statusCode scale( double&, double& ); statusCode setScale( double, double ); statusCode rotate( double&, double&, double& ); statusCode translate( double&, double&, double& ); statusCode transformationMatrix( double[4][4] ); statusCode origin( double&, double&, double& ); statusCode axes( double[3], double[3], double[3] );
This class provides functionality for creating, manipulating and querying Alias construction planes. Construction planes can be specified several ways.
This class provides access to the points used to create the construction plane (end may be NULL depending on the specification), transformation and axes information.
Null constructor.
Null destructor.
Returns an exact copy of the generic wrapper.
Create a construction plane specified by 3 points. The first 2 points specific the X axis. The first and last point specify a line that is used in the cross product with the X axis to calculate the Z axis.
sSuccess - the construction plane was created
sFailure - the method failed
sInvalidArgument - first, second, or third are either NULL or invalid or at least 2 point to the same Alias object
sAlreadyCreated - object is already created
Create a construction plane with 2 points that specify the X axis and a normal (Z axis).
sSuccess - the construction plane was created
sFailure - the method failed
sAlreadyCreated - object already created
sInvalidArgument - one of first, second or normal is NULL, or first and second are NULL or equal
Create a construction plane with 2 points that specify the X axis and a normal (Z axis).
sSuccess - the construction plane was created
sFailure - the method failed
sAlreadyCreated - object already created
sInvalidArgument - one of first, second or normal is NULL, or first and second are NULL or equal
Returns the first point of the construction plane. NULL is returned if the method failed.
Returns the second point of the construction plane. NULL is returned if the method failed.
Returns the third point of the construction plane. NULL is returned if the method failed or if the construction plane was not specified by 3 points.
Returns the class identifier kConstructionPlaneType.
Returns the current scale of the construction plane. Planes only have an x,y scale.
> x,y - the scale in x,y
sSuccess - the scale was found
sFailure - the method failed
sInvalidObject - the object is invalid
Returns the rotation of the construction plane.
> x,y,z - the rotation
sSuccess - the rotation was found
sFailure - the method failed
sInvalidObject - the object is invalid
Returns the translation of the construction plane.
> x,y,z - the translation
sSuccess - the translation was found
sFailure - the method failed
sInvalidObject - the object is invalid
Sets the scale for the construction plane.
< x,y -
sSuccess - the scale was set
sFailure - the method failed
sInvalidObject - the object is invalid
Returns the transformation matrix of the construction plane.
> matrix - the matrix
sSuccess - the transformation matrix was returned
sFailure - the method failed
sInvalidObject - the object is invalid
Returns the origin for the construction plane.
> x,y,z - the origin
sSuccess - the origin was returned
sFailure - the method failed
sInvalidObject - the object is invalid
Returns the x,y,z axes for the construction plane.
> x,y,z - the axes found
sSuccess - the axes were returned
sFailure - the method failed
sInvalidArgument - x,y or z is NULL
sInvalidObject - the object is invalid