AlSetMember

Basic Interface to the members of Alias set structures.

Synopsis

#include <AlSetMember.h>
class AlSetMember : public AlObject
virtual ~AlSetMember();
virtual AlObject* copyWrapper() const;
virtual AlObjectType type() const;
virtual AlSetMember* asSetMemberPtr();
AlSetMember* nextSetMember() const;
AlSetMember* prevSetMember() const;
statusCode nextSetMemberD();
statusCode prevSetMemberD();
AlObject* object() const;
AlSet* set() const;
statusCode removeFromSet( AlSet *set );

Description

This class provides utility functions for set operations. The first AlSetMember of a set can be retrieved from the AlSet. Then iteration through the sets can be performed using the calls provided within this class.

The following classes can be grouped into sets: AlDagNode, AlPerspectiveCamera, AlCurveCV, AlPolysetVertex and AlSurfaceCV. These classes use multiple inheritance, which includes the AlSettable class. Use the addToSet() method of class AlSettable to add the object to a set.

Summary

AlSetMember::~AlSetMember()

Description

Deletes an AlSetMember wrapper object.

AlObject *AlSetMember::copyWrapper() const

Description

Return an exact duplicate of this AlSetMember wrapper.

AlObjectType AlSetMember::type() const

Description

Returns the class identifier 'kSetMemberType'.

AlSetMember *AlSetMember::asSetMemberPtr()

Description

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

AlSetMember* AlSetMember::nextSetMember() const

Description

Returns a pointer to the next AlSetMember. Otherwise, returns NULL if there is no next set member.

AlSetMember* AlSetMember::prevSetMember() const

Description

Returns a pointer to the previous AlSetMember. Otherwise, returns NULL if there is no previous set member.

statusCode AlSetMember::nextSetMemberD()

Description

Destructively point this wrapper to next set member. If there is no such member, the object pointer is unaltered.

Return codes

sSuccess - the wrapper points to the next set member

sFailure - there is no next set member

sInvalidObject - the set member is invalid

statusCode AlSetMember::prevSetMemberD()

Description

Destructively points this wrapper to the previous set member. If there is no such member, the object pointer is unaltered.

Return codes

sSuccess - the wrapper points to the previous set member

sFailure - there is no previous set member

sInvalidObject - the set member is invalid

AlObject *AlSetMember::object() const

Description

This method returns the object that this set member references.

AlSet* AlSetMember::set() const

Description

This method returns the set that this set member belongs to.

statusCode AlSetMember::removeFromSet( AlSet *set )

Description

Removes this member from the set.

Arguments

< set - the set to remove this from.

Return codes

sSuccess - if the object was removed successfully

sInvalidArgument - set was invalid

sObjectNotAMember - if the object was not found in this set

sInvalidObject - the set is invalid





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