FlowEngine 7.530
Photogrammetry Software Development Kit
|
Stores a 3d camera constraint. More...
#include <CameraConstraintInterface.h>
Public Member Functions | |
virtual FLE_DLL | ~CameraConstraintInterface ()=default |
Default virtual destructor. | |
virtual FLE_DLL void | setCamera (CameraInterface &camera)=0 |
virtual FLE_DLL void | getCamera (CameraInterface &camera) const =0 |
virtual FLE_DLL void | setPosition (const Point3 &constraint)=0 |
virtual FLE_DLL void | getPosition (Point3 &outConstraint) const =0 |
virtual FLE_DLL Result | setWeight (float weight)=0 |
Set the weight for this camera constraint. | |
virtual FLE_DLL void | getWeight (float &outWeight) const =0 |
Stores a 3d camera constraint.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Returns the camera associated with this constraint.
[in,out] | camera | a valid instance of a CameraInterface object. |
|
pure virtual |
Returns the 3D constraint for this camera constraint.
[out] | outConstraint | x-y-z constraint position in space. |
|
pure virtual |
Returns the 3D constraint weight for this camera constraint.
[out] | outWeight | constraint weight. |
|
pure virtual |
Changes the camera associated with this constraint.
[in] | camera | a valid instance of a CameraInterface object. |
|
pure virtual |
Set the 3D constraint for for this camera constraint.
[in] | constraint | x-y-z constraint position in space. |
|
pure virtual |
Set the weight for this camera constraint.
[in] | weight | constraint weight. The valid range is (0, inf). This value should be in inverse proportion to the precision of the coordinates, following this formula: weight = 5.0 * 0.3 / cpc
e.g. when using GPS coordinates (cpc == 10.0) then weight = 0.15
e.g. when using RTK coordinates (cpc == 0.3) then weight = 5.0
|
weight
is not in the valid range.