The ViewProviderMeshFaceSet class creates nodes for representing the mesh data structure. More...
#include <ViewProviderMeshFaceSet.h>
Public Member Functions | |
void | attach (App::DocumentObject *pcFeat) |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data. | |
virtual Base::Type | getTypeId (void) const |
virtual void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderMeshFaceSet () | |
virtual | ~ViewProviderMeshFaceSet () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
SoNode * | getCoordNode () const |
virtual const App::PropertyData & | getPropertyData (void) const |
SoShape * | getShapeNode () const |
void | showOpenEdges (bool) |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
The ViewProviderMeshFaceSet class creates nodes for representing the mesh data structure.
Depending on the size of the mesh it uses two ways to render it:
For more details
Definition at line 48 of file ViewProviderMeshFaceSet.h.
ViewProviderMeshFaceSet::ViewProviderMeshFaceSet | ( | ) |
Definition at line 90 of file ViewProviderMeshFaceSet.cpp.
ViewProviderMeshFaceSet::~ViewProviderMeshFaceSet | ( | ) | [virtual] |
Definition at line 105 of file ViewProviderMeshFaceSet.cpp.
void ViewProviderMeshFaceSet::attach | ( | App::DocumentObject * | pcFeat | ) | [virtual] |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data.
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 113 of file ViewProviderMeshFaceSet.cpp.
References SketcherExample::f, Gui::WindowParameter::getDefaultParameter(), Py::int, Gui::ViewProviderGeometryObject::pcHighlight, KDL::pow(), and MeshGui::SoFCMeshObjectShape::renderTriangleLimit.
void * MeshGui::ViewProviderMeshFaceSet::create | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
Base::Type MeshGui::ViewProviderMeshFaceSet::getClassTypeId | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
Referenced by initMeshGui(), and updateData().
SoNode * ViewProviderMeshFaceSet::getCoordNode | ( | ) | const [protected, virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 216 of file ViewProviderMeshFaceSet.cpp.
const App::PropertyData & MeshGui::ViewProviderMeshFaceSet::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
const App::PropertyData * MeshGui::ViewProviderMeshFaceSet::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
SoShape * ViewProviderMeshFaceSet::getShapeNode | ( | ) | const [protected, virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 209 of file ViewProviderMeshFaceSet.cpp.
Base::Type MeshGui::ViewProviderMeshFaceSet::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
void MeshGui::ViewProviderMeshFaceSet::init | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 88 of file ViewProviderMeshFaceSet.cpp.
Referenced by initMeshGui().
void ViewProviderMeshFaceSet::showOpenEdges | ( | bool | show | ) | [protected, virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 167 of file ViewProviderMeshFaceSet.cpp.
References MeshCore::MeshKernel::GetFacets(), MeshGui::ViewProviderMesh::pcLineStyle, Gui::ViewProviderDocumentObject::pcObject, MeshGui::ViewProviderMesh::pcOpenEdge, Gui::ViewProvider::pcRoot, and MeshGui::ViewProviderMesh::pOpenColor.
Referenced by updateData().
void ViewProviderMeshFaceSet::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 129 of file ViewProviderMeshFaceSet.cpp.
References Mesh::MeshObject::countFacets(), MeshGui::ViewProviderMeshBuilder::createMesh(), getClassTypeId(), App::Property::getTypeId(), App::PropertyBool::getValue(), MeshGui::ViewProviderMesh::highlightSelection(), MeshGui::SoFCMeshObjectNode::mesh, Mesh2Shape::mesh, MeshGui::ViewProviderMesh::OpenEdges, Gui::ViewProviderGeometryObject::pcHighlight, MeshGui::SoSFMeshObject::setValue(), and showOpenEdges().