diff --git a/src/Cxx/Developers/AlgorithmFilter.md b/src/Cxx/Developers/AlgorithmFilter.md index 4cfd8868fef03b3a472ae65575aef722c1977023..b65adb53bf7fcb9fe938604544ad56345afb1750 100644 --- a/src/Cxx/Developers/AlgorithmFilter.md +++ b/src/Cxx/Developers/AlgorithmFilter.md @@ -1,3 +1,16 @@ ### Description This example demonstrates how to create a filter that accepts a custom class and returns a custom class. To test that it is working, the class vtkTest simply stores a double named 'Value' that is instantiated to the value of 4.5. Example.cxx instantiates a vtkTest and sets its value to 5.6. The filter adds 1.0 to this value, so the vtkTest that is the output of the vtkTestAlgorithmFilter should contain the value 6.6. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/AlgorithmSource.md b/src/Cxx/Developers/AlgorithmSource.md index 477684d71f2d53d6e73d9e4bf3d11f16bc495986..00986865f1b58bf9214198b46e2002f4528b0efa 100644 --- a/src/Cxx/Developers/AlgorithmSource.md +++ b/src/Cxx/Developers/AlgorithmSource.md @@ -1,3 +1,16 @@ ### Description This example demonstrates how to create a source that returns a custom class. To test that it is working, the class vtkTest1 simply stores a double named 'Value' that is instantiated to the value of 4.5. Example.cxx instantiates a vtkTestSource which produces a vtkTest1. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/GraphAlgorithmFilter.md b/src/Cxx/Developers/GraphAlgorithmFilter.md index 5f432696c54508c08d44e61c45e539c3569f89d1..c7e3cc63bed8807eac7c25151bdc16bd3a9ecc7d 100644 --- a/src/Cxx/Developers/GraphAlgorithmFilter.md +++ b/src/Cxx/Developers/GraphAlgorithmFilter.md @@ -1,3 +1,16 @@ ### Description This example demonstrates how to create a filter that takes a vtkGraph as input and produces a vtkGraph as output. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/GraphAlgorithmSource.md b/src/Cxx/Developers/GraphAlgorithmSource.md index 30d4b06b7c901b121bd71c3435a0b882d0614f38..ec121ce25c926c63288f25e0e7096242663e27ad 100644 --- a/src/Cxx/Developers/GraphAlgorithmSource.md +++ b/src/Cxx/Developers/GraphAlgorithmSource.md @@ -1,3 +1,16 @@ ### Description This example produces a vtkGraph as output. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/ImageAlgorithmFilter.md b/src/Cxx/Developers/ImageAlgorithmFilter.md index 3e867e4e9ce4eea5a3b7529b30e2dd8ca9757b27..bce43f3d99e156c592d5812d0a2d5d77e865bd0c 100644 --- a/src/Cxx/Developers/ImageAlgorithmFilter.md +++ b/src/Cxx/Developers/ImageAlgorithmFilter.md @@ -1,3 +1,16 @@ ### Description This example demonstrates how to setup the pipeline for a {{class|vtkImageAlgorithm}} filter that takes a {{class|vtkImageData}} as input and produces another vtkImageData as output. This particular example creates a 2x2 image and fills it with "2"s. The filter changes the (0,0) element to a 5. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/PolyDataAlgorithmReader.md b/src/Cxx/Developers/PolyDataAlgorithmReader.md index 94a9c5f15f5d205fc735ebbfdbc1541cc63a7b3e..977ba0b2e55223192eee58517ba47566bc1c4229 100644 --- a/src/Cxx/Developers/PolyDataAlgorithmReader.md +++ b/src/Cxx/Developers/PolyDataAlgorithmReader.md @@ -1,3 +1,16 @@ ### Description This example demonstrates a reader that takes nothing as input and produces a vtkPolyData as output. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/PolyDataFilter.md b/src/Cxx/Developers/PolyDataFilter.md index d046986b0cdcaa523aaee3eb26bbd08d9ce7cf74..ecbf791d1278d664e0e118a376851a6d79e753e8 100644 --- a/src/Cxx/Developers/PolyDataFilter.md +++ b/src/Cxx/Developers/PolyDataFilter.md @@ -1,3 +1,16 @@ ### Description This example demonstrates a filter named vtkTestPolyDataFilter that takes a vtkPolyData as input and produces a vtkPolyData as output. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Cxx/Developers/ProgressReport.md b/src/Cxx/Developers/ProgressReport.md index 5aff1113c584ff42c53c7fdcadb2a1eb2d775d61..3da5061053d87766246793e6ae8b4fe5555ca10b 100644 --- a/src/Cxx/Developers/ProgressReport.md +++ b/src/Cxx/Developers/ProgressReport.md @@ -1,3 +1,16 @@ ### Description This example demonstrates how to get the progress of a filter. This requires that the filter is updating its progress in a sensible way. A sample filter is provided which loops through the input points and updates its progress along the way. + +You will need the following in your CMakeLists.txt file: + +```cmake +find_package(VTK + COMPONENTS + CommonCore + CommonDataModel + CommonExecutionModel + FiltersSources + InfovisCore +) +``` diff --git a/src/Python/Utilities/VTKModulesForCxx.py b/src/Python/Utilities/VTKModulesForCxx.py index 5a7611f3b874a5dced4363e2ccba5eb0d279733a..7e313efed265a83f5bcdc427d38078a203735cfb 100755 --- a/src/Python/Utilities/VTKModulesForCxx.py +++ b/src/Python/Utilities/VTKModulesForCxx.py @@ -144,7 +144,7 @@ def disp_components(modules, module_implements): for key in keys: res.append( f' # {key.split("::")[1]:<{max_width}} # implements {", ".join(sorted(module_implements[key]))}') - res.append(')') + res.append(')\n') return res