FEM: Add cylinder filter function
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user