Hi Yumin,

Thanks a lot for your interest !! However...


> I assume once you load your xml plugin from the plugin_loader, and
> check the "Auto Load" checkbox, the next time you start paraview, your
> xml plugin is loaded automatically, no?


That's my problem: it is not loaded even in this case... Attached is a
minimal xml that exposes vtkImageMathematics to paraview filter list. I
cannot auto-load it.


> Now regarding the warning message, I believe it is due to the new
> addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see
> below), and the version shown in the plugin_loader_GUI refers to
> plugin "Version" you set when calling ADD_PARAVIEW_PLUGIN in
> CMakeLists.txt
>

Yes, my CMakeLists contains the version specification for the cxx plugins.
But thank you for the update about REQUIRED_PLUGINS, I was hoping that it
will solve my problem. So I set the PVCustomizer (cxx plugin, version "1.0"
in the CMakeLists) requiring the XML "ParaviewVTK". But I cannot load
"ParaviewVTK", so making the former depending on the latter is quite
awkward... Finally, you made me progressing and I have a more precise
question :
   - How to set the version of a plugin that is only an XML description of
VTK filters? -ie I don't have a CMakeLists for this...-

Thanks again Yumin!

Jerome


>
> On Fri, Oct 23, 2009 at 4:34 AM, Jérôme <[email protected]> wrote:
> > Hi,
> >
> > ParaView-CVS brought a good surprise for me a few days ago. The plugin
> > loader has been rewrote and is now offering an auto-load option that is
> very
> > useful.
> > However, I have an XML description of a lot of VTK native filters that
> > cannot be opened automatically. I have to "Load new" each time. Then, no
> > problem, the filters are exposed in the menu. But the plugin loader gives
> a
> > warning message (see screenshot attached) and no "Version" (effectively,
> the
> > XML doesn't have a "version=" element)...
> >
> > Second, I have an AutoStartPlugin that shows exactly the same problem
> > (PVCustomizer). The reason, I think, is that this plugin depends on VTK
> > filters (SplineFilter) that is described in the previous XML...
> >
> > Can someone tell me how to make the XML plugin 'autoloadeable' ? I wonder
> if
> > it will solve the second problem...
> >
> > Thanks a lot!
> >
> > Jerome
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
>
>
>
> --
> ~~~~~~~~~~~~~~~~
> Yumin Yuan
> R&D Engineer
> Kitware Inc.
> www.kitware.com
> Phone : (518) 881-4936
> email : [email protected]
> ~~~~~~~~~~~~~~~~
>
<ServerManagerConfiguration>
   <ProxyGroup name="filters">
      <!-- ================================================================== -->
      <SourceProxy name="ImageMathematics" class="vtkImageMathematics" label="Image Math">
         <Documentation
                       long_help="Provides some image operations, one or two inputs."
                       short_help="vtkImageMathematics filter.">
         </Documentation>
         <InputProperty
                       name="Input1"
                       command="SetInputConnection"
                       port_index="0">
            <ProxyGroupDomain name="groups">
               <Group name="sources"/>
               <Group name="filters"/>
            </ProxyGroupDomain>
            <DataTypeDomain name="input_type">
               <DataType value="vtkImageData"/>
            </DataTypeDomain>
            <Documentation>
               Set the input to the Image Mathematics filter.
            </Documentation>
         </InputProperty>
         <InputProperty
                       name="Input2"
                       command="SetInputConnection"
                       port_index="1"
                       is_optional="1">
            <ProxyGroupDomain name="groups">
               <Group name="sources"/>
               <Group name="filters"/>
            </ProxyGroupDomain>
            <DataTypeDomain name="input_type">
               <DataType value="vtkImageData"/>
            </DataTypeDomain>
            <Documentation>
               Set the input to the Image Mathematics filter.
            </Documentation>
         </InputProperty>
         
         <IntVectorProperty
                           name="Operation"
                           command="SetOperation"
                           number_of_elements="1"
                           default_values="0">
            
            <EnumerationDomain name="enum">
               <Entry value="0" text="Add"/>
               <Entry value="1" text="Substract"/>
               <Entry value="2" text="Multiply"/>
               <Entry value="3" text="Divide"/>
               <Entry value="4" text="Invert"/>
               <Entry value="5" text="Sin"/>
               <Entry value="6" text="Cos"/>
               <Entry value="7" text="Exp"/>
               <Entry value="8" text="Log"/>
               <Entry value="9" text="Abs"/>
               <Entry value="10" text="Sqr"/>
               <Entry value="11" text="Sqrt"/>
               <Entry value="12" text="Min"/>
               <Entry value="13" text="Max"/>
               <Entry value="14" text="Atan"/>
               <Entry value="15" text="Atan2"/>
               <Entry value="16" text="Multiply by k"/>
               <Entry value="17" text="Add c"/>
               <Entry value="18" text="Conjugate"/>
               <Entry value="19" text="Complex multiply"/>
               <Entry value="20" text="Replace by k"/>
            </EnumerationDomain>
         </IntVectorProperty>
         
         <DoubleVectorProperty
                              name="ConstantK"
                              command="SetConstantK"
                              number_of_elements="1"
                              default_values="1">
         </DoubleVectorProperty>
         
         <DoubleVectorProperty
                              name="ConstantC"
                              command="SetConstantC"
                              number_of_elements="1"
                              default_values="0">
         </DoubleVectorProperty>
         
         <IntVectorProperty
                           name="DivideByZeroToC"
                           command="SetDivideByZeroToC"
                           number_of_elements="1"
                           default_values="1">
            <BooleanDomain name="boolean"/>
         </IntVectorProperty>
         <IntVectorProperty
                           name="ReleaseDataFlag"
                           command="SetReleaseDataFlag"
                           number_of_elements="1"
                           default_values="0"
                           animateable="0">
            <BooleanDomain name="boolean"/>
            <Documentation>
               
            </Documentation>
         </IntVectorProperty>                  
      </SourceProxy>
      <!-- End ImageMathematics -->
   </ProxyGroup>
   <!-- End Filters Group -->
</ServerManagerConfiguration>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to