Adaptor for zooming via mouse interaction. Use ILibrary::CreateObject() to create this object.
Listens to: MousePressed(), MouseDragged(), MouseReleased()
virtual signed int IZoomAdaptor::GetSensitivity |
( |
double * |
pVal | ) |
|
|
pure virtual |
Gets the Sensitivity field and puts it in the variable at address pVal. The default value is 1.0.
- Parameters
-
pVal | The address of the variable to get the field's value. |
virtual signed int IZoomAdaptor::GetZoomToLoc |
( |
POINT * |
pVal | ) |
|
|
pure virtual |
Gets the ZoomToLoc field and puts it in the variable at address pVal. The default value is the center of the image. Changing this value will change where in the image zooming will zoom towards or away from. Typically, it makes sense to use the cursor position for this value.
- Parameters
-
pVal | The address of the variable to get the field's value. |
virtual signed int IZoomAdaptor::SetSensitivity |
( |
const double |
val | ) |
|
|
pure virtual |
Sets the Sensitivity field to val. The default value is 1.0.
- Parameters
-
val | The new Sensitivity value. |
virtual signed int IZoomAdaptor::SetZoomToLoc |
( |
const POINT |
val | ) |
|
|
pure virtual |
Sets the ZoomToLoc field to val. The default value is the center of the image. Changing this value will change where in the image zooming will zoom towards or away from. Typically, it makes sense to use the cursor position for this value.
- Parameters
-
val | The new ZoomToLoc value. |