[Paraview] HOW TO ENABLE AN ADDED FILTER ON PARAVIEW
vpessoa at lncc.br
vpessoa at lncc.br
Thu Jul 6 13:11:32 EDT 2006
Hi Amy.
Here it goes:
<!-- CLIENT -->
<ServerManagerFile name="../server/hmImagingServer.xml"/>
<Module name="HMGaussianSmoothFilter"
menu_name="HM Gaussian SmoothFilter"
root_name="HMGaussianSmoothFilter"
module_type="Filter"
long_help="This filter applies a Gaussian smooth filter on the
selected set of images.">
<Filter class="vtkGaussianSmoothFilter">
<Input name="Input"
class="vtkImageData"/>
</Filter>
<InputMenu trace_name="Input" property="Input"
label="Input"
help="Set the input to this filter."
input_name="Input"/>
<ThumbWheel label="Dimensionality"
trace_name="Dimensionality"
property="Dimensionality"
resolution="1"
minimum_value="0"
help="Set Dimensionality."/>
<Documentation>
This filter applies a Gaussian smooth filter on the selected set of images.
</Documentation>
</Module>
<!-- SERVER -->
<SourceProxy name="HMGaussianSmoothFilter" class="vtkGaussianSmoothFilter">
<InputProperty
name="Input"
command="SetInput">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
</InputProperty>
<IntVectorProperty
name="Dimensionality"
command="SetDimensionality"
number_of_elements="1"
animateable="1"
default_values="1" >
<IntRangeDomain name="range" min="0"/>
</IntVectorProperty>
</SourceProxy>
Thank's for your help!
----------------------------------------
Atencisamente,
Vinicius Pessôa
Laboratório Nacional de Computação Científica
+55 (24) 2233-6098
+55 (24) 8803-7061
Quoting Amy Squillacote <amy.squillacote at kitware.com>:
> Please post the whole XML entry for your custom filter for both the
> client and server XML, not just the part about what dataset type your
> filter accepts. There are other factors (e.g., the number and type of
> attribute data arrays in the dataset) that would affect whether your
> filter is enabled.
>
> - Amy
>
> vpessoa at lncc.br wrote:
> > Hi All.
> >
> > I've added a custom filter into paraview module. The problem is that I
> can't
> > enable it.
> > At my client's XMl I have a:
> >
> > <Input name="Input"
> > class="vtkImageData"/>
> > </Filter>
> >
> > Server's:
> >
> > <DataTypeDomain name="input_type">
> > <DataType value="vtkImageData"/>
> > </DataTypeDomain>
> >
> > Even with a vtkImageData source loaded, my filter stills won't enable.
> >
> > A curious thing is that I've copied the smooth from the paraview's XML into
> > mine, and created a Smooth2. As a result, I had a Smooth2 disabled at the
> Menu!
> >
> > Does anyone knows how to solve this problem (enabling a filter at the
> "Filters"
> > menu?)
> > ---------------------------------------------------
> > Atencisamente,
> > Vinicius Pessôa
> > Laboratório Nacional de Computação Científica
> > +55 (24) 2233-6098
> > +55 (24) 8803-7061
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
> >
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the ParaView
mailing list