OnPan

3D Graph

Function Group
OnPan() Functions    Prev page: OnMouseUpNext page: OnPlotAreaMouseDown    
Function Declared in:
NiGraph3DEvents.h

'Declaration' icon -- Shortcut to top of page. Declaration

void OnPan(
    VARIANT FAR* NewXCenter,
    VARIANT FAR* NewYCenter,
    VARIANT FAR* NewZCenter);

'Description' icon -- Shortcut to top of page. Description

Generated when you pan the graph up and down or left and right.

Notes:

1. This event is generated only if the CNiGraph.TrackMode property is set to TrackZoomPanRotate.

2. Panning is performed by holding down the <Shift> key and the left mouse button and moving the mouse.

Shortcut to top of page. Parameters

VARIANT FAR* NewXCenter

Variant containing the new x coordinate of the center of the view.

Note: Use CNiVariant to get to the underlying data.

VARIANT FAR* NewYCenter

Variant containing the new y coordinate of the center of the view.

Note: Use CNiVariant to get to the underlying data.

VARIANT FAR* NewZCenter

Variant containing the new z coordinate of the center of the view.

Note: Use CNiVariant to get to the underlying data.

'See Also' icon -- Shortcut to top of page. See Also

Shortcut to top of page. Example

void OnPanCwgraph3d1(VARIANT FAR* NewXCenter, VARIANT FAR* NewYCenter, VARIANT FAR* NewZCenter) {
   if (CNiVariant(NewXCenter) > 100) {
       *newXCenter = CNiVariant(100);
   }
}