#include <ecvGlobalShiftManager.h>
Helper class to handle big coordinates shift/scale (typically while loading entities)
Definition at line 26 of file ecvGlobalShiftManager.h.
◆ Mode
Strategy to handle coordinates shift/scale.
| Enumerator |
|---|
| NO_DIALOG | |
| NO_DIALOG_AUTO_SHIFT | |
| DIALOG_IF_NECESSARY | |
| ALWAYS_DISPLAY_DIALOG | |
Definition at line 29 of file ecvGlobalShiftManager.h.
◆ BestScale()
| static double ecvGlobalShiftManager::BestScale |
( |
double |
d | ) |
|
|
static |
Suggests a scale for a given dimension (e.g. diagonal) in global coordinate space
◆ BestShift()
Suggests a shift for a given point expressed in global coordinate space.
◆ GetLast() [1/2]
| static bool ecvGlobalShiftManager::GetLast |
( |
ShiftInfo & |
info | ) |
|
|
static |
◆ GetLast() [2/2]
| static bool ecvGlobalShiftManager::GetLast |
( |
std::vector< ShiftInfo > & |
infos | ) |
|
|
static |
◆ Handle()
| static bool ecvGlobalShiftManager::Handle |
( |
const CCVector3d & |
P, |
|
|
double |
diagonal, |
|
|
Mode |
mode, |
|
|
bool |
useInputCoordinatesShiftIfPossible, |
|
|
CCVector3d & |
coordinatesShift, |
|
|
bool * |
preserveCoordinateShift, |
|
|
double * |
coordinatesScale, |
|
|
bool * |
applyAll = 0 |
|
) |
| |
|
static |
◆ MaxBoundgBoxDiagonal()
| static double ecvGlobalShiftManager::MaxBoundgBoxDiagonal |
( |
| ) |
|
|
inlinestatic |
◆ MaxCoordinateAbsValue()
| static double ecvGlobalShiftManager::MaxCoordinateAbsValue |
( |
| ) |
|
|
inlinestatic |
◆ NeedRescale()
| static bool ecvGlobalShiftManager::NeedRescale |
( |
double |
d | ) |
|
|
static |
Returns whether a particular dimension (e.g. diagonal) is too big or not.
◆ NeedShift() [1/2]
| static bool ecvGlobalShiftManager::NeedShift |
( |
const CCVector3d & |
P | ) |
|
|
static |
◆ NeedShift() [2/2]
| static bool ecvGlobalShiftManager::NeedShift |
( |
double |
d | ) |
|
|
static |
Returns whether a particular point coordinate is too big or not.
◆ SetMaxBoundgBoxDiagonal()
| static void ecvGlobalShiftManager::SetMaxBoundgBoxDiagonal |
( |
double |
value | ) |
|
|
inlinestatic |
◆ SetMaxCoordinateAbsValue()
| static void ecvGlobalShiftManager::SetMaxCoordinateAbsValue |
( |
double |
value | ) |
|
|
inlinestatic |
◆ StoreShift()
| static void ecvGlobalShiftManager::StoreShift |
( |
const CCVector3d & |
shift, |
|
|
double |
scale, |
|
|
bool |
preserve = true |
|
) |
| |
|
static |
Adds a new shift / scale couple.
◆ MAX_COORDINATE_ABS_VALUE
| double ecvGlobalShiftManager::MAX_COORDINATE_ABS_VALUE |
|
staticprotected |
◆ MAX_DIAGONAL_LENGTH
| double ecvGlobalShiftManager::MAX_DIAGONAL_LENGTH |
|
staticprotected |
The documentation for this class was generated from the following file: