Skip to content
Snippets Groups Projects
Commit b54f89ac authored by Mark Olesen's avatar Mark Olesen
Browse files

PV3Reader - render after toggling show point/patch names

parent e3b5d373
Branches
Tags
No related merge requests found
......@@ -39,6 +39,7 @@ License
#include "pqApplicationCore.h"
#include "pqPipelineRepresentation.h"
#include "pqServerManagerModel.h"
#include "pqView.h"
// Paraview Server Manager
#include "vtkSMDoubleVectorProperty.h"
......@@ -120,6 +121,14 @@ void pqPV3FoamReaderPanel::ShowPatchNamesToggled()
(
sourceProxy_->GetProperty("UiShowPatchNames")
)->SetElement(0, ShowPatchNames_->isChecked());
// update the active view
if (this->view())
{
this->view()->render();
}
// OR: update all views
// pqApplicationCore::instance()->render();
}
......
......@@ -39,6 +39,7 @@ License
#include "pqApplicationCore.h"
#include "pqPipelineRepresentation.h"
#include "pqServerManagerModel.h"
#include "pqView.h"
// Paraview Server Manager
#include "vtkSMDoubleVectorProperty.h"
......@@ -94,6 +95,14 @@ void pqPV3blockMeshReaderPanel::ShowPointNumbersToggled()
(
sourceProxy_->GetProperty("UiShowPointNumbers")
)->SetElement(0, ShowPointNumbers_->isChecked());
// update the active view
if (this->view())
{
this->view()->render();
}
// OR: update all views
// pqApplicationCore::instance()->render();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment