Loading [MathJax]/extensions/tex2jax.js
OGS
SurfaceExtractionDialog Class Reference

Detailed Description

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

Definition at line 27 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. More...
 
void reject () override
 Instructions if the Cancel-Button has been pressed. More...
 

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 36 of file SurfaceExtractionDialog.h.

36 { return _dir; }

References _dir.

Referenced by MeshView::extractSurfaceMesh().

◆ getTolerance()

int SurfaceExtractionDialog::getTolerance ( ) const
inline

Definition at line 35 of file SurfaceExtractionDialog.h.

35 { return _tolerance; }

References _tolerance.

Referenced by MeshView::extractSurfaceMesh().

◆ reject

void SurfaceExtractionDialog::reject ( )
inlineoverrideprivateslot

Instructions if the Cancel-Button has been pressed.

Definition at line 43 of file SurfaceExtractionDialog.h.

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

Member Data Documentation

◆ _dir

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

Definition at line 47 of file SurfaceExtractionDialog.h.

Referenced by accept(), and getNormal().

◆ _tolerance

int SurfaceExtractionDialog::_tolerance {90}
private

Definition at line 46 of file SurfaceExtractionDialog.h.

Referenced by accept(), and getTolerance().


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