rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMakeObjectInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/mkrectin.h>

Inheritance diagram for IlvMakeObjectInteractor:
IlvMakeRectangleInteractor IlvDragRectangleInteractor IlvManagerViewInteractor

List of all members.

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.
IlvGraphicgetObject ()
 Returns the object used as the model.
void setObject (IlvGraphic *model)
 Sets the object used as model.

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:
manager The manager.
view The manager view.
model The 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:
rect The 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:
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.