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

Allows to customize the Vg2DManipulator. More...

Inheritance diagram for VgApplication::Vg2DManipulator:
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...
 
virtual bool setBoundaries (const std::vector< VgEngine::VgPosition > &pPositions, bool pAutoComputeMaxAltitude)=0
 Set the boundaries where the camera can move. More...
 
- Public Member Functions inherited from VgApplication::VgManipulator
virtual ~VgManipulator ()
 

Protected Member Functions

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

Detailed Description

Allows to customize the Vg2DManipulator.

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 == "2D")
{
bool lStatus = l2DManipulator->getBoundaries(lMin,lMax);
lMin.mZOrAltitude = 100;
bool lStatus = l2DManipulator->setBoundaries(lMin,lMax);
}
Version
2.1.0

Constructor & Destructor Documentation

virtual VgApplication::Vg2DManipulator::~Vg2DManipulator ( )
inlineprotectedvirtual

Member Function Documentation

virtual bool VgApplication::Vg2DManipulator::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::Vg2DManipulator::getType ( ) const
pure virtual
Returns
The type identifer of the Vg2DManipulator class.

Implements VgApplication::VgManipulator.

virtual bool VgApplication::Vg2DManipulator::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.
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
virtual bool VgApplication::Vg2DManipulator::setBoundaries ( const std::vector< VgEngine::VgPosition > &  pPositions,
bool  pAutoComputeMaxAltitude 
)
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.
Parameters
pPositionsSet of positions used to compute the boundaries. Note: the boundaries will be the bounding box of these positions, not the exact polygon described by them.
pAutoComputeMaxAltitudePass true to compute the best altitude automatically, using VgICamera::getViewpointFromPositions.
Version
2.1.4

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