Situation: porting ParaView custom application from PV5.10 to 5.12.
Affected plugin: a derived “render view” where only the points related selection buttons are hidden, no own code or functionality added to standard render view (code see below).
Steps before problem arises:
- Generate a “cone” with appropriate “Source” (or actually no matter what)
- Apply a “Clip” filter - no properties changed - “Apply”
- Now with the “Show Plane” checkbox, display of the interactive plane can be turned on or off. This is working in PV 5.12 “original” as well as in the derived custom application.
Steps that generate problem:
- While the display is “off”, split the render view vertically and create another render view
→ Even though no objects are shown in the second render view, the “interactive plane” is displayed - in both PV 5.12 “original” and the derived application! Note that the “Clip” filter is selected in the pipeline browser, so the “Properties” panel shows the related properties - and indeed the “Show Plane” checkbox is still “off” - Click into the left (original) render view (where the clipped cone is visible)
→ Now the “interactive plane” is displayed also there, and in the properties panel the checkbox jumps to “on”. Again in both PV 5.12 “original” and derived application - Click back into the right render view and turn on the “Clip” object in the pipeline browser
→ Now in both render views the “interactive plane” is shown, again in both softwares. - The next step is different now for the two softwares: While in “original PV 5.12”, the visibility of the “interactive plane” can be turned off again (affecting both views), this is not possible in the derived application: there the checkbox can now be on or off, but the display stays always in both render views.
To me this looks like there are two issues:
a) Something not really as it should be in PV 5.12 “original”
b) A strange difference in the behaviour between the two softwares - and this although the new plugin uses the same code
Code of the derived render view - 3 files:
CMakeLists.txt:
set(plugin_name AtgRenderView)
paraview_add_plugin(${plugin_name}
VERSION "1.2.0"
SERVER_MANAGER_XML plugin.xml
XML_DOCUMENTATION OFF)
# the only purpose of this is to bring the paraview.plugin file into QtCreator
add_custom_target(${plugin_name}_plugin_spec
SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/paraview.plugin"
"${CMAKE_CURRENT_SOURCE_DIR}/plugin.xml")
paraview.plugin:
NAME
AtgRenderView
DESCRIPTION
Render view with reduced selection functionality, constrained to
cells only - in order not to confuse the users with point selection
that is never required for block model handling.
REQUIRES_MODULES
VTK::CommonCore
plugin.xml:
<!--
Program: AthosGEO
Copyright (c) 2018 cobo GmbH
All rights reserved.
AthosGEO View is a free software based on ParaView; you can redistribute
and/or modify it under the same terms as ParaView
-->
<ServerManagerConfiguration>
<ProxyGroup name="views">
<RenderViewProxy name="AtgRenderView"
class="vtkPVRenderView"
label="Athos Render View"
processes="client|renderserver|dataserver"
base_proxygroup="views"
base_proxyname="RenderView">
<Hints>
<StandardViewFrameActions default_actions="on">
<!-- This is the full list of view frame actions:
* all views:
AddSelection
SubtractSelection
ToggleSelection
BackButton
ForwardButton
captureViewAction
* chart view:
SelectPolygon
SelectRectangle
* render view:
ToggleInteractionMode
AdjustCamera
SelectSurfaceCells
SelectSurfacePoints
SelectFrustumCells
SelectFrustumPoints
SelectPolygonSelectionCells
SelectPolygonSelectionPoints
SelectBlock
InteractiveSelectSurfacePointData
InteractiveSelectSurfaceCellData
InteractiveSelectSurfaceCells
InteractiveSelectSurfacePoints
HoveringSurfacePoints
HoveringSurfaceCells
Grow Selection
Shrink Selection
ClearSelection
Notes:
- These actions can either be turned OFF by defining a sub-element
with an attribute "visibility" with value "never"
- Or they can be first all turned off with an attribute (above)
named "default_actions" set to "none", and then the single actions
turned ON with a sub-element with attribute "visibility" anything
else than "never"
-->
<!--
<SelectSurfaceCells visibility="on" />
-->
<SelectSurfacePoints visibility="never" />
<SelectFrustumPoints visibility="never" />
<SelectPolygonSelectionPoints visibility="never" />
<SelectBlock visibility="never" />
<InteractiveSelectSurfacePointData visibility="never" />
<InteractiveSelectSurfaceCellData visibility="never" />
<InteractiveSelectSurfacePoints visibility="never" />
<HoveringSurfacePoints visibility="never" />
</StandardViewFrameActions>
</Hints>
</RenderViewProxy>
</ProxyGroup>
</ServerManagerConfiguration>
Note: All the above happens with the “official release” of PV 5.12.0 - and right now I see that there is already an official release 5.12.1: Is there a chance that the above problems are resolved…??