vtkSteeringDataGenerator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
92 #ifndef vtkSteeringDataGenerator_h
93 #define vtkSteeringDataGenerator_h
94 
95 #include "vtkAlgorithmOutput.h"
96 #include "vtkDataObjectAlgorithm.h"
97 #include "vtkRemotingLiveModule.h" //needed for exports
98 
99 class vtkSelection;
100 
102 {
103 public:
104  static vtkSteeringDataGenerator* New();
106  void PrintSelf(ostream& os, vtkIndent indent) override;
107 
109 
114  vtkSetMacro(PartitionType, int);
115  vtkGetMacro(PartitionType, int);
117 
119 
125  vtkSetMacro(FieldAssociation, int);
126  vtkGetMacro(FieldAssociation, int);
128 
130 
137  void SetSelectionConnection(int index, vtkAlgorithmOutput* algOutput)
138  {
139  this->SetInputConnection(index, algOutput);
140  }
141 
143  {
144  this->SetInputConnection(0u, algOutput);
145  }
147 
149 
156  void SetTuple1Double(const char* arrayname, vtkIdType index, double val);
157  void SetTuple1Int(const char* arrayname, vtkIdType index, int val);
158  void SetTuple1IdType(const char* arrayname, vtkIdType index, vtkIdType val);
159  void SetTuple2Double(const char* arrayname, vtkIdType index, double val0, double val1);
160  void SetTuple2Int(const char* arrayname, vtkIdType index, int val0, int val1);
161  void SetTuple2IdType(const char* arrayname, vtkIdType index, vtkIdType val0, vtkIdType val1);
162  void SetTuple3Double(
163  const char* arrayname, vtkIdType index, double val0, double val1, double val2);
164  void SetTuple3Int(const char* arrayname, vtkIdType index, int val0, int val1, int val2);
165  void SetTuple3IdType(
166  const char* arrayname, vtkIdType index, vtkIdType val0, vtkIdType val1, vtkIdType val3);
168 
172  void Clear(const char* arrayname);
173 
177  void TransferSelectionToInternals(vtkSelection* selection);
178 
179 protected:
181  ~vtkSteeringDataGenerator() override;
182 
183  int FillInputPortInformation(int port, vtkInformation* info) override;
184  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
185  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
186  vtkInformationVector* outputVector) override;
187  int RequestData(vtkInformation* vtkNotUsed(request),
188  vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
189 
192 
193 private:
195  void operator=(const vtkSteeringDataGenerator&) = delete;
196 
197  class vtkInternals;
198  vtkInternals* Internals;
199 };
200 
201 #endif
source to generate dataset given field arrays
static vtkDataObjectAlgorithm * New()
#define VTKREMOTINGLIVE_EXPORT
info
int vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetSelectionConnection(vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port).
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
port
index
void operator=(const vtkObjectBase &)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
void SetSelectionConnection(int index, vtkAlgorithmOutput *algOutput)
Convenience method to specify the selection connection (2nd input port).