The ViewProviderFace class is used to display a single face. More...
#include <MeshEditor.h>
Public Member Functions | |
void | attach (App::DocumentObject *obj) |
const char * | getDefaultDisplayMode () const |
Get the default display mode. | |
std::vector< std::string > | getDisplayModes (void) const |
Return a list of all possible modes. | |
SoPickedPoint * | getPickedPoint (const SbVec2s &pos, const SoQtViewer *viewer) const |
virtual Base::Type | getTypeId (void) const |
void | setDisplayMode (const char *ModeName) |
set the display mode | |
ViewProviderFace () | |
virtual | ~ViewProviderFace () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes | |
int | current_index |
std::vector< int > | index |
ViewProviderMesh * | mesh |
SoCoordinate3 * | pcCoords |
SoFaceSet * | pcFaces |
SoFCMeshPickNode * | pcMeshPick |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
The ViewProviderFace class is used to display a single face.
Definition at line 43 of file MeshEditor.h.
ViewProviderFace::ViewProviderFace | ( | ) |
Definition at line 59 of file MeshEditor.cpp.
ViewProviderFace::~ViewProviderFace | ( | ) | [virtual] |
Definition at line 70 of file MeshEditor.cpp.
References pcCoords, pcFaces, and pcMeshPick.
void ViewProviderFace::attach | ( | App::DocumentObject * | obj | ) | [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 77 of file MeshEditor.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), App::Color::b, SketcherExample::f, Mesh2Shape::faces, App::Color::g, App::PropertyColor::getValue(), mesh, MeshGui::SoFCMeshPickNode::mesh, pcCoords, pcFaces, pcMeshPick, App::Color::r, setDisplayMode(), MeshGui::SoSFMeshObject::setValue(), and Gui::ViewProviderGeometryObject::ShapeColor.
Referenced by MeshGui::MeshFaceAddition::startEditing().
void * MeshGui::ViewProviderFace::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
Base::Type MeshGui::ViewProviderFace::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
const char * ViewProviderFace::getDefaultDisplayMode | ( | ) | const [virtual] |
Get the default display mode.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 139 of file MeshEditor.cpp.
std::vector< std::string > ViewProviderFace::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 144 of file MeshEditor.cpp.
SoPickedPoint * ViewProviderFace::getPickedPoint | ( | const SbVec2s & | pos, | |
const SoQtViewer * | viewer | |||
) | const |
Definition at line 152 of file MeshEditor.cpp.
References pcMeshPick.
const App::PropertyData & MeshGui::ViewProviderFace::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
const App::PropertyData * MeshGui::ViewProviderFace::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
Base::Type MeshGui::ViewProviderFace::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
void MeshGui::ViewProviderFace::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 57 of file MeshEditor.cpp.
void ViewProviderFace::setDisplayMode | ( | const char * | ModeName | ) | [virtual] |
set the display mode
If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.
Reimplemented from Gui::ViewProvider.
Definition at line 130 of file MeshEditor.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
Referenced by attach().
Definition at line 60 of file MeshEditor.h.
std::vector<int> MeshGui::ViewProviderFace::index |
Definition at line 59 of file MeshEditor.h.
Definition at line 58 of file MeshEditor.h.
Referenced by attach(), and MeshGui::MeshFaceAddition::startEditing().
SoCoordinate3* MeshGui::ViewProviderFace::pcCoords |
Definition at line 62 of file MeshEditor.h.
Referenced by attach(), and ~ViewProviderFace().
SoFaceSet* MeshGui::ViewProviderFace::pcFaces |
Definition at line 63 of file MeshEditor.h.
Referenced by attach(), and ~ViewProviderFace().
Definition at line 64 of file MeshEditor.h.
Referenced by attach(), getPickedPoint(), and ~ViewProviderFace().