OnRotate

3D Graph

Function Group
OnRotate() Functions    Prev page: OnReadyStateChangeNext page: OnZoom    
Function Declared in:
NiGraph3DEvents.h

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

void OnRotate(
    VARIANT FAR* NewLatitude,
    VARIANT FAR* NewLongitude);

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

Generated when you rotate the graph.

Notes:

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

2. Rotating is performed by holding down the left mouse button and moving the mouse.

Shortcut to top of page. Parameters

VARIANT FAR* NewLatitude

Variant containing the new latitude of the viewing position.

Note: Use CNiVariant to get to the underlying data.

VARIANT FAR* NewLongitude

Variant containing the new longitude of the viewing position.

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 OnRotateCwgraph3d1(VARIANT FAR* NewLatitude, VARIANT FAR* NewLongitude) {
   if (CNiVariant(NewLatitude) > 90) {
       *NewLatitude = CNiVariant(90);
   }
}