Skip to content

Commit

Permalink
FEM: code formating replace lines of # with lines of *
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Sep 19, 2019
1 parent 5a83dc2 commit 7695106
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/App/FemPostPipeline.cpp
Expand Up @@ -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);
Expand Down
29 changes: 14 additions & 15 deletions src/Mod/Fem/Gui/TaskPostBoxes.cpp
Expand Up @@ -78,7 +78,7 @@
using namespace FemGui;
using namespace Gui;

// ----------------------------------------------------------------------------
// ***************************************************************************

PointMarker::PointMarker(Gui::View3DInventorViewer* iv, std::string ObjName) : view(iv),
vp(new ViewProviderPointMarker)
Expand Down Expand Up @@ -145,7 +145,7 @@ ViewProviderPointMarker::~ViewProviderPointMarker()
pCoords->unref();
}

// ----------------------------------------------------------------------------
// ***************************************************************************

DataMarker::DataMarker(Gui::View3DInventorViewer* iv, std::string ObjName) : view(iv),
vp(new ViewProviderDataMarker)
Expand Down Expand Up @@ -218,10 +218,10 @@ ViewProviderDataMarker::~ViewProviderDataMarker()
pMarker->unref();
}

//**************************************************************************
//**************************************************************************
// ***************************************************************************
// ***************************************************************************
// TaskDialog
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ***************************************************************************

TaskDlgPost::TaskDlgPost(Gui::ViewProviderDocumentObject *view)
: TaskDialog(), m_view(view)
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -1030,8 +1030,7 @@ void TaskPostScalarClip::on_InsideOut_toggled(bool val) {
recompute();
}


//############################################################################################
// ***************************************************************************
// warp filter
// spinbox min, slider, spinbox max
// spinbox warp factor
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp
Expand Up @@ -318,7 +318,7 @@ void ViewProviderFemPostFunction::onChanged(const App::Property* prop) {



//#################################################################################################
// ***************************************************************************

PROPERTY_SOURCE(FemGui::ViewProviderFemPostPlaneFunction, FemGui::ViewProviderFemPostFunction)

Expand Down Expand Up @@ -457,7 +457,7 @@ void PlaneWidget::originChanged(double) {



//#################################################################################################
// ***************************************************************************

PROPERTY_SOURCE(FemGui::ViewProviderFemPostSphereFunction, FemGui::ViewProviderFemPostFunction)

Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/Gui/ViewProviderFemPostFunction.h
Expand Up @@ -143,8 +143,8 @@ class FemGuiExport ViewProviderFemPostFunction : public Gui::ViewProviderDocumen
bool m_autoscale, m_isDragging, m_autoRecompute;
};

//###############################################################################################

// ***************************************************************************
class FemGuiExport PlaneWidget : public FunctionWidget {

Q_OBJECT
Expand Down Expand Up @@ -179,8 +179,8 @@ class FemGuiExport ViewProviderFemPostPlaneFunction : public ViewProviderFemPost
virtual void updateData(const App::Property*);
};

//###############################################################################################

// ***************************************************************************
class FemGuiExport SphereWidget : public FunctionWidget {

Q_OBJECT
Expand Down

0 comments on commit 7695106

Please sign in to comment.