Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TInteractor
Inherited By:
TCanvasInteractor
THighlightTextToolInteractor
TSimpleTextToolInteractor
Purpose:
TToolInteractor is a base class that specific cursor interactors can be derived from. It facilitates the binding of commands produced by tool interactors and the tool handlers it applies them to.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Derive classes from TToolInteractor to create interactors for your own cursor tools. No functions are required to be overridden. Add protocol to translate specific input device actions into the desired commands.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TToolInteractor (MToolHandler *)
- TToolInteractor (const TToolInteractor & source)
Interface Category:
API.
Purpose:
- Creates a TToolInteractor for the specified tool handler or view.
- Copy constructor.
Calling Context:
- Called to create an instance of TToolInteractor.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TToolInteractor ()
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: TToolInteractor::GetToolHandler
MToolHandler * GetToolHandler ()
Interface Category:
API.
Purpose:
Returns a reference to the tool handler.
Calling Context:
Called to obtain a reference to the tool handler. Called by TDelegatingMouseTool::MouseDown and TSimpleMouseTool::MouseDown.
Parameters:
Return Value:
A reference to this interactor's tool handler.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void AdoptAndDo (TToolCommandBinding *)
Interface Category:
API.
Purpose:
Adopts the tool command binding and does the command.
Calling Context:
Called to adopt the tool command binding and do the command. Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void DoBegin (TToolCommandBinding &)
Interface Category:
API.
Purpose:
Performs the initial segment of an interaction.
Calling Context:
Called to start the interaction. Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void DoIncrement (TToolCommandBinding &)
Interface Category:
API.
Purpose:
Performs the intermediate segment of an interaction.
Calling Context:
Called to performs the intermediate segment of an interaction. Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TToolInteractor::AdoptAndDoEnd
virtual void AdoptAndDoEnd (TToolCommandBinding *)
Interface Category:
API.
Purpose:
Adopts the tool command binding and performs the final segment of an interaction.
Calling Context:
Called to adopt the tool command binding and performs the final segment of an interaction. Call this function directly.
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.