41 bool useInputCoordinatesShiftIfPossible,
43 bool* preserveCoordinateShift,
44 double* coordinatesScale,
50 static bool NeedShift(
double d);
52 static bool NeedRescale(
double d);
58 static double BestScale(
double d);
64 MAX_COORDINATE_ABS_VALUE = value;
71 MAX_DIAGONAL_LENGTH = value;
75 static void StoreShift(
const CCVector3d& shift,
77 bool preserve =
true);
89 : shift(0, 0, 0), scale(1.0),
name(str), preserve(true) {}
92 : shift(T), scale(s),
name(str), preserve(true) {}
95 static bool GetLast(ShiftInfo& info);
96 static bool GetLast(std::vector<ShiftInfo>& infos);
Hierarchical CLOUDVIEWER Object.
static double MaxCoordinateAbsValue()
Returns the max coordinate (absolute) value.
static void SetMaxCoordinateAbsValue(double value)
Sets the max coordinate (absolute) value.
static void SetMaxBoundgBoxDiagonal(double value)
Sets the max bounding-box diagonal.
static double MAX_DIAGONAL_LENGTH
Mode
Strategy to handle coordinates shift/scale.
static double MaxBoundgBoxDiagonal()
Returns max bounding-box diagonal.
static double MAX_COORDINATE_ABS_VALUE
ShiftInfo(QString str=QString("unnamed"))
Default constructor.
ShiftInfo(QString str, const CCVector3d &T, double s=1.0)
Constructor from a vector and a scale value.