Non-modal dialog to de/select components, regions, the complete or single faces of a mesh and delete them. More...
#include <RemoveComponents.h>
Public Slots | |
void | on_deselectAll_clicked () |
void | on_deselectComponents_clicked () |
void | on_deselectRegion_clicked () |
void | on_deselectTriangle_clicked () |
void | on_selectAll_clicked () |
void | on_selectComponents_clicked () |
void | on_selectRegion_clicked () |
void | on_selectTriangle_clicked () |
Public Member Functions | |
void | deleteSelection () |
void | invertSelection () |
void | reject () |
RemoveComponents (QWidget *parent=0, Qt::WFlags fl=0) | |
~RemoveComponents () | |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
Non-modal dialog to de/select components, regions, the complete or single faces of a mesh and delete them.
Definition at line 48 of file RemoveComponents.h.
RemoveComponents::RemoveComponents | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
Definition at line 77 of file RemoveComponents.cpp.
References MeshGui::Ui_RemoveComponents::setupUi(), MeshGui::Ui_RemoveComponents::spDeselectComp, and MeshGui::Ui_RemoveComponents::spSelectComp.
RemoveComponents::~RemoveComponents | ( | ) |
Definition at line 88 of file RemoveComponents.cpp.
void RemoveComponents::changeEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 94 of file RemoveComponents.cpp.
References MeshGui::Ui_RemoveComponents::retranslateUi().
void RemoveComponents::deleteSelection | ( | ) |
Definition at line 216 of file RemoveComponents.cpp.
References Gui::Document::commitCommand(), Gui::Application::Instance, Mesh::Feature::Mesh, Gui::Document::openCommand(), and MeshCore::MeshFacet::SELECTED.
Referenced by MeshGui::TaskRemoveComponents::clicked().
void RemoveComponents::invertSelection | ( | ) |
Definition at line 241 of file RemoveComponents.cpp.
References Sketcher::end, Mesh2Shape::faces, MeshCore::MeshKernel::GetFacets(), Mesh::MeshObject::getKernel(), Gui::Application::Instance, Mesh::Feature::Mesh, and MeshCore::MeshFacet::SELECTED.
Referenced by MeshGui::TaskRemoveComponents::clicked().
void RemoveComponents::on_deselectAll_clicked | ( | ) | [slot] |
Definition at line 155 of file RemoveComponents.cpp.
References Gui::Application::Instance.
Referenced by reject().
void RemoveComponents::on_deselectComponents_clicked | ( | ) | [slot] |
Definition at line 191 of file RemoveComponents.cpp.
References Mesh2Shape::faces, Mesh::MeshObject::getKernel(), Gui::Application::Instance, Py::long, Mesh::Feature::Mesh, MeshCore::MeshComponents::OverEdge, and MeshGui::Ui_RemoveComponents::spDeselectComp.
void RemoveComponents::on_deselectRegion_clicked | ( | ) | [slot] |
Definition at line 121 of file RemoveComponents.cpp.
References cross_bitmap, CROSS_HEIGHT, CROSS_HOT_X, CROSS_HOT_Y, cross_mask_bitmap, CROSS_WIDTH, Gui::View3DInventorViewer::Lasso, and Gui::View3DInventorViewer::startSelection().
void RemoveComponents::on_deselectTriangle_clicked | ( | ) | [slot] |
Definition at line 276 of file RemoveComponents.cpp.
void RemoveComponents::on_selectAll_clicked | ( | ) | [slot] |
Definition at line 140 of file RemoveComponents.cpp.
References Mesh::MeshObject::countFacets(), Mesh2Shape::faces, Gui::Application::Instance, and Mesh::Feature::Mesh.
void RemoveComponents::on_selectComponents_clicked | ( | ) | [slot] |
Definition at line 166 of file RemoveComponents.cpp.
References Mesh2Shape::faces, Mesh::MeshObject::getKernel(), Gui::Application::Instance, Py::long, Mesh::Feature::Mesh, MeshCore::MeshComponents::OverEdge, and MeshGui::Ui_RemoveComponents::spSelectComp.
void RemoveComponents::on_selectRegion_clicked | ( | ) | [slot] |
Definition at line 102 of file RemoveComponents.cpp.
References cross_bitmap, CROSS_HEIGHT, CROSS_HOT_X, CROSS_HOT_Y, cross_mask_bitmap, CROSS_WIDTH, Gui::View3DInventorViewer::Lasso, and Gui::View3DInventorViewer::startSelection().
void RemoveComponents::on_selectTriangle_clicked | ( | ) | [slot] |
Definition at line 265 of file RemoveComponents.cpp.
void RemoveComponents::reject | ( | void | ) |
Definition at line 287 of file RemoveComponents.cpp.
References on_deselectAll_clicked().
Referenced by MeshGui::TaskRemoveComponents::clicked(), and MeshGui::RemoveComponentsDialog::reject().