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 
29 #ifndef vtkPChacoReader_h
30 #define vtkPChacoReader_h
31 
32 #include "vtkIOParallelModule.h" // For export macro
33 #include "vtkChacoReader.h"
34 
35 class vtkTimerLog;
37 
39 {
40 public:
41  static vtkPChacoReader *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
50 
51 protected:
54 
59 
60 private:
61  vtkPChacoReader(const vtkPChacoReader&); // Not implemented
62  void operator=(const vtkPChacoReader&); // Not implemented
63 
64  void SetUpEmptyGrid(vtkUnstructuredGrid *output);
65  int DivideCells(vtkMultiProcessController *contr, vtkUnstructuredGrid *output,
66  int source);
67  int SendGrid(vtkMultiProcessController *c, int to, vtkUnstructuredGrid *grid);
68  vtkUnstructuredGrid *GetGrid(vtkMultiProcessController *c, int from);
70  char *MarshallDataSet(vtkUnstructuredGrid *extractedGrid, int &len);
71  vtkUnstructuredGrid *UnMarshallDataSet(char *buf, int size);
72 
73  int NumProcesses;
74  int MyId;
75 
76  vtkMultiProcessController *Controller;
77 };
78 
79 #endif
vtkPChacoReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkPChacoReader
Read Chaco files.
Definition: vtkPChacoReader.h:39
vtkIOParallelModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPChacoReader::New
static vtkPChacoReader * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPChacoReader::~vtkPChacoReader
~vtkPChacoReader()
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:821
vtkChacoReader.h
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:85
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkgl::buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: vtkgl.h:14415
vtkPChacoReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPChacoReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTimerLog
Timer support and logging.
Definition: vtkTimerLog.h:82
vtkPChacoReader::vtkPChacoReader
vtkPChacoReader()
vtkChacoReader
Read a Chaco file and create a vtkUnstructuredGrid.
Definition: vtkChacoReader.h:42
vtkgl::len
GLenum GLsizei len
Definition: vtkgl.h:13010
vtkPChacoReader::SetController
void SetController(vtkMultiProcessController *c)
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
VTKIOPARALLEL_EXPORT
#define VTKIOPARALLEL_EXPORT
Definition: vtkIOParallelModule.h:15
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843