#include <ViewProviderFemMesh.h>
Public Member Functions | |
void | attach (App::DocumentObject *pcObject) |
Attaches the document object to this view provider. | |
std::vector< std::string > | getDisplayModes () const |
Return a list of all possible modes. | |
virtual Base::Type | getTypeId (void) const |
void | setDisplayMode (const char *ModeName) |
set the display mode | |
void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderFemMesh () | |
constructor. | |
~ViewProviderFemMesh () | |
destructor. | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Public Attributes | |
App::PropertyFloatConstraint | LineWidth |
App::PropertyColor | PointColor |
App::PropertyMaterial | PointMaterial |
App::PropertyFloatConstraint | PointSize |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
virtual void | onChanged (const App::Property *prop) |
get called by the container whenever a property has been changed | |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoCoordinate3 * | pcCoords |
SoDrawStyle * | pcDrawStyle |
SoIndexedFaceSet * | pcFaces |
SoMaterialBinding * | pcMatBinding |
SoMaterial * | pcPointMaterial |
SoDrawStyle * | pcPointStyle |
SoShapeHints * | pShapeHints |
Definition at line 48 of file ViewProviderFemMesh.h.
ViewProviderFemMesh::ViewProviderFemMesh | ( | ) |
constructor.
Definition at line 67 of file ViewProviderFemMesh.cpp.
References ADD_PROPERTY, App::Material::ambientColor, App::Material::diffuseColor, App::Material::emissiveColor, SketcherExample::f, App::PropertyFloat::getValue(), LineWidth, MeshCore::MeshIO::OVERALL, pcCoords, pcDrawStyle, pcFaces, pcMatBinding, pcPointMaterial, pcPointStyle, PointColor, PointMaterial, PointSize, pShapeHints, App::PropertyFloatConstraint::setConstraints(), App::Material::shininess, App::Material::specularColor, App::Property::touch(), and App::Material::transparency.
ViewProviderFemMesh::~ViewProviderFemMesh | ( | ) |
destructor.
Definition at line 115 of file ViewProviderFemMesh.cpp.
References pcCoords, pcDrawStyle, pcFaces, pcMatBinding, pcPointMaterial, pcPointStyle, and pShapeHints.
void ViewProviderFemMesh::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 127 of file ViewProviderFemMesh.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), SketcherExample::f, offset(), pcCoords, pcDrawStyle, pcFaces, Gui::ViewProviderGeometryObject::pcHighlight, pcMatBinding, pcPointMaterial, pcPointStyle, Gui::ViewProviderGeometryObject::pcShapeMaterial, and pShapeHints.
void * FemGui::ViewProviderFemMesh::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
Base::Type FemGui::ViewProviderFemMesh::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
std::vector< std::string > ViewProviderFemMesh::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 189 of file ViewProviderFemMesh.cpp.
const App::PropertyData & FemGui::ViewProviderFemMesh::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
const App::PropertyData * FemGui::ViewProviderFemMesh::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
Base::Type FemGui::ViewProviderFemMesh::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
void FemGui::ViewProviderFemMesh::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 63 of file ViewProviderFemMesh.cpp.
Referenced by initFemGui().
void ViewProviderFemMesh::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 208 of file ViewProviderFemMesh.cpp.
References App::Material::ambientColor, App::Color::b, App::Material::diffuseColor, App::Material::emissiveColor, App::Color::g, App::PropertyMaterial::getValue(), App::PropertyColor::getValue(), App::PropertyFloat::getValue(), LineWidth, pcDrawStyle, pcPointMaterial, pcPointStyle, PointColor, PointMaterial, PointSize, App::Color::r, App::PropertyMaterial::setDiffuseColor(), App::PropertyColor::setValue(), App::Material::shininess, App::Material::specularColor, and App::Material::transparency.
void ViewProviderFemMesh::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 175 of file ViewProviderFemMesh.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderFemMesh::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 199 of file ViewProviderFemMesh.cpp.
References FemGui::ViewProviderFEMMeshBuilder::createMesh(), Fem::PropertyFemMesh::getClassTypeId(), Base::BaseClass::isDerivedFrom(), pcCoords, and pcFaces.
Definition at line 62 of file ViewProviderFemMesh.h.
Referenced by onChanged(), and ViewProviderFemMesh().
SoCoordinate3* FemGui::ViewProviderFemMesh::pcCoords [protected] |
Definition at line 83 of file ViewProviderFemMesh.h.
Referenced by attach(), updateData(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
SoDrawStyle* FemGui::ViewProviderFemMesh::pcDrawStyle [protected] |
Definition at line 80 of file ViewProviderFemMesh.h.
Referenced by attach(), onChanged(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
SoIndexedFaceSet* FemGui::ViewProviderFemMesh::pcFaces [protected] |
Definition at line 84 of file ViewProviderFemMesh.h.
Referenced by attach(), updateData(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
SoMaterialBinding* FemGui::ViewProviderFemMesh::pcMatBinding [protected] |
Definition at line 82 of file ViewProviderFemMesh.h.
Referenced by attach(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
SoMaterial* FemGui::ViewProviderFemMesh::pcPointMaterial [protected] |
Definition at line 77 of file ViewProviderFemMesh.h.
Referenced by attach(), onChanged(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
SoDrawStyle* FemGui::ViewProviderFemMesh::pcPointStyle [protected] |
Definition at line 78 of file ViewProviderFemMesh.h.
Referenced by attach(), onChanged(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().
Definition at line 60 of file ViewProviderFemMesh.h.
Referenced by onChanged(), and ViewProviderFemMesh().
Definition at line 63 of file ViewProviderFemMesh.h.
Referenced by onChanged(), and ViewProviderFemMesh().
Definition at line 61 of file ViewProviderFemMesh.h.
Referenced by onChanged(), and ViewProviderFemMesh().
SoShapeHints* FemGui::ViewProviderFemMesh::pShapeHints [protected] |
Definition at line 81 of file ViewProviderFemMesh.h.
Referenced by attach(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().