rwlogo

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvMakeObjectInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/mkrectin.h>

Inheritance diagram for IlvMakeObjectInteractor:
IlvMakeRectangleInteractor IlvDragRectangleInteractor IlvManagerViewInteractor

Public Member Functions

 IlvMakeObjectInteractor (IlvManager *manager, IlvView *view, IlvGraphic *model=0)
 Constructor. More...
 
virtual void doIt (IlvRect &rect)
 Finalizes the interaction by creating a copy of the graphic object. More...
 
IlvGraphicgetObject ()
 Returns the object used as the model. More...
 
void setObject (IlvGraphic *model)
 Sets the object used as model. More...
 
- Public Member Functions inherited from IlvMakeRectangleInteractor
 IlvMakeRectangleInteractor (IlvManager *manager, IlvView *view)
 Constructor. More...
 
void addRectangle (IlvGraphic *graphic)
 Adds a graphic object to the manager. More...
 
- Public Member Functions inherited from IlvDragRectangleInteractor
 IlvDragRectangleInteractor (IlvManager *manager, IlvView *view, IlUShort button=IlvLeftButton, IlBoolean snap=IlTrue)
 Constructor. More...
 
virtual void abort ()
 Abort the interaction. More...
 
virtual void doPoint (const IlvPoint &p)
 Called when the selected rectangle is reduced to a point. More...
 
virtual void drawGhost ()
 Visual feedback during the interaction. More...
 
IlvRectgetRectangle ()
 Returns the selected rectangle. More...
 
virtual void handleEvent (IlvEvent &event)
 Handles keyboard and mouse events. More...
 
virtual void init ()
 Initialization, when the interactor is attached to a view. More...
 
- Public Member Functions inherited from IlvManagerViewInteractor
 IlvManagerViewInteractor (IlvManager *manager, IlvView *view)
 Constructor. More...
 
virtual void ensureVisible (const IlvPoint &point)
 Ensures the visibility of a given location. More...
 
IlvDisplaygetDisplay () const
 Returns the display of the manager view. More...
 
IlvManagergetManager () const
 Returns the manager. More...
 
IlvTransformergetTransformer () const
 Returns the transformer used with the manager view. More...
 
IlvViewgetView () const
 Returns the manager view. More...
 
virtual void handleExpose (IlvRegion *clip=0)
 Called when the manager view receives an expose event. More...
 

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to make a copy of another object.

See Also
IlvManager, IlvGraphic.

Constructor & Destructor Documentation

IlvMakeObjectInteractor::IlvMakeObjectInteractor ( IlvManager manager,
IlvView view,
IlvGraphic model = 0 
)

Constructor.

Creates a new interactor that creates a copy of the object given as the parameter.

Parameters
managerThe manager.
viewThe manager view.
modelThe graphic object to duplicate.

Member Function Documentation

virtual void IlvMakeObjectInteractor::doIt ( IlvRect rect)
virtual

Finalizes the interaction by creating a copy of the graphic object.

Creates a new graphic object in the manager. This object is a copy of the model, but resized to fit in the rectangle provided during the interaction.

Parameters
rectThe rectangle.

Reimplemented from IlvMakeRectangleInteractor.

IlvGraphic* IlvMakeObjectInteractor::getObject ( )

Returns the object used as the model.

Returns
The object used as the model.
void IlvMakeObjectInteractor::setObject ( IlvGraphic model)

Sets the object used as model.

Parameters
modelThe graphic object.

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.