AlLocator
Contains functionality common to all the Alias locators
Synopsis
#include <AlLocator.h>
class AlLocator : public AlObject
virtual ~AlLocator();
virtual statusCode deleteObject();
virtual AlObject * copyWrapper() const = 0;
virtual AlObjectType type() const;
statusCode pick();
statusCode unpick();
statusCode isPicked(boolean &) const;
statusCode templated(boolean &) const;
static void setLocatorDisplay(boolean);
static boolean locatorDisplay();
Description
This virtual class encapsulates methods common to all the Alias locators, such as spaceLocator, curveLocator, curveOnSurfaceLocator, surfaceLocator, annotationLocator, distanceLocator, angleLocator, radialLocator, deviation Locator and minmaxLocator.
This class has methods to pick and unpick a locator. This class also has static methods for the display of all the locators.
To create a locator, the user must instantiate and call the create method of a specific type of locator (for example, a curve locator or a distance locator).
The annotation, distance and angle locators depend on one or more point type locators, such as a curve locator. If a point locator is deleted, its dependent annotation, distance and angle locators are automatically deleted. Similarly, the radial, deviation and minmax locators are dependent on other objects. If those objects are deleted, the dependent radial, deviation, and minmax locators are also deleted.
The locator classes are derived as follows, where a class inherits the functionality defined in the class above it. The user can not instantiate the locator (AlLocator) and point locator (AlPointLocator) classes.

SUMMARY
AlLocator::AlLocator(void)
Description:
Constructs an AlLocator wrapper object.
AlLocator::~AlLocator()
Description:
Deletes an AlLocator wrapper object.
statusCode AlLocator::deleteObject()
Description:
Deletes the locator wrapper.
Return codes:
sSuccess - the object was deleted.
sInvalidObject - the locator was invalid.
AlObjectType AlLocator::type() const
Description:
Returns the class identifier kLocatorType.
statusCode AlLocator::pick()
Description:
Picks a locator. The function does nothing if the locator is already picked. Similarly, unpick does nothing if the locator is unpicked.
Return codes:
sSuccess - The picking was successful.
sInvalidObject - the object is not valid.
statusCode AlLocator::unpick()
Description:
Unpicks a locator. Unpick does nothing if the locator is already unpicked.
Return codes:
sSuccess - The unpicking was successful.
sInvalidObject - the object is not valid.
statusCode AlLocator::isPicked(boolean &picked) const
Description:
Finds whether the locator is picked or unpicked.
Arguments:
> picked - is set to true if the locator is picked, and set to false otherwise.
Return codes:
sSuccess - The value was set successfully.
sInvalidObject - the object is not valid.
statusCode AlLocator::templated(boolean &tmpl) const
Description:
Finds whether the object on which a locator depends is templated. If a locator does not depend on any other object, the argument is set to false.
Arguments:
> tmpl - is set to true if the object on which a locator depends is templated. Otherwise, tmpl is set to false.
Return codes:
sSuccess - The value was set successfully.
sInvalidObject - the object is not valid.
void AlLocator::setLocatorDisplay(boolean display)
Description:
Sets the visibility of all the locators at the Alias interface.
Arguments:
< display - true makes all the locators visible, and false turns off the display of all the locators.
boolean AlLocator::locatorDisplay()
Description:
Tests if the locators are visible at the Alias interface.
Return codes:
true - the locators are visible.
false - the locators are invisible.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.