Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Manager interactor class. More...
#include <ilviews/manager/mkrectin.h>
Public Member Functions | |
IlvMakeObjectInteractor (IlvManager *manager, IlvView *view, IlvGraphic *model=0) | |
Constructor. | |
virtual void | doIt (IlvRect &rect) |
Finalizes the interaction by creating a copy of the graphic object. | |
IlvGraphic * | getObject () |
Returns the object used as the model. | |
void | setObject (IlvGraphic *model) |
Sets the object used as model. |
Manager interactor class.
Library: ilvmgr
Use this class to make a copy of another object.
IlvManager
, IlvGraphic
. 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.
manager | The manager. | |
view | The manager view. | |
model | The graphic object to duplicate. |
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.
rect | The rectangle. |
Reimplemented from IlvMakeRectangleInteractor.
IlvGraphic* IlvMakeObjectInteractor::getObject | ( | ) |
Returns the object used as the model.
void IlvMakeObjectInteractor::setObject | ( | IlvGraphic * | model | ) |
Sets the object used as model.
model | The graphic object. |
© Copyright 2012, 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.