#include <MeshSelection.h>
Public Member Functions | |
void | clearSelection () |
bool | deleteSelection () |
bool | deleteSelectionBorder () |
void | deselectComponent (int) |
void | deselectTriangle () |
void | fullSelection () |
std::vector< App::DocumentObject * > | getObjects () const |
void | invertSelection () |
bool | isCheckedOnlyPointToUserTriangles () const |
bool | isCheckedOnlyVisibleTriangles () const |
MeshSelection () | |
void | selectComponent (int) |
void | selectTriangle () |
void | setAddComponentOnClick (bool) |
void | setCheckOnlyPointToUserTriangles (bool) |
void | setCheckOnlyVisibleTriangles (bool) |
void | setEnabledViewerSelection (bool) |
void | setObjects (const std::vector< Gui::SelectionObject > &) |
void | setRemoveComponentOnClick (bool) |
void | setViewer (Gui::View3DInventorViewer *v) |
void | startDeselection () |
void | startSelection () |
void | stopSelection () |
~MeshSelection () | |
Protected Member Functions | |
Gui::View3DInventorViewer * | getViewer () const |
std::list< ViewProviderMesh * > | getViewProviders () const |
void | prepareFreehandSelection (bool, SoEventCallbackCB *cb) |
void | setCallback (SoEventCallbackCB *cb) |
void | startInteractiveCallback (Gui::View3DInventorViewer *viewer, SoEventCallbackCB *cb) |
void | stopInteractiveCallback (Gui::View3DInventorViewer *viewer) |
Constructor & Destructor Documentation
◆ MeshSelection()
MeshSelection::MeshSelection | ( | ) |
References setCallback().
◆ ~MeshSelection()
MeshSelection::~MeshSelection | ( | ) |
References getViewer(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
Member Function Documentation
◆ clearSelection()
void MeshSelection::clearSelection | ( | ) |
References getViewProviders().
Referenced by ReverseEngineeringGui::SegmentationManual::createSegment(), ReverseEngineeringGui::SegmentationManual::on_deselectAll_clicked(), MeshGui::RemoveComponents::on_deselectAll_clicked(), MeshGui::RemoveComponents::reject(), ReverseEngineeringGui::SegmentationManual::reject(), MeshGui::ParametersDialog::~ParametersDialog(), and MeshGui::Selection::~Selection().
◆ deleteSelection()
bool MeshSelection::deleteSelection | ( | ) |
◆ deleteSelectionBorder()
bool MeshSelection::deleteSelectionBorder | ( | ) |
References MeshCore::MeshAlgorithm::GetBorderPoints(), MeshCore::MeshKernel::GetFacets(), MeshCore::MeshAlgorithm::GetFacetsFlag(), Mesh::MeshObject::getKernel(), MeshCore::MeshKernel::GetPoints(), Mesh::PropertyMeshKernel::getValue(), getViewProviders(), Mesh::Feature::Mesh, MeshCore::MeshAlgorithm::ResetFacetFlag(), MeshCore::MeshAlgorithm::ResetPointFlag(), MeshCore::MeshFacet::SELECTED, MeshCore::MeshAlgorithm::SetFacetsFlag(), MeshCore::MeshAlgorithm::SetPointsFlag(), MeshCore::MeshPoint::VISIT, and MeshCore::MeshFacet::VISIT.
◆ deselectComponent()
void MeshSelection::deselectComponent | ( | int | size | ) |
◆ deselectTriangle()
void MeshSelection::deselectTriangle | ( | ) |
References getViewer(), startInteractiveCallback(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
Referenced by MeshGui::RemoveComponents::on_deselectTriangle_clicked().
◆ fullSelection()
void MeshSelection::fullSelection | ( | ) |
◆ getObjects()
std::vector< App::DocumentObject * > MeshSelection::getObjects | ( | ) | const |
References App::Application::getActiveDocument(), App::GetApplication(), and Base::Persistence::getClassTypeId().
Referenced by MeshGui::Selection::getObjects(), and getViewProviders().
◆ getViewer()
|
protected |
◆ getViewProviders()
|
protected |
References Base::Persistence::getClassTypeId(), getObjects(), Gui::Application::getViewProvider(), Gui::Application::Instance, and Gui::ViewProvider::isVisible().
Referenced by clearSelection(), deleteSelection(), deleteSelectionBorder(), deselectComponent(), fullSelection(), invertSelection(), and selectComponent().
◆ invertSelection()
void MeshSelection::invertSelection | ( | ) |
References getViewProviders().
Referenced by MeshGui::RemoveComponents::invertSelection().
◆ isCheckedOnlyPointToUserTriangles()
bool MeshSelection::isCheckedOnlyPointToUserTriangles | ( | ) | const |
◆ isCheckedOnlyVisibleTriangles()
bool MeshSelection::isCheckedOnlyVisibleTriangles | ( | ) | const |
◆ prepareFreehandSelection()
|
protected |
◆ selectComponent()
void MeshSelection::selectComponent | ( | int | size | ) |
References Mesh::MeshObject::getKernel(), Mesh::PropertyMeshKernel::getValuePtr(), getViewProviders(), Mesh::Feature::Mesh, MeshCore::MeshComponents::OverEdge, and MeshCore::MeshComponents::SearchForComponents().
Referenced by MeshGui::RemoveComponents::on_selectComponents_clicked(), and ReverseEngineeringGui::SegmentationManual::on_selectComponents_clicked().
◆ selectTriangle()
void MeshSelection::selectTriangle | ( | ) |
◆ setAddComponentOnClick()
void MeshSelection::setAddComponentOnClick | ( | bool | on | ) |
◆ setCallback()
|
protected |
Referenced by MeshSelection().
◆ setCheckOnlyPointToUserTriangles()
void MeshSelection::setCheckOnlyPointToUserTriangles | ( | bool | on | ) |
Referenced by ReverseEngineeringGui::SegmentationManual::on_screenTriangles_toggled(), MeshGui::RemoveComponents::on_screenTriangles_toggled(), MeshGui::ParametersDialog::ParametersDialog(), MeshGui::RemoveComponents::RemoveComponents(), ReverseEngineeringGui::SegmentationManual::SegmentationManual(), and MeshGui::Selection::Selection().
◆ setCheckOnlyVisibleTriangles()
void MeshSelection::setCheckOnlyVisibleTriangles | ( | bool | on | ) |
Referenced by ReverseEngineeringGui::SegmentationManual::on_visibleTriangles_toggled(), MeshGui::RemoveComponents::on_visibleTriangles_toggled(), MeshGui::ParametersDialog::ParametersDialog(), MeshGui::RemoveComponents::RemoveComponents(), ReverseEngineeringGui::SegmentationManual::SegmentationManual(), and MeshGui::Selection::Selection().
◆ setEnabledViewerSelection()
void MeshSelection::setEnabledViewerSelection | ( | bool | on | ) |
References getViewer(), and OfflineRenderingUtils::viewer().
Referenced by MeshGui::ParametersDialog::ParametersDialog(), MeshGui::RemoveComponents::reject(), ReverseEngineeringGui::SegmentationManual::reject(), MeshGui::RemoveComponents::RemoveComponents(), ReverseEngineeringGui::SegmentationManual::SegmentationManual(), MeshGui::Selection::Selection(), MeshGui::ParametersDialog::~ParametersDialog(), and MeshGui::Selection::~Selection().
◆ setObjects()
void MeshSelection::setObjects | ( | const std::vector< Gui::SelectionObject > & | obj | ) |
◆ setRemoveComponentOnClick()
void MeshSelection::setRemoveComponentOnClick | ( | bool | on | ) |
◆ setViewer()
void MeshSelection::setViewer | ( | Gui::View3DInventorViewer * | v | ) |
◆ startDeselection()
void MeshSelection::startDeselection | ( | ) |
References prepareFreehandSelection().
Referenced by MeshGui::RemoveComponents::on_deselectRegion_clicked().
◆ startInteractiveCallback()
|
protected |
References OfflineRenderingUtils::viewer().
Referenced by deselectTriangle(), prepareFreehandSelection(), and selectTriangle().
◆ startSelection()
void MeshSelection::startSelection | ( | ) |
◆ stopInteractiveCallback()
|
protected |
References OfflineRenderingUtils::viewer().
Referenced by deselectTriangle(), prepareFreehandSelection(), selectTriangle(), stopSelection(), and ~MeshSelection().
◆ stopSelection()
void MeshSelection::stopSelection | ( | ) |
References getViewer(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
The documentation for this class was generated from the following files:
- src/Mod/Mesh/Gui/MeshSelection.h
- src/Mod/Mesh/Gui/MeshSelection.cpp