FEM Post: FreeCADify the vtk post processing

- Data property for saving/loading vtk data
- Use FreeCAD recompute system instead of vtk pipeline
This commit is contained in:
Stefan Tröger
2016-01-01 14:12:23 +01:00
committed by wmayer
parent 427ded23d5
commit c2df92cd76
15 changed files with 265 additions and 356 deletions

View File

@@ -25,11 +25,10 @@
#define Fem_FemPostObject_H
#include <App/GeoFeature.h>
#include <vtkSmartPointer.h>
#include <vtkPolyDataAlgorithm.h>
#include "PropertyPostDataObject.h"
#include <vtkBoundingBox.h>
namespace Fem
{
@@ -43,33 +42,9 @@ public:
FemPostObject(void);
virtual ~FemPostObject();
App::PropertyInteger ModificationTime;
/// returns the type name of the ViewProvider
virtual const char* getViewProviderName(void) const {
return "FemGui::ViewProviderFemPostObject";
}
Fem::PropertyPostDataObject Data;
short mustExecute(void) const;
virtual App::DocumentObjectExecReturn* execute(void);
//bounding box handling. By default the bounding box is calcualted from the poly data output
//which is visualized
virtual vtkBoundingBox getBoundingBox() {return m_boundingBox;};
//poly data algorithm handling
virtual bool providesPolyData() {return getPolyAlgorithm()!=NULL;};
vtkSmartPointer<vtkPolyDataAlgorithm> getPolyAlgorithm() {return polyDataSource;};
protected:
virtual void onChanged(const App::Property* prop);
//members
vtkSmartPointer<vtkPolyDataAlgorithm> polyDataSource;
private:
vtkBoundingBox m_boundingBox;
vtkBoundingBox getBoundingBox();
};
} //namespace Fem