Commit 6607de49 authored by Aron Helser's avatar Aron Helser Committed by Kitware Robot

Merge topic 'momentinvariants_plugin'

574a5953 Prefer conditional inclusion in SMApplication to plugin
391e442e Add parallel moment invariants filter, release docs
9b6b6164 Add MomentInvariants VTK remote module as plugin.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !2515
parents d7fcb6af 574a5953
Pipeline #107076 failed with stage
in 0 seconds
# Moment Invariants
Added the MomentInvariants filters from the VTK remote module. Only available if the cmake option 'Module_vtkFiltersMomentInvariants' is enabled.
The theory and the algorithm are described in [Roxana Bujack and
Hans Hagen: "Moment Invariants for Multi-Dimensional Data"](http://www.informatik.uni-leipzig.de/~bujack/2017TensorDagstuhl.pdf)
Developed by Roxana Bujack and Karen Tsai at Los Alamos National Laboratory.
......@@ -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="ComputeMoments" class="vtkComputeMoments" label="Compute Moments">
<Documentation
long_help="MomentInvariants vtkComputeMoments"
short_help="MomentInvariants vtkComputeMoments">
</Documentation>
<InputProperty
name="Input Dataset"
port_index="0"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
The dataset of which the moments are computed
</Documentation>
</InputProperty>
<InputProperty
name="Input Grid"
port_index="1"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
Optional. The grid locations where the moments are computed. If not set, use the original grid.
</Documentation>
</InputProperty>
<!-- <StringVectorProperty name="NameOfPointData"
command="SetNameOfPointData"
number_of_elements="1"
default_values="points">
</StringVectorProperty> -->
<IntVectorProperty name="Order"
command="SetOrder"
number_of_elements="1"
default_values="2">
</IntVectorProperty>
<IntVectorProperty name="NumberOfIntegrationSteps"
command="SetNumberOfIntegrationSteps"
number_of_elements="1"
default_values="5">
</IntVectorProperty>
<DoubleVectorProperty name="Radii"
command="SetRadiiArray"
argument_is_array="1"
number_of_elements="10"
default_values="1 0 0 0 0 0 0 0 0 0">
</DoubleVectorProperty>
<Hints>
<ShowInMenu category="Moment Invariants" />
</Hints>
</SourceProxy>
<SourceProxy name="ParallelComputeMoments" class="vtkPComputeMoments" label="Parallel Compute Moments">
<Documentation
long_help="MomentInvariants vtkPComputeMoments"
short_help="MomentInvariants vtkPComputeMoments">
</Documentation>
<InputProperty
name="Input Dataset"
port_index="0"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
The dataset of which the moments are computed
</Documentation>
</InputProperty>
<InputProperty
name="Input Grid"
port_index="1"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
Optional. The grid locations where the moments are computed. If not set, use the original grid.
</Documentation>
</InputProperty>
<!-- <StringVectorProperty name="NameOfPointData"
command="SetNameOfPointData"
number_of_elements="1"
default_values="points">
</StringVectorProperty> -->
<IntVectorProperty name="Order"
command="SetOrder"
number_of_elements="1"
default_values="2">
</IntVectorProperty>
<IntVectorProperty name="NumberOfIntegrationSteps"
command="SetNumberOfIntegrationSteps"
number_of_elements="1"
default_values="5">
</IntVectorProperty>
<DoubleVectorProperty name="Radii"
command="SetRadiiArray"
argument_is_array="1"
number_of_elements="10"
default_values="1 0 0 0 0 0 0 0 0 0">
</DoubleVectorProperty>
<Hints>
<ShowInMenu category="Moment Invariants" />
</Hints>
</SourceProxy>
<SourceProxy name="MomentInvariants" class="vtkMomentInvariants" label="Moment Invariants">
<Documentation
long_help="MomentInvariants vtkMomentInvariants"
short_help="MomentInvariants vtkMomentInvariants">
</Documentation>
<InputProperty
name="Input Pattern"
port_index="0"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
The pattern, of scalar, vector, or matrix type
</Documentation>
</InputProperty>
<InputProperty
name="Input Computed Moments"
port_index="1"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
<Documentation>
The output of computeMoments, which is vtkImageData.
</Documentation>
</InputProperty>
<!-- <StringVectorProperty name="NameOfPointData"
command="SetNameOfPointData"
number_of_elements="1"
default_values="">
</StringVectorProperty> -->
<IntVectorProperty name="Order"
command="SetOrder"
number_of_elements="1"
default_values="2">
</IntVectorProperty>
<IntVectorProperty name="NumberOfIntegrationSteps"
command="SetNumberOfIntegrationSteps"
number_of_elements="1"
default_values="5">
</IntVectorProperty>
<IntVectorProperty name="AngleResolution"
command="SetAngleResolution"
number_of_elements="1"
default_values="100">
</IntVectorProperty>
<DoubleVectorProperty name="Eps"
command="SetEps"
number_of_elements="1"
default_values="1e-2">
</DoubleVectorProperty>
<IntVectorProperty name="IsTranslation"
command="SetIsTranslation"
number_of_elements="1"
default_values="0">
<BooleanDomain name="bool"/>
</IntVectorProperty>
<IntVectorProperty name="IsScaling"
command="SetIsScaling"
number_of_elements="1"
default_values="0">
<BooleanDomain name="bool"/>
</IntVectorProperty>
<IntVectorProperty name="IsRotation"
command="SetIsRotation"
number_of_elements="1"
default_values="1">
<BooleanDomain name="bool"/>
</IntVectorProperty>
<IntVectorProperty name="IsReflection"
command="SetIsReflection"
number_of_elements="1"
default_values="0">
<BooleanDomain name="bool"/>
</IntVectorProperty>
<Hints>
<ShowInMenu category="Moment Invariants" />
</Hints>
</SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>
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