How to specify a namespace for SourceProxy in the XML file?

Hello,

My ParaView plugin works fine for a C++ class MyClass. However, when I put the class in a namespace mynamescape, ParaView does not recognize it, leading to a crash with the well-known message “This typically means that ParaView does not know about the request class to create an instance of if. Ensure that it has been correctly wrapped using the client-server wrappers and the wrapping has been initialized. Note class names are case-sensitive.

Can I somehow specify the name of the namespace containing the class in the ServerManagerConfiguration? It would make sense to me to have something like this:

<SourceProxy name="..."
             namespace="mynamespace"
             class="MyClass"
             label="...">

Where can I find the documentation for the ParaView plugin XML file? I would like to know what fields are supported in ProxyGroup, the allowed types, etc.

Thank you

Well, what is a namespace ? I don’t think this concept exists for proxies.

It was just an example how I would imagine supporting a namespace in the XML file.

I don’t think this concept exists for proxies.

If I cannot use a namespace in the PV plugin wrapping, I can live with it. The problem is that I don’t know the supported keywords and values in the XML file.

But what is a namespace here ? What are you trying to do ?

Originally, I had

class MyClass : public vtkPNGReader {
    ...
}

with the XML file

<ServerManagerConfiguration>
  <ProxyGroup name="sources">
   <SourceProxy name="MyReader"
                class="MyClass"
                label="My reader">
...

which works in ParaView. As my code is becoming more and more complex, I restructured it into namespaces.

namespace mynamespace {

class MyClass : public vtkPNGReader {
    ...
}

}

I can build the plugin, but when I use it, I get the error written in my first post. How should I modify the XML file so that it recognizes MyClass?

Got it, this is not supported.

OK, thank you.