[Paraview] Display scalar output from a filter

shawn mckenziie shawn.mcknezie at gmail.com
Thu May 25 15:44:42 EDT 2006


I have a vtk filter (vtkMassProperties) that calculates scalar values for
surfaceArea and Volume.
I would like to display these values on Paraview's parameters widget after
running the filter on a data set.

the clip and integrate attribute filters produce a similar desired display
but the server manager and xml files for these do not reveal how this output
is displayed.
There are getSurfaceArea and GetVolume calls that are visible within the
scope of the code, so i have set the appropriate command to such.

the filter still does not regester, so I have included my files...i have a
feeling i may be on the wrong track
any help is appreciated
shawn

MassProperties.xml
--------------------------------------
<ModuleInterfaces>
 <ServerManagerFile name="MassProperties.pvsm"/>
 <Module name="MassProperties"
         root_name="MassProp"
         replace_input="0"
         menu_name="Mass Properties"
         module_type="Filter"
         long_help="MassProperties"
         short_help="MassProperties">
   <Filter class="vtkMassProperties">
     <Input name="Input"
            class="vtkDataSet">
     </Input>
   </Filter>
   <InputMenu trace_name="Input" property="Input"
              id="im"
              label="Input"
              help="Set the triangulated input to analyzie."
              input_name="Input"/>
   <Documentation>
               SurfaceReconstruction
   </Documentation>
 </Module>
</ModuleInterfaces>


MassProperties.pvsm
--------------------------------------------
<ServerManagerConfiguration>
       <ProxyGroup name="filters">
               <SourceProxy name="MassProperties"
                   class="vtkMassProperties">
                       <InputProperty name="Input" command="SetInput">
                               <ProxyGroupDomain name="groups">
                                       <Group name="sources"/>
                                       <Group name="filters"/>
                               </ProxyGroupDomain>
                               <DataTypeDomain name="input_type">
                                       <DataType value="vtkDataSet"/>
                               </DataTypeDomain>
                       </InputProperty>
                       <DoubleVectorProperty name="SurfaceArea"
                          command="GetSurfaceArea"
                          information_only="1"
                       </DoubleVectorProperty>
                       <DoubleVectorProperty name="Volume"
                          command="GetVolume"
                          information_only="1"
                       </DoubleVectorProperty>
               </SourceProxy>
       </ProxyGroup>
</ServerManagerConfiguration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060525/ac0331ad/attachment.htm


More information about the ParaView mailing list