VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
virtual | ~VgIManipulatorManager () |
virtual bool | selectManipulator (const std::string &pName)=0 |
virtual std::string | getCurrentManipulator () const =0 |
virtual VgApplication::VgManipulator * | editManipulatorObject (const std::string &pManipulatorName)=0 |
Protected Member Functions | |
VgIManipulatorManager () | |
The VgIManipulatorManager interface is used to choose the way the user will interact with the Open GL surface.
Supported manipulators Currently, the following manipulators are supported:
For example, the "3D" manipulator supports various user-interactions on a touch-screen :
The below code snippets demonstrates how to select the "3D" manipulator.
|
inlineprotected |
Constructor.
|
inlinevirtual |
Destructor.
References editManipulatorObject(), getCurrentManipulator(), and selectManipulator().
|
pure virtual |
Returns a VgApplication::VgManipulator instance given its name. It returns NULL if the specified manipulator has no public interface.
pManipulatorName | Name of the manipulator to retrieve. |
Referenced by ~VgIManipulatorManager().
|
pure virtual |
Returns the current manipulator's name, should be called after VgEngine::VgIDatabase::selectDataset()
The default manipulator for maps is the 2D manipulator, it can be different for other datasets.
Referenced by ~VgIManipulatorManager().
|
pure virtual |
Selects the current manipulator.
Having an active manipulator is almost always desired to provide the user with a mechanism to interact with the scene. Interaction is handled intuitively for the various hardware. For touch-screen devices, the view can be manipulated by dragging a finger. For other devices, view manipulation can be detected via the keypad.
pName | The name of the manipulator. Supported manipulators are: "2D", "3D", "animation", "simpleGesture", "simpleTrackball" |
Referenced by ~VgIManipulatorManager().