VTK
vtkGraphReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphReader.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 =========================================================================*/
30 #ifndef vtkGraphReader_h
31 #define vtkGraphReader_h
32 
33 #include "vtkIOLegacyModule.h" // For export macro
34 #include "vtkDataReader.h"
35 
36 class vtkGraph;
37 
39 {
40 public:
41  static vtkGraphReader *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkGraph *GetOutput();
48  vtkGraph *GetOutput(int idx);
49  void SetOutput(vtkGraph *output);
51 
52 protected:
54  ~vtkGraphReader();
55 
58 
59  // Override ProcessRequest to handle request data object event
62 
63  // Since the Outputs[0] has the same UpdateExtent format
64  // as the generic DataObject we can copy the UpdateExtent
65  // as a default behavior.
68 
69  // Create output (a directed or undirected graph).
70  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
72 
73  // Read beginning of file to determine whether the graph is directed.
74  virtual int ReadGraphDirectedness(bool & directed);
75 
76 
77  virtual int FillOutputPortInformation(int, vtkInformation*);
78 private:
79  vtkGraphReader(const vtkGraphReader&); // Not implemented.
80  void operator=(const vtkGraphReader&); // Not implemented.
81 };
82 
83 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKIOLEGACY_EXPORT
Base class for graph data types.
Definition: vtkGraph.h:288
static vtkDataReader * New()
read vtkGraph data file
void PrintSelf(ostream &os, vtkIndent indent)
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:48
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.