VTK  9.4.20241108
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
15#include "vtkFiltersCellGridModule.h" // For export macro.
16#include "vtkNew.h" // For ivar.
17
18#include <string> // For ivar.
19
20VTK_ABI_NAMESPACE_BEGIN
21
22class VTKFILTERSCELLGRID_EXPORT vtkCellGridCellSource : public vtkCellGridAlgorithm
23{
24public:
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
43 std::string GetCellTypeString() { return this->CellType; }
44
45 protected:
46 std::string CellType;
47 };
48
52 virtual void SetCellType(const char* cellType);
53 const char* GetCellType() const;
54
55protected:
57 ~vtkCellGridCellSource() override = default;
58
60 vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* ouInfo) override;
61
63
64private:
66 void operator=(const vtkCellGridCellSource&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif // vtkCellGridCellSource_h
Superclass for algorithms that produce only polydata as output.
A cell-grid query used by this filter.
vtkGetCharFromStdStringMacro(CellType)
Set/get the type of cell to create.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Create a cell-grid with one or more cells of the requested type.
~vtkCellGridCellSource() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *ouInfo) override
This is called by the superclass.
static vtkCellGridCellSource * New()
const char * GetCellType() const
virtual void SetCellType(const char *cellType)
Set/get the type of cell to create.
Perform an operation on cells in a vtkCellMetadata instance.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167