VTK  9.3.20240329
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 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkTimerLog;
24 
25 class VTKIOPARALLEL_EXPORT vtkPChacoReader : public vtkChacoReader
26 {
27 public:
28  static vtkPChacoReader* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
38  vtkGetObjectMacro(Controller, vtkMultiProcessController);
39 
40 protected:
42  ~vtkPChacoReader() override;
43 
46 
47 private:
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);
54  vtkUnstructuredGrid* GetGrid(vtkMultiProcessController* c, int from);
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 
65 VTK_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
static vtkPChacoReader * New()
~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.
Timer support and logging.
Definition: vtkTimerLog.h:174
dataset represents arbitrary combinations of all possible cell types
@ size
Definition: vtkX3D.h:253
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:315