Adaptors
CatalystTestDriver
vtkCPUnstructuredGridBuilder.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
11
#ifndef vtkCPUnstructuredGridBuilder_h
12
#define vtkCPUnstructuredGridBuilder_h
13
14
#include "
vtkCPGridBuilder.h
"
15
#include "
vtkPVCatalystTestDriverModule.h
"
// needed for export macros
16
17
class
vtkDataObject
;
18
class
vtkIdList
;
19
class
vtkPoints
;
20
class
vtkUnstructuredGrid
;
21
22
class
VTKPVCATALYSTTESTDRIVER_EXPORT
vtkCPUnstructuredGridBuilder
:
public
vtkCPGridBuilder
23
{
24
public
:
25
static
vtkCPUnstructuredGridBuilder
*
New
();
26
vtkTypeMacro(
vtkCPUnstructuredGridBuilder
,
vtkCPGridBuilder
);
27
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
28
34
vtkDataObject
*
GetGrid
(
unsigned
long
timeStep,
double
time,
int
& builtNewGrid)
override
;
35
39
vtkUnstructuredGrid
* GetUnstructuredGrid();
40
45
bool
SetPoints(
vtkPoints
* points);
46
50
virtual
void
Allocate(
vtkIdType
numCells = 1000,
int
extSize = 1000);
51
53
57
vtkIdType
InsertNextCell(
int
type,
vtkIdType
npts,
vtkIdType
* pts);
58
vtkIdType
InsertNextCell(
int
type,
vtkIdList
* ptIds);
60
61
protected
:
62
vtkCPUnstructuredGridBuilder
();
63
~
vtkCPUnstructuredGridBuilder
()
override
;
64
69
bool
IsGridModified
;
70
74
void
SetUnstructuredGrid(
vtkUnstructuredGrid
* grid);
75
76
private
:
77
vtkCPUnstructuredGridBuilder
(
const
vtkCPUnstructuredGridBuilder
&) =
delete
;
78
void
operator=(
const
vtkCPUnstructuredGridBuilder
&) =
delete
;
79
81
84
vtkUnstructuredGrid
* UnstructuredGrid;
85
};
86
#endif
87
vtkPVCatalystTestDriverModule.h
vtkCPGridBuilder.h
vtkCPGridBuilder
Abstract class for creating grids.
Definition:
vtkCPGridBuilder.h:19
vtkIdType
int vtkIdType
VTKPVCATALYSTTESTDRIVER_EXPORT
#define VTKPVCATALYSTTESTDRIVER_EXPORT
Definition:
vtkPVCatalystTestDriverModule.h:15
vtkCPUnstructuredGridBuilder::IsGridModified
bool IsGridModified
Flag to indicate if UnstructuredGrid has been modified since last call to GetGrid().
Definition:
vtkCPUnstructuredGridBuilder.h:69
vtkIndent
vtkIdList
vtkUnstructuredGrid
vtkCPGridBuilder::GetGrid
vtkDataObject * GetGrid(unsigned long timeStep, double time, int &builtNewGrid) override=0
Return a grid.
vtkObject::New
static vtkObject * New()
vtkDataObject
vtkPoints
vtkCPGridBuilder::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkCPUnstructuredGridBuilder
Class for creating unstructured grids.
Definition:
vtkCPUnstructuredGridBuilder.h:22
Generated by
1.8.13 on Tue Jan 21 2025