FEM: Add cylinder filter function

This commit is contained in:
marioalexis
2023-03-04 02:19:36 -03:00
committed by Uwe
parent eda50c13b0
commit 3e61ca0fbb
9 changed files with 606 additions and 37 deletions

View File

@@ -24,6 +24,7 @@
#define Fem_FemPostFunction_H
#include <vtkBoundingBox.h>
#include <vtkCylinder.h>
#include <vtkImplicitFunction.h>
#include <vtkPlane.h>
#include <vtkSmartPointer.h>
@@ -81,6 +82,32 @@ protected:
void onChanged(const App::Property* prop) override;
};
// ---------------------------------------------------------------------------
class FemExport FemPostCylinderFunction : public FemPostFunction
{
PROPERTY_HEADER_WITH_OVERRIDE(Fem::FemPostCylinderFunction);
public:
FemPostCylinderFunction();
~FemPostCylinderFunction() override;
App::PropertyVector Axis;
App::PropertyVectorDistance Center;
App::PropertyDistance Radius;
const char* getViewProviderName() const override {
return "FemGui::ViewProviderFemPostCylinderFunction";
}
protected:
void onChanged(const App::Property* prop) override;
/// get called after a document has been fully restored
// void onDocumentRestored() override;
vtkSmartPointer<vtkCylinder> m_cylinder;
};
// ---------------------------------------------------------------------------