VisioMove  2.1.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends Pages
VgApplication::Vg3DManipulator Class Referenceabstract

Allows to customize the Vg3DManipulator. More...

Inheritance diagram for VgApplication::Vg3DManipulator:
Inheritance graph

Public Member Functions

virtual std::string getType () const =0
 
virtual bool getBoundaries (VgEngine::VgPosition &pMinimumPosition, VgEngine::VgPosition &pMaximumPosition) const =0
 Retrieves the current boundaries of the camera. More...
 
virtual bool setBoundaries (const VgEngine::VgPosition &pMinimumPosition, const VgEngine::VgPosition &pMaximumPosition)=0
 Set the boundaries where the camera can move. More...
 
- Public Member Functions inherited from VgApplication::VgManipulator
virtual ~VgManipulator ()
 

Protected Member Functions

virtual ~Vg3DManipulator ()
 
- Protected Member Functions inherited from VgApplication::VgManipulator
 VgManipulator ()
 

Detailed Description

Allows to customize the Vg3DManipulator.

Remarks
The default manipulator for most maps is the "2D" manipulator.

For example, if you wanted to change the minimum altitude to 100

std::string lCurrentManipulator = lApplication->editManipulatorManager()->getCurrentManipulator();
VgApplication::VgManipulator* lManipulator = lApplication->editManipulatorManager()->editManipulatorObject(lCurrentManipulator);
if (lManipulator != NULL || lCurrentManipulator == "3D")
{
bool lStatus = l3DManipulator->getBoundaries(lMin,lMax);
lMin.mZOrAltitude = 100;
bool lStatus = l3DManipulator->setBoundaries(lMin,lMax);
}
Version
2.1.0

Constructor & Destructor Documentation

virtual VgApplication::Vg3DManipulator::~Vg3DManipulator ( )
inlineprotectedvirtual

Member Function Documentation

virtual bool VgApplication::Vg3DManipulator::getBoundaries ( VgEngine::VgPosition pMinimumPosition,
VgEngine::VgPosition pMaximumPosition 
) const
pure virtual

Retrieves the current boundaries of the camera.

Parameters
pMinimumPositionUpdates with the minimum latitude, longitude, and altitude the camera is allowed to move.
pMaximumPositionUpdates with the maximum latitude, longitude, and altitude the camera is allowed to move
Returns
true.
virtual std::string VgApplication::Vg3DManipulator::getType ( ) const
pure virtual
Returns
The type identifer of the Vg3DManipulator class.

Implements VgApplication::VgManipulator.

virtual bool VgApplication::Vg3DManipulator::setBoundaries ( const VgEngine::VgPosition pMinimumPosition,
const VgEngine::VgPosition pMaximumPosition 
)
pure virtual

Set the boundaries where the camera can move.

If the current camera position is outside this new boundary, the camera will be moved inside this new area.

The original values for the manipulators are set on the vg_config.xml or via the default values of the dataset It is usually smaller than that found on the dataset.

Remarks
you can use this URL https://developers.google.com/maps/documentation/utilities/polylineutility to try out different values
Setting the minimum and maximum altitude (mZOrAltitude) to be the same will still allow some interaction with the manipulator due to the "bounce" effect when one reaches the limits.
The actual altitude boundaries are affected by other internal parameters (notably mMinimumDistanceFromGround which usually has value of 2)
Parameters
pMinimumPositionMinimum latitude, longitude, and altitude the camera is allowed to move.
pMaximumPositionMaximum latitude, longitude, and altitude the camera is allowed to move. It supposes the all the values are greater than the values in pMinimumPosition
Returns
true.
See Also
VgEngine::VgIDatabase::getCurrentDatasetDescriptor

The documentation for this class was generated from the following file:
VisioMove 2.1.5, Visioglobe® 2015