AlAngleLocator

Displays the included angle between three locators.

Synopsis

#include <AlAngleLocator.h>
class AlAngleLocator : public AlLocator
AlAngleLocator();
~AlAngleLocator();
virtual AlObject * copyWrapper() const;
virtual AlObjectType type() const;
statusCode create(const AlPointLocator *, const AlPointLocator *, const AlPointLocator *, boolean trueDisplay = TRUE);
AlPointLocator * startLocator() const;
AlPointLocator * middleLocator() const;
AlPointLocator * endLocator() const;
statusCode trueDisplay(boolean &) const;
statusCode setTrueDisplay(boolean);
statusCode offset(double &) const;
statusCode setOffset(double);
statusCode angle(double &) const;

Description

An angle locator is used to find the included angle between any three point locators (AlPointLocator). If any of the three point locators on which this locator depends is deleted, this locator is automatically deleted. This class contains methods to create the locator, query the angle, and set the display attributes of the locator in the Alias windows.

SUMMARY

AlAngleLocator::AlAngleLocator(void)

Description:

Constructs an AlAngleLocator wrapper object.

AlAngleLocator::~AlAngleLocator()

Description:

Deletes an AlAngleLocator wrapper object.

AlObject *AlAngleLocator::copyWrapper() const

Description:

Returns an exact copy of the AlAngleLocator wrapper.

AlObjectType AlAngleLocator::type() const

Description:

Returns the class identifier kAngleLocatorType.

statusCode AlAngleLocator::create(const AlPointLocator *startLocator, const AlPointLocator *middleLocator, const AlPointLocator *endLocator, boolean trueDisplay)

Description:

Creates an Angle locator to measure the included angle between three point locators. The measured angle is between the lines formed by startLocator and middleLocator, and middleLocator and endLocator.

Arguments:

< startLocator - The starting Point locator.

< endLocator - The middle Point locator.

< endLocator - The ending Point locator.

< displayType - whether the true value or projection of the true value in the Alias window should be shown. The default is true display.

Return codes:

sSuccess - the angle locator was successfully created.

sAlreadyCreated - object has already been created.

sFailure - the angle locator could not be created.

sInvalidArgument - either one or all the given point locators are not valid.

AlPointLocator *AlAngleLocator::startLocator() const

Description:

Returns the starting Point locator of this Angle locator. However, if the angle locator is not valid, NULL is returned.

AlPointLocator *AlAngleLocator::middleLocator() const

Description:

Returns the middle Point locator of this angle locator. However, if the angle locator is not valid, NULL is returned.

AlPointLocator *AlAngleLocator::endLocator() const

Description:

Returns the ending Point locator of this angle locator. However, if the angle locator is not valid, NULL is returned.

statusCode AlAngleLocator::trueDisplay(boolean &trueDisplay) const

Description:

Finds if the angle locator is depicting the true angle or projected angle in the Alias Modeling windows.

Arguments:

> trueDisplay - the value is true if the angle locator displays true angle as opposed to projected angle in a modeling window. It is set to false for projected angle.

Return codes:

sSuccess - the display mode was found.

sInvalidObject - the locator is not valid.

statusCode AlAngleLocator::setTrueDisplay(boolean trueDisplay)

Description:

Sets the mode to display the angle locator as either true angle or projected angle in the Modeling window.

Arguments:

< trueDisplay - if the value is true if the distance locator displays true distance, wherewas the projected distance is displayed if the argument is false.

Return codes:

sSuccess - the display mode was set.

sInvalidObject - the locator is not valid.

statusCode AlAngleLocator::setOffset(double offset)

Description:

Sets the offset of the angle locator display.

Arguments:

< offset - the offset value.

Return codes:

sSuccess - the offset value was set.

sInvalidObject - the locator is not valid.

statusCode AlAngleLocator::offset(double &offset) const

Description:

Finds the offset of the angle locator display.

Arguments:

> offset - the offset value.

Return codes:

sSuccess - the offset value was found.

sInvalidObject - the locator is not valid.

statusCode AlAngleLocator::angle(double &includedAngle) const

Description:

Finds the angle of the angle locator.

Arguments:

> includedAngle - the included angle between the three point locators.

Return codes:

sSuccess - the angle was found.

sInvalidObject - the locator is not valid.





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