OGS
SurfaceExtractionDialog Class Reference

Detailed Description

A dialog window for managing properties for writing meshes to files.

Definition at line 29 of file SurfaceExtractionDialog.h.

#include <SurfaceExtractionDialog.h>

Inheritance diagram for SurfaceExtractionDialog:
[legend]
Collaboration diagram for SurfaceExtractionDialog:
[legend]

Public Member Functions

 SurfaceExtractionDialog (QDialog *parent=nullptr)
 
 ~SurfaceExtractionDialog () override=default
 
int getTolerance () const
 
Eigen::Vector3d const & getNormal () const
 

Private Slots

void accept () override
 Instructions if the OK-Button has been pressed.
 
void reject () override
 Instructions if the Cancel-Button has been pressed.
 

Private Attributes

int _tolerance {90}
 
Eigen::Vector3d _dir {0, 0, -1}
 

Constructor & Destructor Documentation

◆ SurfaceExtractionDialog()

SurfaceExtractionDialog::SurfaceExtractionDialog ( QDialog * parent = nullptr)
explicit

Definition at line 19 of file SurfaceExtractionDialog.cpp.

20 : QDialog(parent)
21{
22 setupUi(this);
23 this->xNormalEdit->setValidator(
24 new QDoubleValidator(-1, 1, 3, xNormalEdit));
25 this->yNormalEdit->setValidator(
26 new QDoubleValidator(-1, 1, 3, yNormalEdit));
27 this->zNormalEdit->setValidator(
28 new QDoubleValidator(-1, 1, 3, zNormalEdit));
29}

◆ ~SurfaceExtractionDialog()

SurfaceExtractionDialog::~SurfaceExtractionDialog ( )
overridedefault

Member Function Documentation

◆ accept

void SurfaceExtractionDialog::accept ( )
overrideprivateslot

Instructions if the OK-Button has been pressed.

Definition at line 31 of file SurfaceExtractionDialog.cpp.

32{
33 _dir = Eigen::Vector3d({xNormalEdit->text().toDouble(),
34 yNormalEdit->text().toDouble(),
35 zNormalEdit->text().toDouble()});
36 _tolerance = degreesSpinBox->text().toInt();
37
38 this->done(QDialog::Accepted);
39}

References _dir, and _tolerance.

◆ getNormal()

Eigen::Vector3d const & SurfaceExtractionDialog::getNormal ( ) const
inline

Definition at line 38 of file SurfaceExtractionDialog.h.

38{ return _dir; }

References _dir.

Referenced by MeshView::extractSurfaceMesh().

◆ getTolerance()

int SurfaceExtractionDialog::getTolerance ( ) const
inline

Definition at line 37 of file SurfaceExtractionDialog.h.

37{ return _tolerance; }

References _tolerance.

Referenced by MeshView::extractSurfaceMesh().

◆ reject

void SurfaceExtractionDialog::reject ( )
inlineoverrideprivateslot

Instructions if the Cancel-Button has been pressed.

Definition at line 45 of file SurfaceExtractionDialog.h.

45{ this->done(QDialog::Rejected); };

Member Data Documentation

◆ _dir

Eigen::Vector3d SurfaceExtractionDialog::_dir {0, 0, -1}
private

Definition at line 49 of file SurfaceExtractionDialog.h.

49{0, 0, -1};

Referenced by accept(), and getNormal().

◆ _tolerance

int SurfaceExtractionDialog::_tolerance {90}
private

Definition at line 48 of file SurfaceExtractionDialog.h.

48{90};

Referenced by accept(), and getTolerance().


The documentation for this class was generated from the following files: