AlLineAttributes

Interface to Alias line attributes.

Synopsis

#include <AlLineAttributes.h>
class AlLineAttributes : public AlAttributes
virtual AlObjectType type() const;
virtual AlLineAttributes* asLineAttributesPtr();
AlObject* copyWrapper() const;
statusCode startPoint(double&, double&, double&) const;
statusCode endPoint(double&, double&, double&) const;
statusCode setStartPoint(double, double, double);
statusCode setEndPoint(double, double, double);

Description

AlLineAttributes is a class derived from the AlAttributes class. This class allows access to the attributes for a line.

The attributes which define a line are just its start point and its end point. Coordinates are given in object space, and not world space.

Summary

AlObjectType AlLineAttributes::type() const

Description

Returns the class identifier 'kLineAttributeType'.

AlLineAttributes* AlLineAttributes::asLineAttributesPtr()

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* AlLineAttributes::copyWrapper() const

Description

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

statusCode AlLineAttributes::startPoint( double& x, double& y, double& z ) const

Description

Gets the start point for the line.

Arguments

> double &x, &y, &z - the returned 3D coordinates of the start point

Return codes

sSuccess - the start point was successfully returned

sInvalidObject - the attribute was not valid

sFailure - an error occurred.

statusCode AlLineAttributes::endPoint( double& x, double& y, double& z ) const

Description

Gets the end point for the line.

Arguments

> double &x, &y, &z - the returned 3D coordinates of the end point

Return codes

sSuccess - the end point was successfully returned

sInvalidObject - the attribute was not valid

sFailure - an error occurred.

statusCode AlLineAttributes::setStartPoint( double x, double y, double z )

Description

Sets the start point for the line.

Arguments

< double x, y, z - the 3D coordinates of the start point

Return code

sSuccess - Setting the start point succeeded.

sFailure - Setting the start point failed.

sInvalidObject - the attribute was invalid

statusCode AlLineAttributes::setEndPoint( double x, double y, double z )

Description

Sets the end point for the line.

Arguments

< double x, y, z - the 3D coordinates of the end point

Return code

sSuccess - Setting the end point succeeded.

sFailure - Setting the end point failed.

sInvalidObject - the attribute was invalid





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