 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
41 virtual void setGlobalShift(
const CCVector3d& shift);
50 virtual void setGlobalScale(
double scale);
57 const CCVector3d& globalShift = getGlobalShift();
58 return (globalShift.
x != 0 || globalShift.
y != 0 ||
59 globalShift.
z != 0 || getGlobalScale() != 1.0);
66 return Plocal.
toDouble() / getGlobalScale() - getGlobalShift();
73 return (Pglobal.
toDouble() + getGlobalShift()) * getGlobalScale();
79 Pglobal.
toDouble() * getGlobalScale() + getGlobalShift();
85 GlobalBoundingBox
getOwnGlobalBB(
bool withGLFeatures =
false)
override;
89 bool saveShiftInfoToFile(QFile& out)
const;
91 bool loadShiftInfoFromFile(QFile& in);
normal_z x
Definition: my_point_types.h:165
Type x
Definition: CVGeom.h:137
double m_globalScale
Global scale (typically applied at loading time)
Definition: ecvShiftedObject.h:97
bool isShifted() const
Returns whether the cloud is shifted or not.
Definition: ecvShiftedObject.h:56
virtual GlobalBoundingBox getOwnGlobalBB(bool withGLFeatures=false)
Definition: ecvHObject.cpp:1654
Vector3Tpl< PointCoordinateType > toPC() const
Definition: CVGeom.h:263
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
normal_z y
Definition: my_point_types.h:168
Vector3Tpl< double > toDouble() const
Cast operator to a double vector (explicit call version)
Definition: CVGeom.h:255
CCVector3 toLocal3pc(const Vector3Tpl< T > &Pglobal) const
Returns the point projected into the local (shifted) coordinates system.
Definition: ecvShiftedObject.h:77
CCVector3d m_globalShift
Global shift (typically applied at loading time)
Definition: ecvShiftedObject.h:94
Shifted entity interface.
Definition: ecvShiftedObject.h:18
Type z
Definition: CVGeom.h:137
CCVector3d toGlobal3d(const Vector3Tpl< T > &Plocal) const
Returns the point back-projected into the original coordinates system.
Definition: ecvShiftedObject.h:64
CCVector3d toLocal3d(const Vector3Tpl< T > &Pglobal) const
Returns the point projected into the local (shifted) coordinates system.
Definition: ecvShiftedObject.h:71
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
#define CV_DB_LIB_API
Definition: CV_db.h:15
normal_z z
Definition: my_point_types.h:165
std::string name
Definition: FileIOFactory.cpp:129