[Paraview] Scalar display upon filter completion

shawn mckenziie shawn.mcknezie at gmail.com
Mon May 29 10:16:37 EDT 2006


Hi,
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
displayalong with many other filters. I believe the output is automatically
written when the PrintSelf method is called within the vtk class.

the filter is available in the menu, and appears to process the data set (as
it requires time to execute) although no scalar output is displayed

i have included my server manager and xml files for reference
any sugggentions are 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/20060529/1e566427/attachment.html


More information about the ParaView mailing list