VTK  9.4.20241221
vtkPChacoReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3// SPDX-License-Identifier: BSD-3-Clause
4
15#ifndef vtkPChacoReader_h
16#define vtkPChacoReader_h
17
18#include "vtkChacoReader.h"
19#include "vtkIOParallelModule.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkTimerLog;
24
25class VTKIOPARALLEL_EXPORT vtkPChacoReader : public vtkChacoReader
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
38 vtkGetObjectMacro(Controller, vtkMultiProcessController);
39
40protected:
42 ~vtkPChacoReader() override;
43
46
47private:
48 vtkPChacoReader(const vtkPChacoReader&) = delete;
49 void operator=(const vtkPChacoReader&) = delete;
50
51 void SetUpEmptyGrid(vtkUnstructuredGrid* output);
52 int DivideCells(vtkMultiProcessController* contr, vtkUnstructuredGrid* output, int source);
53 int SendGrid(vtkMultiProcessController* c, int to, vtkUnstructuredGrid* grid);
56 char* MarshallDataSet(vtkUnstructuredGrid* extractedGrid, vtkIdType& len);
57 vtkUnstructuredGrid* UnMarshallDataSet(char* buf, vtkIdType size);
58
59 int NumProcesses;
60 int MyId;
61
62 vtkMultiProcessController* Controller;
63};
64
65VTK_ABI_NAMESPACE_END
66#endif
Read a Chaco file and create a vtkUnstructuredGrid.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
Read Chaco files.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
~vtkPChacoReader() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetController(vtkMultiProcessController *c)
Set/Get the communicator object (we'll use global World controller if you don't set a different one).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPChacoReader * New()
Timer support and logging.
dataset represents arbitrary combinations of all possible cell types
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition vtkType.h:315