File: README.md

package info (click to toggle)
paraview 5.4.1%2Bdfsg4-3.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 218,616 kB
  • sloc: cpp: 2,331,508; ansic: 322,365; python: 111,051; xml: 79,203; tcl: 47,013; yacc: 4,877; java: 4,438; perl: 3,238; sh: 2,920; lex: 1,908; f90: 748; makefile: 273; pascal: 228; objc: 83; fortran: 31
file content (66 lines) | stat: -rw-r--r-- 4,763 bytes parent folder | download
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Introduction
============
This is an example plugin for implementing
your own LagrangianIntegrationModel to be used in
the LagrangianParticleTracker

For more information about these classes please consult
vtkLagrangianParticleTracker.h and vtkLagrangianBasicIntegrationModel.h

Each example class is self-documented.

Notes about Integration Model XML
=================================
This is a line by line explanation for LagrangianIntegrationModelExample.xml

<ServerManagerConfiguration> // Mandatory
  <ProxyGroup name="lagrangian_integration_models"> // Name is very important, mandatory
    <Proxy base_proxygroup="lagrangian_integration_models_abstract" // Mandatory
           base_proxyname="BasicIntegrationModel"                   // Mandatory
           class="vtkLagrangianMatidaIntegrationModel"  // the name of one own class, inherited from vtkLagrangianBasicIntegrationModel
           name="MatidaIntegrationModel"                // Shorter name, your choice
           label="Matida Integration Model">            // Display name, your choice

      // Use a property like this to add a selectable input array in the gui of the filter when using one own integration model
      <StringVectorProperty animateable="0"  // Mandatory, no animation support
                            command="SetInputArrayToProcess" // Mandatory, this method has 5
                              // arguments : SetInputArrayToProcess(index, port, connection, fieldAssociation, arrayName)
                              // index : a user index in order to identify the array, define it in default values, start at 1, index 0 is reserved.
                              // port : the port number , define it in default values
                              // connection : the connection in the port, define it in default values but should not be needed in tracker context
                              // fieldAssociaction : point data or cell data, defined in FieldDataDomain
                              // arrayName : actual array name, passed be paraview.
                            default_values_delimiter=";" // Only when using default values for multiples args, ie more than just the index
                            default_values="2;1;0;0:ParticleDiameter" // Default values, here it is port 1 with index 2, connection 0, type is PointData
                                                                        // (use 1 for CellData , 2 for fieldData, 3 for any), and default name of the array if available
                            element_types="0 0 0 0 2" // argument type, mandatory with SetInputArrayToProcess
                            label="FlowVelocity" // Label shown in the UI ( with space before high case char )
                            name="SelectFlowVelocity" // Name of the property
                            number_of_elements="5"> // Mandatory with SetInputArrayToProcess
         <ArrayListDomain name="array_list" // mandatory
                          input_domain_name="input_array_3" // To select only certain available array for the user,
                          // here it is input array with 3 component. see vtkLagrangianBasicIntegrationModel in utilities.xml for a list of available domain.
                          // FieldData are supported as well
                          // not setting an input_domain_name is allright and will let the user choose between all available arrays
                          attribute_type="Scalars"> // Not mandatory, this will change the default array selected, allowing one to have the "Scalars" or the "Vectors" selected by defaylt in the gui
          <RequiredProperties> // Mandatory
           <Property function="Input" // Mandatory
                     name="DummySource" /> // a Named property is Mandatory, but ont need to choose the correct one
                     // the flow input is called DummyInput
                     // the seed are called DummySource
                     // the surfaces are called DummySurface
          </RequiredProperties>
         </ArrayListDomain>
         <FieldDataDomain name="field_list"> // Needed if one want to be able to recover the field association, recommended.
          <RequiredProperties> // Should be the same as above RequiredProperties
           <Property function="Input"
                     name="DummyInput" />
          </RequiredProperties>
         </FieldDataDomain>
         <Documentation>This property contains the name of  // Documentation for the property
          the array to use as flow velocity.</Documentation>
        </StringVectorProperty>
        // And any other kinds of property one may want, like in any vtk/paraview filter.
     </Proxy>
  </ProxyGroup>
</ServerManagerConfiguration>