The ViewProviderMesh class offers the visualization of the mesh data structure and many algorithms to work on or edit the mesh. More...
#include <ViewProvider.h>
Public Member Functions | |
virtual void | attach (App::DocumentObject *) |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data. | |
virtual std::vector< std::string > | getDisplayModes (void) const |
returns a list of all possible modes | |
virtual QIcon | getIcon () const |
deliver the icon shown in the tree view | |
virtual Base::Type | getTypeId (void) const |
virtual void | setDisplayMode (const char *ModeName) |
Sets the correct display mode. | |
ViewProviderMesh () | |
virtual | ~ViewProviderMesh () |
Editing | |
void | addSelection (const std::vector< unsigned long > &) |
void | clearSelection () |
void | deleteSelection () |
void | deselectComponent (unsigned long facet) |
void | deselectFacet (unsigned long facet) |
bool | doubleClicked (void) |
is called by the tree if the user double click on the object | |
void | getFacetsFromPolygon (const std::vector< SbVec2f > &picked, Gui::View3DInventorViewer &Viewer, SbBool inner, std::vector< unsigned long > &indices) const |
std::vector< unsigned long > | getFacetsOfRegion (const SbViewportRegion &, const SbViewportRegion &, SoCamera *) const |
std::vector< unsigned long > | getVisibleFacets (const SbViewportRegion &, SoCamera *) const |
std::vector< unsigned long > | getVisibleFacetsAfterZoom (const SbBox2s &, const SbViewportRegion &, SoCamera *) const |
void | removeSelection (const std::vector< unsigned long > &) |
void | selectComponent (unsigned long facet) |
void | selectFacet (unsigned long facet) |
void | setSelection (const std::vector< unsigned long > &) |
Static Public Member Functions | |
static void | clipMeshCallback (void *ud, SoEventCallback *n) |
static void * | create (void) |
static bool | createToolMesh (const std::vector< SbVec2f > &rclPoly, const SbViewVolume &vol, const Base::Vector3f &rcNormal, std::vector< MeshCore::MeshGeomFacet > &) |
Creates a tool mesh from the previous picked polygon on the viewer. | |
static void | faceInfoCallback (void *ud, SoEventCallback *n) |
static void | fillHoleCallback (void *ud, SoEventCallback *n) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
static void | markPartCallback (void *ud, SoEventCallback *n) |
static void | partMeshCallback (void *ud, SoEventCallback *n) |
static void | segmMeshCallback (void *ud, SoEventCallback *n) |
static void | selectGLCallback (void *ud, SoEventCallback *n) |
Public Attributes | |
App::PropertyFloatConstraint | CreaseAngle |
App::PropertyEnumeration | Lighting |
App::PropertyColor | LineColor |
App::PropertyPercent | LineTransparency |
App::PropertyFloatConstraint | LineWidth |
App::PropertyBool | OpenEdges |
App::PropertyFloatConstraint | PointSize |
Protected Member Functions | |
virtual void | cutMesh (const std::vector< SbVec2f > &picked, Gui::View3DInventorViewer &Viewer, SbBool inner) |
virtual void | faceInfo (unsigned long facet) |
virtual void | fillHole (unsigned long facet) |
virtual SoNode * | getCoordNode () const |
virtual const App::PropertyData & | getPropertyData (void) const |
virtual SoShape * | getShapeNode () const |
void | highlightSelection () |
void | onChanged (const App::Property *prop) |
get called by the container whenever a property has been changed | |
virtual void | segmentMesh (const MeshCore::MeshKernel &toolMesh, const Base::Vector3f &normal, SbBool inner) |
virtual void | selectArea (short, short, short, short, const SbViewportRegion &, SoCamera *) |
bool | setEdit (int ModNum) |
Sets the edit mode. | |
void | setOpenEdgeColorFrom (const App::Color &col) |
virtual void | showOpenEdges (bool) |
virtual void | splitMesh (const MeshCore::MeshKernel &toolMesh, const Base::Vector3f &normal, SbBool inner) |
void | unhighlightSelection () |
void | unsetEdit (int ModNum) |
Unsets the edit mode. | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoDrawStyle * | pcLineStyle |
SoMaterialBinding * | pcMatBinding |
SoSeparator * | pcOpenEdge |
SoDrawStyle * | pcPointStyle |
SoMaterial * | pLineColor |
SoBaseColor * | pOpenColor |
SoShapeHints * | pShapeHints |
The ViewProviderMesh class offers the visualization of the mesh data structure and many algorithms to work on or edit the mesh.
Definition at line 102 of file Mod/Mesh/Gui/ViewProvider.h.
ViewProviderMesh::ViewProviderMesh | ( | ) |
Definition at line 216 of file Mod/Mesh/Gui/ViewProvider.cpp.
References ADD_PROPERTY, draftlibs::fcvec::angle(), Gui::SoFCSelection::BOX, SketcherExample::f, Mesh::floatRange, Gui::WindowParameter::getDefaultParameter(), App::Color::getPackedValue(), intPercent, MeshCore::MeshIO::OVERALL, and App::Color::setPackedValue().
ViewProviderMesh::~ViewProviderMesh | ( | ) | [virtual] |
Definition at line 294 of file Mod/Mesh/Gui/ViewProvider.cpp.
References pcLineStyle, pcMatBinding, pcPointStyle, pLineColor, pOpenColor, and pShapeHints.
void ViewProviderMesh::addSelection | ( | const std::vector< unsigned long > & | indices | ) |
Definition at line 1395 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::addFacetsToSelection(), highlightSelection(), and Gui::ViewProviderDocumentObject::pcObject.
void ViewProviderMesh::attach | ( | App::DocumentObject * | pcFeat | ) | [virtual] |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data.
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 374 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), offset(), MeshCore::MeshIO::OVERALL, Gui::ViewProviderGeometryObject::pcHighlight, pcLineStyle, pcMatBinding, pcPointStyle, Gui::ViewProviderGeometryObject::pcShapeMaterial, pLineColor, and pShapeHints.
void ViewProviderMesh::clearSelection | ( | void | ) |
Definition at line 1413 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::clearFacetSelection(), Gui::ViewProviderDocumentObject::pcObject, and unhighlightSelection().
void ViewProviderMesh::clipMeshCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 584 of file Mod/Mesh/Gui/ViewProvider.cpp.
References cutMesh(), Gui::ViewProvider::finishEditing(), getClassTypeId(), Gui::ViewProvider::getEditingMode(), Gui::View3DInventorViewer::getGLPolygon(), Gui::View3DInventorViewer::getViewProvidersOfType(), Gui::Application::Instance, Gui::View3DInventorViewer::removeEventCallback(), and Gui::View3DInventorViewer::setEditing().
Referenced by CmdMeshPolyCut::activated().
void * MeshGui::ViewProviderMesh::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
bool ViewProviderMesh::createToolMesh | ( | const std::vector< SbVec2f > & | rclPoly, | |
const SbViewVolume & | vol, | |||
const Base::Vector3f & | rcNormal, | |||
std::vector< MeshCore::MeshGeomFacet > & | aFaces | |||
) | [static] |
Creates a tool mesh from the previous picked polygon on the viewer.
Definition at line 498 of file Mod/Mesh/Gui/ViewProvider.cpp.
References MeshCore::MeshGeomFacet::_aclPoints, MeshCore::MeshGeomFacet::Area(), MeshCore::MeshGeomFacet::CalcNormal(), SketcherExample::f, Mesh2Shape::faces, MeshCore::AbstractPolygonTriangulator::GetFacets(), MeshCore::MeshGeomFacet::GetNormal(), Base::Vector3< _Precision >::Set(), MeshCore::AbstractPolygonTriangulator::SetPolygon(), boost::numeric::bindings::atlas::swap(), and MeshCore::AbstractPolygonTriangulator::TriangulatePolygon().
Referenced by getFacetsFromPolygon(), MeshGui::ViewProviderMeshNode::handleEvent(), partMeshCallback(), and segmMeshCallback().
void ViewProviderMesh::cutMesh | ( | const std::vector< SbVec2f > & | picked, | |
Gui::View3DInventorViewer & | Viewer, | |||
SbBool | inner | |||
) | [protected, virtual] |
Definition at line 1005 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::PropertyMeshKernel::deleteFacetIndices(), getFacetsFromPolygon(), Gui::ViewProviderDocumentObject::pcObject, and App::DocumentObject::purgeTouched().
Referenced by clipMeshCallback().
void ViewProviderMesh::deleteSelection | ( | ) |
Definition at line 1420 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::deleteFacets(), Mesh::PropertyMeshKernel::finishEditing(), Mesh::MeshObject::getFacetsFromSelection(), Mesh::PropertyMeshKernel::getValue(), Gui::ViewProviderDocumentObject::pcObject, App::DocumentObject::purgeTouched(), Mesh::PropertyMeshKernel::startEditing(), and unhighlightSelection().
void ViewProviderMesh::deselectComponent | ( | unsigned long | facet | ) |
void ViewProviderMesh::deselectFacet | ( | unsigned long | facet | ) |
Definition at line 1332 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Color::b, Mesh::MeshObject::countFacets(), App::Color::g, App::PropertyColor::getValue(), highlightSelection(), Py::int, pcMatBinding, Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProviderGeometryObject::pcShapeMaterial, MeshCore::MeshIO::PER_FACE, App::Color::r, Mesh::MeshObject::removeFacetsFromSelection(), and Gui::ViewProviderGeometryObject::ShapeColor.
bool MeshGui::ViewProviderMesh::doubleClicked | ( | void | ) | [inline, virtual] |
is called by the tree if the user double click on the object
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 128 of file Mod/Mesh/Gui/ViewProvider.h.
void ViewProviderMesh::faceInfo | ( | unsigned long | facet | ) | [protected, virtual] |
Definition at line 1235 of file Mod/Mesh/Gui/ViewProvider.cpp.
References MeshCore::MeshGeomFacet::_aclPoints, MeshCore::MeshFacet::_aulNeighbours, MeshCore::MeshFacet::_aulPoints, Base::Console(), MeshCore::MeshKernel::GetFacet(), MeshCore::MeshKernel::GetFacets(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), Mesh::Feature::Mesh, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by faceInfoCallback().
void ViewProviderMesh::faceInfoCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 1078 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Gui::View3DInventorViewer::addFlag(), Base::Console(), faceInfo(), getClassTypeId(), getShapeNode(), Gui::ViewProvider::getTypeId(), Gui::View3DInventorViewer::getViewProviderByPath(), Base::Type::isDerivedFrom(), RobotExample::pos, Gui::View3DInventorViewer::removeEventCallback(), Gui::View3DInventorViewer::setEditing(), Gui::Flag::setOrigin(), Gui::Flag::setText(), and Gui::FlagLayout::TopRight.
Referenced by CmdMeshEvaluateFacet::activated().
void ViewProviderMesh::fillHole | ( | unsigned long | facet | ) | [protected, virtual] |
Definition at line 1253 of file Mod/Mesh/Gui/ViewProvider.cpp.
References MeshCore::MeshKernel::CountPoints(), Mesh2Shape::faces, MeshCore::MeshAlgorithm::FillupHole(), Gui::WindowParameter::getDefaultParameter(), MeshCore::MeshAlgorithm::GetMeshBorder(), Gui::ViewProviderDocumentObject::getObject(), Gui::Application::Instance, Py::int, Mesh::Feature::Mesh, and MeshCore::MeshAlgorithm::SplitBoundaryLoops().
Referenced by fillHoleCallback().
void ViewProviderMesh::fillHoleCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 1125 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Base::Console(), fillHole(), getClassTypeId(), getShapeNode(), Gui::ViewProvider::getTypeId(), Gui::View3DInventorViewer::getViewProviderByPath(), Base::Type::isDerivedFrom(), RobotExample::pos, Gui::View3DInventorViewer::removeEventCallback(), and Gui::View3DInventorViewer::setEditing().
Referenced by CmdMeshFillInteractiveHole::activated().
Base::Type MeshGui::ViewProviderMesh::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
Referenced by clipMeshCallback(), faceInfoCallback(), fillHoleCallback(), markPartCallback(), partMeshCallback(), MeshGui::DlgSettingsMeshView::saveSettings(), segmMeshCallback(), and selectGLCallback().
SoNode * ViewProviderMesh::getCoordNode | ( | ) | const [protected, virtual] |
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, and MeshGui::ViewProviderMeshFaceSet.
Definition at line 365 of file Mod/Mesh/Gui/ViewProvider.cpp.
Referenced by getFacetsOfRegion(), and getVisibleFacets().
std::vector< std::string > ViewProviderMesh::getDisplayModes | ( | void | ) | const [virtual] |
returns a list of all possible modes
Reimplemented from Gui::ViewProviderDocumentObject.
Reimplemented in MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 472 of file Mod/Mesh/Gui/ViewProvider.cpp.
void ViewProviderMesh::getFacetsFromPolygon | ( | const std::vector< SbVec2f > & | picked, | |
Gui::View3DInventorViewer & | Viewer, | |||
SbBool | inner, | |||
std::vector< unsigned long > & | indices | |||
) | const |
Definition at line 785 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Base::Polygon2D::Add(), FemExample::b, Base::Console(), createToolMesh(), Gui::View3DInventorViewer::getNearPlane(), Mesh::PropertyMeshKernel::getValue(), Gui::ViewProviderDocumentObject::pcObject, and Base::Sequencer().
Referenced by cutMesh().
std::vector< unsigned long > ViewProviderMesh::getFacetsOfRegion | ( | const SbViewportRegion & | select, | |
const SbViewportRegion & | region, | |||
SoCamera * | camera | |||
) | const |
Definition at line 842 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh2Shape::faces, getCoordNode(), getShapeNode(), and Gui::SoGLSelectAction::indices.
Referenced by selectArea().
QIcon ViewProviderMesh::getIcon | ( | void | ) | const [virtual] |
deliver the icon shown in the tree view
Reimplemented from Gui::ViewProvider.
Definition at line 425 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Gui::BitmapFactory(), and px.
const App::PropertyData & MeshGui::ViewProviderMesh::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
const App::PropertyData * MeshGui::ViewProviderMesh::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
SoShape * ViewProviderMesh::getShapeNode | ( | ) | const [protected, virtual] |
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, and MeshGui::ViewProviderMeshFaceSet.
Definition at line 360 of file Mod/Mesh/Gui/ViewProvider.cpp.
Referenced by faceInfoCallback(), fillHoleCallback(), getFacetsOfRegion(), getVisibleFacets(), and markPartCallback().
Base::Type MeshGui::ViewProviderMesh::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
std::vector< unsigned long > ViewProviderMesh::getVisibleFacets | ( | const SbViewportRegion & | vp, | |
SoCamera * | camera | |||
) | const |
Definition at line 939 of file Mod/Mesh/Gui/ViewProvider.cpp.
References draftlibs::fcgeo::bind(), RobotExampleTrajectoryOutOfShapes::count, Mesh::MeshObject::countFacets(), SketcherExample::f, Mesh2Shape::faces, getCoordNode(), getShapeNode(), Mesh::PropertyMeshKernel::getValue(), Gui::SoFCOffscreenRenderer::instance(), Mesh2Shape::mesh, Gui::ViewProviderDocumentObject::pcObject, MeshCore::MeshIO::PER_FACE, RobotExample::t, Gui::SoFCOffscreenRenderer::writeToImage(), MovieTool::x, and MovieTool::y.
Referenced by getVisibleFacetsAfterZoom().
std::vector< unsigned long > ViewProviderMesh::getVisibleFacetsAfterZoom | ( | const SbBox2s & | rect, | |
const SbViewportRegion & | vp, | |||
SoCamera * | camera | |||
) | const |
Definition at line 919 of file Mod/Mesh/Gui/ViewProvider.cpp.
References getVisibleFacets().
void ViewProviderMesh::highlightSelection | ( | ) | [protected] |
Definition at line 1451 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Color::b, Mesh::MeshObject::countFacets(), SketcherExample::f, App::Color::g, Mesh::MeshObject::getFacetsFromSelection(), App::PropertyColor::getValue(), Py::int, pcMatBinding, Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProviderGeometryObject::pcShapeMaterial, MeshCore::MeshIO::PER_FACE, App::Color::r, and Gui::ViewProviderGeometryObject::ShapeColor.
Referenced by addSelection(), deselectComponent(), deselectFacet(), removeSelection(), selectArea(), selectComponent(), selectFacet(), setSelection(), MeshGui::ViewProviderMeshFaceSet::updateData(), and MeshGui::ViewProviderIndexedFaceSet::updateData().
void MeshGui::ViewProviderMesh::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, MeshGui::ViewProviderMeshFaceSet, MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 214 of file Mod/Mesh/Gui/ViewProvider.cpp.
Referenced by initMeshGui().
void ViewProviderMesh::markPartCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 1168 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Base::Console(), getClassTypeId(), getShapeNode(), Gui::ViewProvider::getTypeId(), Gui::View3DInventorViewer::getViewProviderByPath(), Gui::View3DInventorViewer::getViewProvidersOfType(), Gui::Application::Instance, Base::Type::isDerivedFrom(), RobotExample::pos, Gui::View3DInventorViewer::removeEventCallback(), selectComponent(), and Gui::View3DInventorViewer::setEditing().
Referenced by CmdMeshRemoveCompByHand::activated().
void ViewProviderMesh::onChanged | ( | const App::Property * | prop | ) | [protected, virtual] |
get called by the container whenever a property has been changed
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 304 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Color::b, CreaseAngle, F_PI, App::Color::g, App::PropertyMaterial::getValue(), App::PropertyColor::getValue(), App::PropertyBool::getValue(), App::PropertyFloat::getValue(), App::PropertyInteger::getValue(), Lighting, LineColor, LineTransparency, LineWidth, OpenEdges, MeshCore::MeshIO::OVERALL, pcLineStyle, pcMatBinding, pcPointStyle, pLineColor, PointSize, pShapeHints, App::Color::r, setOpenEdgeColorFrom(), Gui::ViewProviderGeometryObject::ShapeColor, Gui::ViewProviderGeometryObject::ShapeMaterial, and showOpenEdges().
void ViewProviderMesh::partMeshCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 619 of file Mod/Mesh/Gui/ViewProvider.cpp.
References FemExample::b, Base::Console(), createToolMesh(), Gui::ViewProvider::finishEditing(), getClassTypeId(), Gui::ViewProvider::getEditingMode(), Gui::View3DInventorViewer::getGLPolygon(), Gui::View3DInventorViewer::getNearPlane(), Gui::View3DInventorViewer::getViewProvidersOfType(), Gui::Application::Instance, Gui::View3DInventorViewer::removeEventCallback(), Base::Sequencer(), Gui::View3DInventorViewer::setEditing(), and splitMesh().
Referenced by CmdMeshPolySplit::activated().
void ViewProviderMesh::removeSelection | ( | const std::vector< unsigned long > & | indices | ) |
Definition at line 1404 of file Mod/Mesh/Gui/ViewProvider.cpp.
References highlightSelection(), Gui::ViewProviderDocumentObject::pcObject, and Mesh::MeshObject::removeFacetsFromSelection().
void ViewProviderMesh::segmentMesh | ( | const MeshCore::MeshKernel & | toolMesh, | |
const Base::Vector3f & | normal, | |||
SbBool | inner | |||
) | [protected, virtual] |
Definition at line 1052 of file Mod/Mesh/Gui/ViewProvider.cpp.
References MeshCore::MeshKernel::CountFacets(), Mesh::PropertyMeshKernel::createSegment(), MeshCore::MeshAlgorithm::GetFacetsFromToolMesh(), Mesh::PropertyMeshKernel::getValue(), and Gui::ViewProviderDocumentObject::pcObject.
Referenced by segmMeshCallback().
void ViewProviderMesh::segmMeshCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 676 of file Mod/Mesh/Gui/ViewProvider.cpp.
References FemExample::b, Base::Console(), createToolMesh(), Gui::ViewProvider::finishEditing(), getClassTypeId(), Gui::ViewProvider::getEditingMode(), Gui::View3DInventorViewer::getGLPolygon(), Gui::View3DInventorViewer::getNearPlane(), Gui::View3DInventorViewer::getViewProvidersOfType(), Gui::Application::Instance, Gui::View3DInventorViewer::removeEventCallback(), segmentMesh(), Base::Sequencer(), and Gui::View3DInventorViewer::setEditing().
Referenced by CmdMeshPolySegm::activated().
void ViewProviderMesh::selectArea | ( | short | x, | |
short | y, | |||
short | w, | |||
short | h, | |||
const SbViewportRegion & | region, | |||
SoCamera * | camera | |||
) | [protected, virtual] |
Definition at line 1436 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::addFacetsToSelection(), Mesh2Shape::faces, getFacetsOfRegion(), highlightSelection(), and Gui::ViewProviderDocumentObject::pcObject.
Referenced by selectGLCallback().
void ViewProviderMesh::selectComponent | ( | unsigned long | facet | ) |
Definition at line 1353 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::addFacetsToSelection(), Mesh::MeshObject::getKernel(), highlightSelection(), Gui::ViewProviderDocumentObject::pcObject, MeshCore::MeshFacet::VISIT, and MeshCore::MeshKernel::VisitNeighbourFacets().
Referenced by markPartCallback().
void ViewProviderMesh::selectFacet | ( | unsigned long | facet | ) |
Definition at line 1312 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::addFacetsToSelection(), Mesh::MeshObject::countFacets(), SketcherExample::f, highlightSelection(), Py::int, pcMatBinding, Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProviderGeometryObject::pcShapeMaterial, and MeshCore::MeshIO::PER_FACE.
void ViewProviderMesh::selectGLCallback | ( | void * | ud, | |
SoEventCallback * | n | |||
) | [static] |
Definition at line 733 of file Mod/Mesh/Gui/ViewProvider.cpp.
References SketcherExample::f, Gui::ViewProvider::finishEditing(), getClassTypeId(), Gui::ViewProvider::getEditingMode(), Gui::View3DInventorViewer::getGLPolygon(), Gui::View3DInventorViewer::getViewProvidersOfType(), RobotExample::pos, Gui::View3DInventorViewer::removeEventCallback(), selectArea(), Gui::View3DInventorViewer::setEditing(), RobotExample::w, MovieTool::x, and MovieTool::y.
Referenced by CmdMeshPolySelect::activated().
void ViewProviderMesh::setDisplayMode | ( | const char * | ModeName | ) | [virtual] |
Sets the correct display mode.
Reimplemented from Gui::ViewProvider.
Reimplemented in MeshGui::ViewProviderMeshTransform, and MeshGui::ViewProviderMeshTransformDemolding.
Definition at line 458 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
bool ViewProviderMesh::setEdit | ( | int | ModNum | ) | [protected, virtual] |
Sets the edit mode.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 485 of file Mod/Mesh/Gui/ViewProvider.cpp.
void ViewProviderMesh::setOpenEdgeColorFrom | ( | const App::Color & | col | ) | [protected] |
Definition at line 352 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Color::b, FemExample::b, App::Color::g, pOpenColor, and App::Color::r.
Referenced by onChanged().
void ViewProviderMesh::setSelection | ( | const std::vector< unsigned long > & | indices | ) |
Definition at line 1385 of file Mod/Mesh/Gui/ViewProvider.cpp.
References Mesh::MeshObject::addFacetsToSelection(), Mesh::MeshObject::clearFacetSelection(), highlightSelection(), and Gui::ViewProviderDocumentObject::pcObject.
void ViewProviderMesh::showOpenEdges | ( | bool | show | ) | [protected, virtual] |
Reimplemented in MeshGui::ViewProviderIndexedFaceSet, MeshGui::ViewProviderMeshObject, and MeshGui::ViewProviderMeshFaceSet.
Definition at line 580 of file Mod/Mesh/Gui/ViewProvider.cpp.
Referenced by onChanged().
void ViewProviderMesh::splitMesh | ( | const MeshCore::MeshKernel & | toolMesh, | |
const Base::Vector3f & | normal, | |||
SbBool | inner | |||
) | [protected, virtual] |
Definition at line 1020 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Document::addObject(), MeshCore::MeshKernel::CountFacets(), Mesh::PropertyMeshKernel::deleteFacetIndices(), App::Application::getActiveDocument(), App::GetApplication(), MeshCore::MeshAlgorithm::GetFacetsFromToolMesh(), App::DocumentObject::getNameInDocument(), Mesh::PropertyMeshKernel::getValue(), Mesh::Feature::Mesh, and Gui::ViewProviderDocumentObject::pcObject.
Referenced by partMeshCallback().
void ViewProviderMesh::unhighlightSelection | ( | ) | [protected] |
Definition at line 1476 of file Mod/Mesh/Gui/ViewProvider.cpp.
References App::Color::b, App::Color::g, App::PropertyColor::getValue(), MeshCore::MeshIO::OVERALL, pcMatBinding, Gui::ViewProviderGeometryObject::pcShapeMaterial, App::Color::r, and Gui::ViewProviderGeometryObject::ShapeColor.
Referenced by clearSelection(), and deleteSelection().
void ViewProviderMesh::unsetEdit | ( | int | ModNum | ) | [protected, virtual] |
Unsets the edit mode.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 492 of file Mod/Mesh/Gui/ViewProvider.cpp.
Definition at line 114 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged(), and MeshGui::DlgSettingsMeshView::saveSettings().
Definition at line 116 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged(), and MeshGui::DlgSettingsMeshView::saveSettings().
Definition at line 117 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged().
Definition at line 111 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged().
Definition at line 112 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged().
Definition at line 115 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged(), MeshGui::ViewProviderMeshFaceSet::updateData(), and MeshGui::ViewProviderIndexedFaceSet::updateData().
SoDrawStyle* MeshGui::ViewProviderMesh::pcLineStyle [protected] |
Definition at line 185 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by attach(), onChanged(), MeshGui::ViewProviderMeshFaceSet::showOpenEdges(), MeshGui::ViewProviderMeshObject::showOpenEdges(), MeshGui::ViewProviderIndexedFaceSet::showOpenEdges(), and ~ViewProviderMesh().
SoMaterialBinding* MeshGui::ViewProviderMesh::pcMatBinding [protected] |
Definition at line 191 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by MeshGui::ViewProviderMeshTransformDemolding::attach(), attach(), deselectFacet(), highlightSelection(), onChanged(), selectFacet(), unhighlightSelection(), and ~ViewProviderMesh().
SoSeparator* MeshGui::ViewProviderMesh::pcOpenEdge [protected] |
Definition at line 187 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by MeshGui::ViewProviderMeshFaceSet::showOpenEdges(), MeshGui::ViewProviderMeshObject::showOpenEdges(), and MeshGui::ViewProviderIndexedFaceSet::showOpenEdges().
SoDrawStyle* MeshGui::ViewProviderMesh::pcPointStyle [protected] |
Definition at line 186 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by attach(), onChanged(), and ~ViewProviderMesh().
SoMaterial* MeshGui::ViewProviderMesh::pLineColor [protected] |
Definition at line 189 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by attach(), onChanged(), and ~ViewProviderMesh().
Definition at line 113 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by onChanged().
SoBaseColor* MeshGui::ViewProviderMesh::pOpenColor [protected] |
Definition at line 188 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by setOpenEdgeColorFrom(), MeshGui::ViewProviderMeshFaceSet::showOpenEdges(), MeshGui::ViewProviderMeshObject::showOpenEdges(), MeshGui::ViewProviderIndexedFaceSet::showOpenEdges(), and ~ViewProviderMesh().
SoShapeHints* MeshGui::ViewProviderMesh::pShapeHints [protected] |
Definition at line 190 of file Mod/Mesh/Gui/ViewProvider.h.
Referenced by attach(), onChanged(), and ~ViewProviderMesh().