From b54f89ac05bc0cc05973164c820ae418d0b6e76f Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 3 Nov 2009 22:13:48 +0100 Subject: [PATCH] PV3Reader - render after toggling show point/patch names --- .../PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx | 9 +++++++++ .../PV3blockMeshReader/pqPV3blockMeshReaderPanel.cxx | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx index cfede9002c..4f12089f45 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/pqPV3FoamReaderPanel.cxx @@ -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(); } diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/pqPV3blockMeshReaderPanel.cxx b/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/pqPV3blockMeshReaderPanel.cxx index 45bdb661fc..8114a14709 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/pqPV3blockMeshReaderPanel.cxx +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/pqPV3blockMeshReaderPanel.cxx @@ -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(); }