VTK  9.1.0
vtkPChacoReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPChacoReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*----------------------------------------------------------------------------
16 Copyright (c) Sandia Corporation
17 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18----------------------------------------------------------------------------*/
19
30#ifndef vtkPChacoReader_h
31#define vtkPChacoReader_h
32
33#include "vtkChacoReader.h"
34#include "vtkIOParallelModule.h" // For export macro
35
36class vtkTimerLog;
38
39class VTKIOPARALLEL_EXPORT vtkPChacoReader : public vtkChacoReader
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
52 vtkGetObjectMacro(Controller, vtkMultiProcessController);
53
54protected:
56 ~vtkPChacoReader() override;
57
60
61private:
62 vtkPChacoReader(const vtkPChacoReader&) = delete;
63 void operator=(const vtkPChacoReader&) = delete;
64
65 void SetUpEmptyGrid(vtkUnstructuredGrid* output);
66 int DivideCells(vtkMultiProcessController* contr, vtkUnstructuredGrid* output, int source);
67 int SendGrid(vtkMultiProcessController* c, int to, vtkUnstructuredGrid* grid);
70 char* MarshallDataSet(vtkUnstructuredGrid* extractedGrid, vtkIdType& len);
71 vtkUnstructuredGrid* UnMarshallDataSet(char* buf, vtkIdType size);
72
73 int NumProcesses;
74 int MyId;
75
76 vtkMultiProcessController* Controller;
77};
78
79#endif
Read a Chaco file and create a vtkUnstructuredGrid.
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
Definition: vtkTimerLog.h:199
dataset represents arbitrary combinations of all possible cell types
@ size
Definition: vtkX3D.h:259
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:332