AlPlaneAttributes

Interface to Alias plane surface attributes.

Synopsis

#include <AlPlaneAttributes.h>
class AlPlaneAttributes : public AlAttributes
virtual AlObjectType type() const;
virtual AlPlaneAttributes* asPlaneAttributesPtr();
AlObject* copyWrapper() const;
statusCode coefficients( double&, double&, double&, double& ) const;
statusCode centerPoint( double&, double&, double& ) const;

Description

AlPlaneAttributes is a class derived from the AlAttributes class. This class allows access to the attributes for a plane.

The attributes that define a plane are the coefficients of Ax + By + Cz + D = 0 and coordinates of the center of the plane.

At this time it is only possible to query an AlPlaneAttribute. Further, it is currently not possible to create a plane with attributes either in OpenModel or Alias. This attribute is provided for compatibility with IGES, and as such, the only way to get a plane with attributes into an Alias wire file is to import an IGES file into Alias and then save a wire file.

Summary

AlObjectType AlPlaneAttributes::type() const

Description

Returns the class identifier 'kPlaneAttributeType'.

AlPlaneAttributes* AlPlaneAttributes::asPlaneAttributesPtr()

Description

This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.

AlObject* AlPlaneAttributes::copyWrapper() const

Description

This method makes a copy of the AlPlaneAttributes. The returned AlPlaneAttributes will reference the same data as the original.

statusCode AlPlaneAttributes::coefficients( double& c_a, double& c_b, double& c_c, double& c_d ) const

Description

Determine the coefficients for the plane, where the plane is defined by the equation: Ax + By + Cz + D = 0.

Arguments

> c_a - coefficient A

> c_b - coefficient B

> c_c - coefficient C

> c_d - coefficient D

Return codes

sSuccess - the coefficients were successfully returned.

sInvalidObject - the plane attribute was invalid

sFailure - an error occurred.

statusCode AlPlaneAttributes::centerPoint( double& x, double& y, double& z ) const

Description

This method determines the "center" of a plane.

Arguments

> double &x, &y, &z - the returned 3D position of the center

Return codes

sSuccess - the coefficients were successfully returned.

sInvalidObject - the plane attribute was invalid

sFailure - an error occurred.





aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.