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.
- TSRTBoxFeedbacker ()
- TSRTBoxFeedbacker (const MCanvasGraphic & forThis)
- TSRTBoxFeedbacker (const TSRTBoxFeedbacker &)
Interface Category:
API.
Purpose:
- Default constructor.
- Used for creating a feedbacker region for a given canvas graphic.
- Copy constructor.
Calling Context:
- Called by the stream-in operators and can be called directly.
- Call this function directly.
- Called to copy an object.
Parameters:
- Takes no parameters.
- const MCanvasGraphic & forThis -The canvas graphic this new feedbacker is to be associated with.
- const TSRTBoxFeedbacker & -The object to be copied.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
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.
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.
virtual TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream the object is streamed out to.
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.
virtual TStream & operator <<= (TStream & fromWhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromWhere -The stream the object is streamed in from.
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.
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:
- TGrafPort & port -The graphics port to draw into.
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.