mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
PV3Reader - render after toggling show point/patch names
This commit is contained in:
@ -39,6 +39,7 @@ License
|
|||||||
#include "pqApplicationCore.h"
|
#include "pqApplicationCore.h"
|
||||||
#include "pqPipelineRepresentation.h"
|
#include "pqPipelineRepresentation.h"
|
||||||
#include "pqServerManagerModel.h"
|
#include "pqServerManagerModel.h"
|
||||||
|
#include "pqView.h"
|
||||||
|
|
||||||
// Paraview Server Manager
|
// Paraview Server Manager
|
||||||
#include "vtkSMDoubleVectorProperty.h"
|
#include "vtkSMDoubleVectorProperty.h"
|
||||||
@ -120,6 +121,14 @@ void pqPV3FoamReaderPanel::ShowPatchNamesToggled()
|
|||||||
(
|
(
|
||||||
sourceProxy_->GetProperty("UiShowPatchNames")
|
sourceProxy_->GetProperty("UiShowPatchNames")
|
||||||
)->SetElement(0, ShowPatchNames_->isChecked());
|
)->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 "pqApplicationCore.h"
|
||||||
#include "pqPipelineRepresentation.h"
|
#include "pqPipelineRepresentation.h"
|
||||||
#include "pqServerManagerModel.h"
|
#include "pqServerManagerModel.h"
|
||||||
|
#include "pqView.h"
|
||||||
|
|
||||||
// Paraview Server Manager
|
// Paraview Server Manager
|
||||||
#include "vtkSMDoubleVectorProperty.h"
|
#include "vtkSMDoubleVectorProperty.h"
|
||||||
@ -94,6 +95,14 @@ void pqPV3blockMeshReaderPanel::ShowPointNumbersToggled()
|
|||||||
(
|
(
|
||||||
sourceProxy_->GetProperty("UiShowPointNumbers")
|
sourceProxy_->GetProperty("UiShowPointNumbers")
|
||||||
)->SetElement(0, ShowPointNumbers_->isChecked());
|
)->SetElement(0, ShowPointNumbers_->isChecked());
|
||||||
|
|
||||||
|
// update the active view
|
||||||
|
if (this->view())
|
||||||
|
{
|
||||||
|
this->view()->render();
|
||||||
|
}
|
||||||
|
// OR: update all views
|
||||||
|
// pqApplicationCore::instance()->render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user