File: PropertyWidgetsFilter.xml

package info (click to toggle)
paraview 5.13.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 544,220 kB
  • sloc: cpp: 3,374,605; ansic: 1,332,409; python: 150,381; xml: 122,166; sql: 65,887; sh: 7,317; javascript: 5,262; yacc: 4,417; java: 3,977; perl: 2,363; lex: 1,929; f90: 1,397; makefile: 170; objc: 153; tcl: 59; pascal: 50; fortran: 29
file content (49 lines) | stat: -rw-r--r-- 2,037 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<ServerManagerConfiguration>
  <!-- This is the server manager configuration XML. It defines the interface to
       our new filter. As a rule of thumb, try to locate the configuration for
       a filter already in ParaView
       that matches your filter and then model your xml on it
       Here, we just change the XML to create our custom widgets instead of
       default ones.
       -->
  <ProxyGroup name="filters">
   <SourceProxy name="MyPropertyWidgetsFilter" label="MyPropertyWidgets"
                class="vtkShrinkFilter"
                base_proxygroup="filters"
                base_proxyname="ShrinkFilter">

    <IntVectorProperty name="DemonstratePropertyWidget"
                          number_of_elements="1"
                          default_values="0"
                          panel_widget="my_property_widget_type">
      <Documentation>
        This property's widget is a custom widget.
      </Documentation>
      <BooleanDomain name="bool"/>
    </IntVectorProperty>

    <DoubleVectorProperty name="DemonstratePropertyWidgetDecorator"
                          number_of_elements="1"
                          default_values="0">
      <Documentation>
        This property's widget is standard, but the decorator controls it's
        logic. This property will be "available" only when
        ShrinkFactor >= 0.1.
      </Documentation>
      <Hints>
          <PropertyWidgetDecorator type="my_decorator" />
      </Hints>
    </DoubleVectorProperty>
    <DoubleVectorProperty command="GetShrinkFactor"
                       information_only="1"
                       panel_visibility="default"
                       name="ShrinkFactorInformation">
      <Documentation>
        This property's widget is standard, but it is a information_only property.
        The resulting widget will be disabled and show the value of GetShrinkFactor,
        once the changes have been applied.
      </Documentation>
    </DoubleVectorProperty>
   </SourceProxy>
 </ProxyGroup>
</ServerManagerConfiguration>