How to set a a dynamic DoubleVectorProperty in xml?

I would like to define a property in the server xml for my filter like this.

      <DoubleVectorProperty name="MyPoints">
     </DoubleVectorProperty>

MyPoints is a dynamic array (new double[size]) and I update MyPoints in RequestData .
Then, on the ParaView layer I can extract it like this.

        vtkSMDoubleVectorProperty* points =
                vtkSMDoubleVectorProperty::SafeDownCast(source->getProxy()->GetProperty("MyPoints"));

Is it possible to do something like this?

Thanks,
Cam

I’d start by looking at something else that does similar … RGBPoints on LookupTable proxy comes to mind…follow that pattern.

....
       <DoubleVectorProperty clean_command="RemoveAllPoints"
                            command="AddRGBPoint"
                            name="RGBPoints"
                            number_of_elements_per_command="4"
                            repeat_command="1"
                            number_of_elements="12"
                            default_values="0 0.231373 0.298039 0.752941 0.5 0.865003 0.865003 0.865003 1 0.705882 0.0156863 0.14902">
        <Documentation>
          Specify the control points that form the color-transfer-function. These are
          a list of 4-tuples of the form (x, r, g, b) where x is the data value,
          and r,g,b are three color components in the range [0,1].
        </Documentation>
      </DoubleVectorProperty>

Thank you Utkarsh. This is a really good example.