Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
TCanvasGraphicDeque
TStandardCanvasModel
Purpose:
Stores canvas graphics in a front to back ordering. The abstract storage class for canvas graphics in any GrafEdit application.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Must derive because MCanvasRepresentation is abstract.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
virtual ~ MCanvasRepresentation ()
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.
virtual void AdoptAtFront (MCanvasGraphic *)
Interface Category:
API.
Purpose:
Adopts a graphic at the front of the representation.
Calling Context:
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 AdoptAtBack (MCanvasGraphic *)
Interface Category:
API.
Purpose:
Adopts a graphic at the back of the representation.
Calling Context:
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 AdoptAfter (const TCanvasGraphicID & existing, MCanvasGraphic * toBeAdded)
Interface Category:
API.
Purpose:
Adopts a graphic after (behind) another in the representation.
Calling Context:
Call this function directly.
Parameters:
- const TCanvasGraphicID & existing -The ID of the graphic in the representation to adopt the new graphic after.
- MCanvasGraphic * toBeAdded -The graphic to adopt.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void AdoptBefore (const TCanvasGraphicID & existing, MCanvasGraphic * toBeAdded)
Interface Category:
API.
Purpose:
Adopts a graphic before (in front of) another graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
- const TCanvasGraphicID & existing -The ID of the graphic in the representation to adopt the new graphic before.
- MCanvasGraphic * toBeAdded -The new graphic to adopt.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void MoveToFront (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Moves a graphic to the front of the representation.
Calling Context:
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 MoveToBack (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Moves a graphic to the back of the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual bool MoveForward (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Moves a graphic one position closer to the front of the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if the graphic is moved.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual bool MoveBackward (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Moves a graphic one position closer to the back of the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if the graphic is moved.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual MCanvasGraphic * Orphan (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Orphans a graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
MCanvasGraphic * -The orphaned graphic.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual MCanvasGraphic * Swap (const TCanvasGraphicID &, MCanvasGraphic * adopt)
Interface Category:
API.
Purpose:
Swaps a new canvas graphic with one already in the representation. The new graphic assumes the ID of the one it replaces. The replaced graphic assumes the ID of the new one (this ensures that the ID of each is still unique).
Calling Context:
Call this function directly.
Parameters:
Return Value:
MCanvasGraphic * -The replaced graphic.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void Delete (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
Removes a graphic from the representation and destructs it.
Calling Context:
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 DeleteAll ()
Interface Category:
API.
Purpose:
Removes all graphics in the representation and destructs them.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual bool Member (const TCanvasGraphicID &) const
Interface Category:
API.
Purpose:
Determines if an identified graphic is a member of the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns true if the identified graphic is a member of the representation.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TCanvasGraphicID FrontMost () const
Interface Category:
API.
Purpose:
Gets the frontmost graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicID -The ID of the frontmost graphic in the representation.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TCanvasGraphicID BackMost () const
Interface Category:
API.
Purpose:
Identifies the backmost graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicID -The ID of the backmost graphic in the representation.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TCanvasGraphicID After (const TCanvasGraphicID &) const
Interface Category:
API.
Purpose:
Identifies the graphic that is after another identified graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicID -The ID of the graphic after the identified graphic.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TCanvasGraphicID Before (const TCanvasGraphicID &) const
Interface Category:
API.
Purpose:
Identifies the graphic that is before another identified graphic in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicID -The ID of the graphic before the identified graphic.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long Count () const
Interface Category:
API.
Purpose:
Determines the number of graphics in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
long -The number of graphics in the representation.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- virtual const MCanvasGraphic * Lookup (const TCanvasGraphicID &) const
- virtual MCanvasGraphic * Lookup (const TCanvasGraphicID &)
Interface Category:
API.
Purpose:
- Looks up the identified graphic and returns a const pointer to it.
- Looks up the identified graphic and returns a non-const pointer to it.
Calling Context:
Call this function directly.
Parameters:
Return Value:
- const MCanvasGraphic * -A const pointer to the graphic or NIL if not in the representation.
- MCanvasGraphic * -A non-const pointer to the graphic or NIL if not in the representation.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Clients with a const reference to the representation are only be able to access its graphics in a const manner (unless they cast away const).
virtual TCanvasGraphicReadIterator * CreateReadIterator () const
Interface Category:
API.
Purpose:
Creates an iterator that permits read-only iteration over graphics in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicReadIterator * -A read iterator.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TCanvasGraphicWriteIterator * CreateWriteIterator ()
Interface Category:
API.
Purpose:
Creates an iterator that permits read/write iteration over graphics in the representation.
Calling Context:
Call this function directly.
Parameters:
Return Value:
TCanvasGraphicWriteIterator * -A write iterator.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- MCanvasRepresentation ()
- MCanvasRepresentation (const MCanvasRepresentation &)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
Calling Context:
- Called by the stream-in operators and constructors of derived classes.
- Called by the copy constructor of derived classes.
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.