#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) |
| MeshSelection::MeshSelection | ( | ) |
References setCallback().
| MeshSelection::~MeshSelection | ( | ) |
References getViewer(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
| void MeshSelection::clearSelection | ( | ) |
References getViewProviders().
Referenced by ReverseEngineeringGui::SegmentationManual::createSegment(), MeshGui::RemoveComponents::on_deselectAll_clicked(), ReverseEngineeringGui::SegmentationManual::on_deselectAll_clicked(), MeshGui::RemoveComponents::reject(), ReverseEngineeringGui::SegmentationManual::reject(), MeshGui::ParametersDialog::~ParametersDialog(), and MeshGui::Selection::~Selection().
| bool MeshSelection::deleteSelection | ( | ) |
| 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.
| void MeshSelection::deselectComponent | ( | int | size | ) |
| void MeshSelection::deselectTriangle | ( | ) |
References getViewer(), startInteractiveCallback(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
Referenced by MeshGui::RemoveComponents::on_deselectTriangle_clicked().
| void MeshSelection::fullSelection | ( | ) |
| std::vector< App::DocumentObject * > MeshSelection::getObjects | ( | ) | const |
References App::Application::getActiveDocument(), App::GetApplication(), and Base::Persistence::getClassTypeId().
Referenced by MeshGui::Selection::getObjects(), and getViewProviders().
|
protected |
References Gui::Application::activeDocument(), Base::BaseClass::getClassTypeId(), getViewer(), Gui::Application::Instance, and OfflineRenderingUtils::viewer().
Referenced by deselectTriangle(), getViewer(), prepareFreehandSelection(), selectTriangle(), setEnabledViewerSelection(), stopSelection(), and ~MeshSelection().
|
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().
| void MeshSelection::invertSelection | ( | ) |
References getViewProviders().
Referenced by MeshGui::RemoveComponents::invertSelection().
| bool MeshSelection::isCheckedOnlyPointToUserTriangles | ( | ) | const |
| bool MeshSelection::isCheckedOnlyVisibleTriangles | ( | ) | const |
|
protected |
References draftgeoutils.intersections::connect(), getViewer(), Gui::FreehandSelection::setClosed(), Gui::PolyPickerSelection::setColor(), Gui::PolyPickerSelection::setLineWidth(), startInteractiveCallback(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().
Referenced by startDeselection(), and startSelection().
| 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().
| void MeshSelection::selectTriangle | ( | ) |
| void MeshSelection::setAddComponentOnClick | ( | bool | on | ) |
|
protected |
Referenced by MeshSelection().
| void MeshSelection::setCheckOnlyPointToUserTriangles | ( | bool | on | ) |
Referenced by MeshGui::RemoveComponents::on_screenTriangles_toggled(), ReverseEngineeringGui::SegmentationManual::on_screenTriangles_toggled(), MeshGui::ParametersDialog::ParametersDialog(), MeshGui::RemoveComponents::RemoveComponents(), ReverseEngineeringGui::SegmentationManual::SegmentationManual(), and MeshGui::Selection::Selection().
| void MeshSelection::setCheckOnlyVisibleTriangles | ( | bool | on | ) |
Referenced by MeshGui::RemoveComponents::on_visibleTriangles_toggled(), ReverseEngineeringGui::SegmentationManual::on_visibleTriangles_toggled(), MeshGui::ParametersDialog::ParametersDialog(), MeshGui::RemoveComponents::RemoveComponents(), ReverseEngineeringGui::SegmentationManual::SegmentationManual(), and MeshGui::Selection::Selection().
| 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().
| void MeshSelection::setObjects | ( | const std::vector< Gui::SelectionObject > & | obj | ) |
| void MeshSelection::setRemoveComponentOnClick | ( | bool | on | ) |
| void MeshSelection::setViewer | ( | Gui::View3DInventorViewer * | v | ) |
| void MeshSelection::startDeselection | ( | ) |
References prepareFreehandSelection().
Referenced by MeshGui::RemoveComponents::on_deselectRegion_clicked().
|
protected |
References OfflineRenderingUtils::viewer().
Referenced by deselectTriangle(), prepareFreehandSelection(), and selectTriangle().
| void MeshSelection::startSelection | ( | ) |
|
protected |
References OfflineRenderingUtils::viewer().
Referenced by deselectTriangle(), prepareFreehandSelection(), selectTriangle(), stopSelection(), and ~MeshSelection().
| void MeshSelection::stopSelection | ( | ) |
References getViewer(), stopInteractiveCallback(), and OfflineRenderingUtils::viewer().