Class: TSRTBoxFeedbacker

Declaration: CanvasGraphicManipulation.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSRTFeedbacker

Inherited By:

None.

Purpose:

A standard selection feedback graphic that supports direct manipulation, scaling, rotating, and translating of the graphic it represents.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSRTBoxFeedbacker::TSRTBoxFeedbacker

  1. TSRTBoxFeedbacker ()
  2. TSRTBoxFeedbacker (const MCanvasGraphic & forThis)
  3. TSRTBoxFeedbacker (const TSRTBoxFeedbacker &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Used for creating a feedbacker region for a given canvas graphic.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and can be called directly.
  2. Call this function directly.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSRTBoxFeedbacker::~TSRTBoxFeedbacker

virtual ~ TSRTBoxFeedbacker ()

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: TSRTBoxFeedbacker::operator=

TSRTBoxFeedbacker & operator =( const TSRTBoxFeedbacker & source)

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: TSRTBoxFeedbacker::operator>>=

virtual TStream & operator >>=(TStream & toWhere) 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: TSRTBoxFeedbacker::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

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 TStandardException (kStreamBadVersion,0) if streaming in a version other than kOriginalVersion. Passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSRTBoxFeedbacker::HandleDraw

virtual void HandleDraw (TGrafPort & port) const

Interface Category:

API.

Purpose:

Draws the feedbacker's untransformed geometry.

Calling Context:

Called by MCanvasGraphic::Draw, which links the graphic's transform and bundle to the port before calling HandleDraw.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSRTBoxFeedbacker::HandleCreateInteractor

virtual TCanvasInteractor * HandleCreateInteractor (MCanvasSelection * adoptTarget, MToolHandler *, const TGPoint &) const

Interface Category:

API.

Purpose:

Creates a box-type interactor corresponding to the location of the point. The TSRTBoxFeedbacker is composed of nine rectangular areas. If the point is in any of the four edges (not corners), then a rotating interactor is created and returned. If the point is in any of the four corners, then a scaling interactor is created and returned. If the point is in the center, then a translating interactor is created and returned. If the point is not in the box feedbacker, then NIL is returned.

Calling Context:

Call this function directly.

Parameters:

Return Value:

An interactor for the appropriate type of interaction.

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.