FEM: code formating replace lines of # with lines of *

This commit is contained in:
Bernd Hahnebach
2019-09-19 07:45:42 +02:00
parent 2f59bb50eb
commit 078237937f
4 changed files with 20 additions and 21 deletions

View File

@@ -253,13 +253,13 @@ void FemPostPipeline::load(FemResultObject* res) {
}
//first copy the mesh over
//########################
// ***************************
const FemMesh& mesh = static_cast<FemMeshObject*>(res->Mesh.getValue())->FemMesh.getValue();
vtkSmartPointer<vtkUnstructuredGrid> grid = vtkSmartPointer<vtkUnstructuredGrid>::New();
FemVTKTools::exportVTKMesh(&mesh, grid);
//Now copy the point data over
//############################
// ***************************
FemVTKTools::exportFreeCADResult(res, grid);
Data.setValue(grid);

View File

@@ -78,7 +78,7 @@
using namespace FemGui;
using namespace Gui;
// ----------------------------------------------------------------------------
// ***************************************************************************
PointMarker::PointMarker(Gui::View3DInventorViewer* iv, std::string ObjName) : view(iv),
vp(new ViewProviderPointMarker)
@@ -145,7 +145,7 @@ ViewProviderPointMarker::~ViewProviderPointMarker()
pCoords->unref();
}
// ----------------------------------------------------------------------------
// ***************************************************************************
DataMarker::DataMarker(Gui::View3DInventorViewer* iv, std::string ObjName) : view(iv),
vp(new ViewProviderDataMarker)
@@ -218,10 +218,10 @@ ViewProviderDataMarker::~ViewProviderDataMarker()
pMarker->unref();
}
//**************************************************************************
//**************************************************************************
// ***************************************************************************
// ***************************************************************************
// TaskDialog
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ***************************************************************************
TaskDlgPost::TaskDlgPost(Gui::ViewProviderDocumentObject *view)
: TaskDialog(), m_view(view)
@@ -299,7 +299,7 @@ void TaskDlgPost::modifyStandardButtons(QDialogButtonBox* box) {
box->button(QDialogButtonBox::Apply)->setDefault(true);
}
//############################################################################################
// ***************************************************************************
// some task box methods
TaskPostBox::TaskPostBox(Gui::ViewProviderDocumentObject* view, const QPixmap &icon, const QString &title, QWidget* parent)
: TaskBox(icon, title, true, parent) {
@@ -341,7 +341,7 @@ void TaskPostBox::updateEnumerationList(App::PropertyEnumeration& prop, QComboBo
box->setCurrentIndex(index);
}
//###########################################################################################################
// ***************************************************************************
// post pipeline results
TaskPostDisplay::TaskPostDisplay(Gui::ViewProviderDocumentObject* view, QWidget *parent)
: TaskPostBox(view, Gui::BitmapFactory().pixmap("fem-post-result-show"), tr("Result display options"), parent)
@@ -398,7 +398,7 @@ void TaskPostDisplay::applyPythonCode() {
}
//############################################################################################
// ***************************************************************************
// ?
// the icon fem-post-geo-plane might be wrong but I do not know any better since the plane is one of the implicit functions
TaskPostFunction::TaskPostFunction(ViewProviderDocumentObject* view, QWidget* parent): TaskPostBox(view, Gui::BitmapFactory().pixmap("fem-post-geo-plane"), tr("Implicit function"), parent) {
@@ -421,7 +421,7 @@ void TaskPostFunction::applyPythonCode() {
//we apply the views widgets python code
}
//############################################################################################
// ***************************************************************************
// region clip filter
TaskPostClip::TaskPostClip(ViewProviderDocumentObject* view, App::PropertyLink* function, QWidget* parent)
: TaskPostBox(view,Gui::BitmapFactory().pixmap("fem-post-filter-clip-region"), tr("Clip region, choose implicit function"), parent) {
@@ -543,7 +543,7 @@ void TaskPostClip::on_InsideOut_toggled(bool val) {
recompute();
}
//############################################################################################
// ***************************************************************************
// data along a line
TaskPostDataAlongLine::TaskPostDataAlongLine(ViewProviderDocumentObject* view, QWidget* parent)
: TaskPostBox(view,Gui::BitmapFactory().pixmap("fem-post-filter-data-along-line"), tr("Data along a line options"), parent) {
@@ -760,7 +760,7 @@ plt.show()\n";
}
//############################################################################################
// ***************************************************************************
// data at point
TaskPostDataAtPoint::TaskPostDataAtPoint(ViewProviderDocumentObject* view, QWidget* parent)
: TaskPostBox(view,Gui::BitmapFactory().pixmap("fem-post-filter-data-at-point"), tr("Data at point options"), parent) {
@@ -924,7 +924,7 @@ void TaskPostDataAtPoint::on_Field_activated(int i) {
Base::Console().Error(PointData.c_str());
}
//############################################################################################
// ***************************************************************************
// scalar clip filter
TaskPostScalarClip::TaskPostScalarClip(ViewProviderDocumentObject* view, QWidget* parent) :
TaskPostBox(view, Gui::BitmapFactory().pixmap("fem-post-filter-clip-scalar"), tr("Scalar clip options"), parent) {
@@ -1030,8 +1030,7 @@ void TaskPostScalarClip::on_InsideOut_toggled(bool val) {
recompute();
}
//############################################################################################
// ***************************************************************************
// warp filter
// spinbox min, slider, spinbox max
// spinbox warp factor
@@ -1174,7 +1173,7 @@ void TaskPostWarpVector::on_Min_valueChanged(double) {
ui->Slider->blockSignals(false);
}
//############################################################################################
// ***************************************************************************
// function clip filter
TaskPostCut::TaskPostCut(ViewProviderDocumentObject* view, App::PropertyLink* function, QWidget* parent)
: TaskPostBox(view,Gui::BitmapFactory().pixmap("fem-post-filter-cut-function"), tr("Function cut, choose implicit function"), parent) {

View File

@@ -318,7 +318,7 @@ void ViewProviderFemPostFunction::onChanged(const App::Property* prop) {
//#################################################################################################
// ***************************************************************************
PROPERTY_SOURCE(FemGui::ViewProviderFemPostPlaneFunction, FemGui::ViewProviderFemPostFunction)
@@ -457,7 +457,7 @@ void PlaneWidget::originChanged(double) {
//#################################################################################################
// ***************************************************************************
PROPERTY_SOURCE(FemGui::ViewProviderFemPostSphereFunction, FemGui::ViewProviderFemPostFunction)

View File

@@ -143,8 +143,8 @@ private:
bool m_autoscale, m_isDragging, m_autoRecompute;
};
//###############################################################################################
// ***************************************************************************
class FemGuiExport PlaneWidget : public FunctionWidget {
Q_OBJECT
@@ -179,8 +179,8 @@ protected:
virtual void updateData(const App::Property*);
};
//###############################################################################################
// ***************************************************************************
class FemGuiExport SphereWidget : public FunctionWidget {
Q_OBJECT