Public Member Functions

ArcballCallback Class Reference

Search for all occurrences

Detailed Description

See also:
Class ArcballDialog, Class Quat.

Description:
This class is available in release 2.0 and later only.

This class provides methods to work with a general arcball dialog box for doing 3D rotations. This dialog appears below:

dlgarcr.gif
To use these APIs you'll need to #include "arcdlg.h"

All methods of this class are virtual.

Sample code can be found in /MAXSDK/SAMPLES/HOWTO/CUSTCTRL/CUSTCTRL.CPP.

#include <arcdlg.h>

Inheritance diagram for ArcballCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~ArcballCallback ()
virtual void  StartDrag ()=0
virtual void  EndDrag ()=0
virtual void  Drag (Quat q, BOOL buttonUp)=0
virtual void  CancelDrag ()=0
virtual void  BeingDestroyed ()=0

Constructor & Destructor Documentation

virtual ~ArcballCallback ( ) [inline, virtual]
Remarks:
Destructor.
{;}

Member Function Documentation

virtual void StartDrag ( ) [pure virtual]
Remarks:
This method is called when a drag operation begins. The developer may want to save the start state at this point.
virtual void EndDrag ( ) [pure virtual]
Remarks:
This method is called when a drag operation ends.
virtual void Drag ( Quat  q,
BOOL  buttonUp 
) [pure virtual]
Remarks:
This method is called during a drag operation.
Parameters:
Quat q

The relative rotation from the start rotation.

BOOL buttonUp

If TRUE this indicates if the mouse button is up (has been released); if FALSE the button is down.
virtual void CancelDrag ( ) [pure virtual]
Remarks:
This method is called when the right mouse button is clicked during a drag operation to cancel it.
virtual void BeingDestroyed ( ) [pure virtual]
Remarks:
This method is called if the dialog box window was closed. Note that developers should not call ArcballDialog::DeleteThis() from inside this method.

ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback
ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback ArcballCallback