All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
ef997f2259
commit
9fe130cd73
@@ -75,9 +75,10 @@ void ViewProviderFemPostPipeline::updateFunctionSize()
|
||||
return;
|
||||
}
|
||||
|
||||
FemGui::ViewProviderFemPostFunctionProvider* vp =
|
||||
static_cast<FemGui::ViewProviderFemPostFunctionProvider*>(
|
||||
Gui::Application::Instance->getViewProvider(fp));
|
||||
FemGui::ViewProviderFemPostFunctionProvider* vp
|
||||
= static_cast<FemGui::ViewProviderFemPostFunctionProvider*>(
|
||||
Gui::Application::Instance->getViewProvider(fp)
|
||||
);
|
||||
|
||||
if (obj->Data.getValue() && obj->Data.getValue()->IsA("vtkDataSet")) {
|
||||
vtkBoundingBox box = obj->getBoundingBox();
|
||||
@@ -98,7 +99,8 @@ ViewProviderFemAnalysis* getAnalyzeView(App::DocumentObject* obj)
|
||||
|
||||
if (Fem::FemAnalysis* analyze = freecad_cast<Fem::FemAnalysis*>(grp)) {
|
||||
analyzeView = freecad_cast<ViewProviderFemAnalysis*>(
|
||||
Gui::Application::Instance->getViewProvider(analyze));
|
||||
Gui::Application::Instance->getViewProvider(analyze)
|
||||
);
|
||||
}
|
||||
|
||||
return analyzeView;
|
||||
@@ -154,7 +156,8 @@ void ViewProviderFemPostPipeline::updateColorBars()
|
||||
for (auto& child : children) {
|
||||
if (child->Visibility.getValue()) {
|
||||
auto vpObject = dynamic_cast<FemGui::ViewProviderFemPostObject*>(
|
||||
Gui::Application::Instance->getViewProvider(child));
|
||||
Gui::Application::Instance->getViewProvider(child)
|
||||
);
|
||||
if (vpObject) {
|
||||
vpObject->updateMaterial();
|
||||
}
|
||||
@@ -202,9 +205,7 @@ void ViewProviderFemPostPipeline::transformField(char* FieldName, double FieldFa
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderFemPostPipeline::scaleField(vtkDataSet* dset,
|
||||
vtkDataArray* pdata,
|
||||
double FieldFactor)
|
||||
void ViewProviderFemPostPipeline::scaleField(vtkDataSet* dset, vtkDataArray* pdata, double FieldFactor)
|
||||
{
|
||||
// safe guard
|
||||
if (!dset || !pdata) {
|
||||
@@ -243,8 +244,10 @@ bool ViewProviderFemPostPipeline::acceptReorderingObjects() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ViewProviderFemPostPipeline::canDragObjectToTarget(App::DocumentObject*,
|
||||
App::DocumentObject* target) const
|
||||
bool ViewProviderFemPostPipeline::canDragObjectToTarget(
|
||||
App::DocumentObject*,
|
||||
App::DocumentObject* target
|
||||
) const
|
||||
{
|
||||
|
||||
// allow drag only to other post groups
|
||||
|
||||
Reference in New Issue
Block a user