VTK  9.7.1
vtkCellGridCellSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkCellGridCellSource_h
12 #define vtkCellGridCellSource_h
13 
14 #include "vtkCellGridAlgorithm.h"
15 #include "vtkFiltersCellGridModule.h" // For export macro.
16 #include "vtkNew.h" // For ivar.
17 
18 #include <string> // For ivar.
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKFILTERSCELLGRID_EXPORT vtkCellGridCellSource : public vtkCellGridAlgorithm
23 {
24 public:
25  static vtkCellGridCellSource* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30  class Query : public vtkCellGridQuery
31  {
32  public:
33  static Query* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
41  vtkGetCharFromStdStringMacro(CellType);
42  vtkSetStdStringFromCharMacro(CellType);
43  std::string GetCellTypeString() { return this->CellType; }
44 
45  protected:
47  };
48 
52  virtual void SetCellType(const char* cellType);
53  const char* GetCellType() const;
54 
55 protected:
57  ~vtkCellGridCellSource() override = default;
58 
59  int RequestData(
60  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* ouInfo) override;
61 
63 
64 private:
66  void operator=(const vtkCellGridCellSource&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif // vtkCellGridCellSource_h
Perform an operation on cells in a vtkCellMetadata instance.
Store vtkAlgorithm input/output information.
static vtkCellGridAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
VTKIOCATALYSTCONDUIT_EXPORT int GetCellType(const std::string &shape)
Get vtk cell type from conduit shape name throw a runtime_error on unsupported type.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Create a cell-grid with one or more cells of the requested type.
Allocate and hold a VTK object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
A cell-grid query used by this filter.