VTK
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 "vtkIOParallelModule.h" // For export macro
34 #include "vtkChacoReader.h"
35 
36 class vtkTimerLog;
38 
39 class VTKIOPARALLEL_EXPORT vtkPChacoReader : public vtkChacoReader
40 {
41 public:
42  static vtkPChacoReader *New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
51  void SetController(vtkMultiProcessController *c);
52  vtkGetObjectMacro(Controller, vtkMultiProcessController);
53 
54 protected:
56  ~vtkPChacoReader() override;
57 
60  int RequestData(
62 
63 private:
64  vtkPChacoReader(const vtkPChacoReader&) = delete;
65  void operator=(const vtkPChacoReader&) = delete;
66 
67  void SetUpEmptyGrid(vtkUnstructuredGrid *output);
68  int DivideCells(vtkMultiProcessController *contr, vtkUnstructuredGrid *output,
69  int source);
70  int SendGrid(vtkMultiProcessController *c, int to, vtkUnstructuredGrid *grid);
71  vtkUnstructuredGrid *GetGrid(vtkMultiProcessController *c, int from);
73  char *MarshallDataSet(vtkUnstructuredGrid *extractedGrid, int &len);
74  vtkUnstructuredGrid *UnMarshallDataSet(char *buf, int size);
75 
76  int NumProcesses;
77  int MyId;
78 
79  vtkMultiProcessController *Controller;
80 };
81 
82 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkPChacoReader
Read Chaco files.
Definition: vtkPChacoReader.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkChacoReader.h
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:82
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkX3D::size
Definition: vtkX3D.h:253
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkChacoReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkTimerLog
Timer support and logging.
Definition: vtkTimerLog.h:91
vtkChacoReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkChacoReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkChacoReader
Read a Chaco file and create a vtkUnstructuredGrid.
Definition: vtkChacoReader.h:42
vtkChacoReader::New
static vtkChacoReader * New()
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87