Commit 574a5953 authored by Aron Helser's avatar Aron Helser

Prefer conditional inclusion in SMApplication to plugin

Include the xml UI specification if the VTK module is
enabled, directly in SMApplication, instead of as a plugin.
Follow label->name convention.
parent 391e442e
......@@ -165,6 +165,13 @@ if (PARAVIEW_USE_OPENTURNS)
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_openturns.xml)
endif()
list(FIND VTK_MODULES_ENABLED "vtkFiltersMomentInvariants" vtkFiltersMomentInvariants_index)
if (vtkFiltersMomentInvariants_index GREATER 0)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/MomentInvariants.xml)
endif()
#------------------------------------------------------------------------------
if (PARAVIEW_ENABLE_PYTHON)
......
<ServerManagerConfiguration>
<ProxyGroup name="filters">
<SourceProxy name="MI ComputeMoments" class="vtkComputeMoments" label="Compute Moments">
<SourceProxy name="ComputeMoments" class="vtkComputeMoments" label="Compute Moments">
<Documentation
long_help="MomentInvariants vtkComputeMoments"
short_help="MomentInvariants vtkComputeMoments">
......@@ -61,7 +61,7 @@
<ShowInMenu category="Moment Invariants" />
</Hints>
</SourceProxy>
<SourceProxy name="MI PComputeMoments" class="vtkPComputeMoments" label="Parallel Compute Moments">
<SourceProxy name="ParallelComputeMoments" class="vtkPComputeMoments" label="Parallel Compute Moments">
<Documentation
long_help="MomentInvariants vtkPComputeMoments"
short_help="MomentInvariants vtkPComputeMoments">
......@@ -122,7 +122,7 @@
<ShowInMenu category="Moment Invariants" />
</Hints>
</SourceProxy>
<SourceProxy name="MI vtkMomentInvariants" class="vtkMomentInvariants" label="Moment Invariants">
<SourceProxy name="MomentInvariants" class="vtkMomentInvariants" label="Moment Invariants">
<Documentation
long_help="MomentInvariants vtkMomentInvariants"
short_help="MomentInvariants vtkMomentInvariants">
......
include_directories(${VTK_INCLUDE_DIRS})
if (Module_vtkFiltersMomentInvariants)
add_paraview_plugin(
MomentInvariants
"1.0"
SERVER_MANAGER_XML MomentInvariants.xml
)
# Add testing if necessary
# if(BUILD_TESTING)
# add_subdirectory(Testing)
# endif()
endif()
if (Module_vtkFiltersMomentInvariants)
pv_plugin(MomentInvariants
DESCRIPTION "Calculate Moment Invariants Filter"
)
endif()
Markdown is supported
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