Fovia's C++ Client/Server API
Public Member Functions | List of all members
IZoomAdaptor Struct Referenceabstract
Inheritance diagram for IZoomAdaptor:
IMouseAdaptor IRoot

Public Member Functions

virtual signed int GetSensitivity (double *pVal)=0
 
virtual signed int GetZoomToLoc (POINT *pVal)=0
 
virtual signed int SetSensitivity (const double val)=0
 
virtual signed int SetZoomToLoc (const POINT val)=0
 
- Public Member Functions inherited from IMouseAdaptor
virtual signed int AskInterface (const BGUID *piid, IRoot **ppr)=0
 
virtual signed int DecRef ()=0
 
virtual signed int IncRef ()=0
 
virtual signed int MouseClicked (signed int x, signed int y)=0
 
virtual signed int MouseDragged (signed int x, signed int y)=0
 
virtual signed int MouseEntered (signed int x, signed int y)=0
 
virtual signed int MouseExited (signed int x, signed int y)=0
 
virtual signed int MouseManuallyMoved (signed int offsetX, signed int offsetY)=0
 
virtual signed int MouseMoved (signed int x, signed int y)=0
 
virtual signed int MousePressed (signed int x, signed int y)=0
 
virtual signed int MouseReleased (signed int x, signed int y)=0
 
virtual signed int SetRenderParamsReciever (IRenderParamsReceiver *pReceiver)=0
 
- Public Member Functions inherited from IRoot
template<class T >
signed int AskInterface (T **pp)
 

Detailed Description

Adaptor for zooming via mouse interaction. Use ILibrary::CreateObject() to create this object.

Listens to: MousePressed(), MouseDragged(), MouseReleased()

Member Function Documentation

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
pValThe 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
pValThe 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
valThe 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
valThe new ZoomToLoc value.