FemGui::ViewProviderFemMesh Class Reference

#include <ViewProviderFemMesh.h>

Inheritance diagram for FemGui::ViewProviderFemMesh:
Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

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::PropertyDatagetPropertyData (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::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

SoCoordinate3 * pcCoords
SoDrawStyle * pcDrawStyle
SoIndexedFaceSet * pcFaces
SoMaterialBinding * pcMatBinding
SoMaterial * pcPointMaterial
SoDrawStyle * pcPointStyle
SoShapeHints * pShapeHints

Detailed Description

Definition at line 48 of file ViewProviderFemMesh.h.


Constructor & Destructor Documentation

ViewProviderFemMesh::ViewProviderFemMesh (  ) 
ViewProviderFemMesh::~ViewProviderFemMesh (  ) 

destructor.

Definition at line 115 of file ViewProviderFemMesh.cpp.

References pcCoords, pcDrawStyle, pcFaces, pcMatBinding, pcPointMaterial, pcPointStyle, and pShapeHints.


Member Function Documentation

void ViewProviderFemMesh::attach ( App::DocumentObject pcObject  )  [virtual]
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]
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.


Member Data Documentation

Definition at line 62 of file ViewProviderFemMesh.h.

Referenced by onChanged(), and ViewProviderFemMesh().

SoCoordinate3* FemGui::ViewProviderFemMesh::pcCoords [protected]
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]
SoMaterialBinding* FemGui::ViewProviderFemMesh::pcMatBinding [protected]

Definition at line 82 of file ViewProviderFemMesh.h.

Referenced by attach(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().

Definition at line 77 of file ViewProviderFemMesh.h.

Referenced by attach(), onChanged(), ViewProviderFemMesh(), and ~ViewProviderFemMesh().

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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:57 2011 for FreeCAD by  doxygen 1.6.1