 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #include <ui_planeEditDlg.h>
28 public Ui::PlaneEditDlg {
static double s_width
Definition: ecvPlaneEditDlg.cpp:26
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
Type x
Definition: CVGeom.h:137
void pickPointAsCenter(bool)
Definition: ecvPlaneEditDlg.cpp:178
bool addListener(ccPickingListener *listener, bool exclusive=false, bool autoStartPicking=true, ecvDisplayTools::PICKING_MODE mode=ecvDisplayTools::POINT_OR_TRIANGLE_PICKING)
Adds a listener.
Definition: ecvPickingHub.cpp:104
ccPickingHub * m_pickingHub
Picking hub.
Definition: ecvPlaneEditDlg.h:63
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
virtual void onItemPicked(const PickedItem &pi)
Inherited from ccPickingListener.
Definition: ecvPlaneEditDlg.cpp:198
CCVector3 getCenter() const
Returns the center.
Definition: ecvPlane.h:56
static void ConvertNormalToDipAndDipDir(const CCVector3 &N, PointCoordinateType &dip_deg, PointCoordinateType &dipDir_deg)
Converts a normal vector to geological 'dip direction & dip' parameters.
Definition: ecvNormalVectors.cpp:848
Point/triangle picking listener interface.
Definition: ecvPickingListener.h:21
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvPlane.h:73
void saveParamsAndAccept()
Definition: ecvPlaneEditDlg.cpp:93
PointCoordinateType getXWidth() const
Returns 'X' width.
Definition: ecvPlane.h:50
static MainWindow * TheInstance()
Returns the unique instance of this object.
Definition: MainWindow.cpp:2037
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
static CCVector3 ConvertDipAndDipDirToNormal(PointCoordinateType dip_deg, PointCoordinateType dipDir_deg, bool upward=true)
Definition: ecvNormalVectors.cpp:892
void addToDB(const QStringList &filenames, QString fileFilter=QString(), bool displayDialog=true)
Definition: MainWindow.cpp:2152
void setXWidth(PointCoordinateType w, bool autoUpdate=true)
Sets 'X' width.
Definition: ecvPlane.h:61
static CCVector3d s_center(0, 0, 0)
ccPlaneEditDlg(ccPickingHub *pickingHub, QWidget *parent)
Default constructor.
Definition: ecvPlaneEditDlg.cpp:31
int width
Definition: FileIOFactory.cpp:142
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
Dialog to create (or edit the parameters) of a plane.
Definition: ecvPlaneEditDlg.h:26
#define slots
Definition: PythonPlugin.cpp:25
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
int height
Definition: FileIOFactory.cpp:143
ccHObject * entity
Definition: ecvPickingListener.h:30
3D Vector (templated version)
Definition: CVGeom.h:223
virtual void redrawDisplay(bool forceRedraw=true, bool only2D=false)
Redraws associated display.
Definition: ecvHObject.cpp:1734
Definition: sfEditDlg.h:16
void setYWidth(PointCoordinateType h, bool autoUpdate=true)
Sets 'Y' width.
Definition: ecvPlane.h:67
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
void initFromParameters(T alpha_rad, const Vector3Tpl< T > &axis3D, const Vector3Tpl< T > &t3D)
Inits transformation from a rotation axis, an angle and a translation.
Definition: ecvGLMatrixTpl.h:648
ccPlane * m_associatedPlane
Associated plane (if any)
Definition: ecvPlaneEditDlg.h:60
virtual ~ccPlaneEditDlg()
Destructor.
Definition: ecvPlaneEditDlg.cpp:89
void initWithPlane(ccPlane *plane)
Links this dialog with an existing plane.
Definition: ecvPlaneEditDlg.cpp:210
Type z
Definition: CVGeom.h:137
static double s_dipDir
Definition: ecvPlaneEditDlg.cpp:25
PointCoordinateType getYWidth() const
Returns 'Y' width.
Definition: ecvPlane.h:53
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
void updatePlane(ccPlane *plane)
Updates a plane with the current parameters.
Definition: ecvPlaneEditDlg.cpp:249
static double s_dip
Definition: ecvPlaneEditDlg.cpp:24
CCVector3 P3D
Definition: ecvPickingListener.h:32
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
void onNormalChanged(double)
Definition: ecvPlaneEditDlg.cpp:155
void updatePropertiesView()
Updates the 'Properties' view.
Definition: MainWindow.cpp:4988
Point/triangle picking hub.
Definition: ecvPickingHub.h:29
void onDipDirModified(bool)
Definition: ecvPlaneEditDlg.cpp:130
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
static bool s_upward
Definition: ecvPlaneEditDlg.cpp:28
static ccGLMatrixTpl< float > FromToRotation(const Vector3Tpl< float > &from, const Vector3Tpl< float > &to)
Creates a transformation matrix that rotates a vector to another.
Definition: ecvGLMatrixTpl.h:230
Eigen::Matrix3d rotation
Definition: VoxelGridIO.cpp:27
Picked item.
Definition: ecvPickingListener.h:26
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
void removeListener(ccPickingListener *listener, bool autoStopPickingIfLast=true)
Removes a listener.
Definition: ecvPickingHub.cpp:165
Plane (primitive)
Definition: ecvPlane.h:17
static double s_height
Definition: ecvPlaneEditDlg.cpp:27
void onDipDirChanged(double)
Definition: ecvPlaneEditDlg.cpp:134
QString toString(int precision=12, QChar separator=' ') const
Returns matrix as a string.
Definition: ecvGLMatrixTpl.h:502