Class: TStandardCanvasSelectionNotification

Declaration: StandardGrafEdit.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSelectionNotification

Inherited By:

None.

Purpose:

Used to notify interested parties of changes to a collection of canvas graphics in the model.

Instantiation:

Allocate on the heap or the stack. There is no restriction on where this is allocated however, it is recommended that it reside on the heap.

Deriving Classes:

Intended to be used as is but can also be derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TStandardCanvasSelectionNotification::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns a unique value that can assist in identifying the object or comparing it to other objects.

Calling Context:

Called to generate a hash value.

Parameters:

Return Value:

long -The hash value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::GetSelection

virtual const TStandardCanvasModelSelection * GetSelection () const

Interface Category:

API.

Purpose:

Returns the associated selection that identifies graphics affected by the change that the notification represents.

Calling Context:

Handling notification.

Parameters:

Return Value:

const TStandardCanvasModelSelection * -The selection.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::GetArea

  1. virtual TGArea GetArea () const
  2. virtual void GetArea (TGArea &) const

Interface Category:

API.

Purpose:

Returns the bounding area of the graphics affected by the change that the notification represents.

Calling Context:

Called during handling of notification.

Parameters:

Return Value:

TGArea -The area.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::operator=

const TStandardCanvasSelectionNotification & operator =( const TStandardCanvasSelectionNotification &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws a TStandardException(kStreamBadVersion,0) when streaming in a version other than kOriginalVersion. Passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::~TStandardCanvasSelectionNotification

virtual ~ TStandardCanvasSelectionNotification ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardCanvasSelectionNotification::TStandardCanvasSelectionNotification

  1. TStandardCanvasSelectionNotification (const TModelInterest &, const TStandardCanvasModelSelection &, const TGArea &)
  2. TStandardCanvasSelectionNotification ( const TStandardCanvasSelectionNotification &)
  3. TStandardCanvasSelectionNotification ()

Interface Category:

API.

Purpose:

  1. Constructor.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to create a new object.
  2. Called to copy an object.
  3. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.