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 "vtkDataReader.h"
34 
35 class vtkGraph;
36 
38 {
39 public:
40  static vtkGraphReader *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkGraph *GetOutput();
47  vtkGraph *GetOutput(int idx);
48  void SetOutput(vtkGraph *output);
50 
51 protected:
53  ~vtkGraphReader();
54 
57 
58  // Override ProcessRequest to handle request data object event
61 
62  // Since the Outputs[0] has the same UpdateExtent format
63  // as the generic DataObject we can copy the UpdateExtent
64  // as a default behavior.
67 
68  // Create output (a directed or undirected graph).
69  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
71 
72  // Read beginning of file to determine whether the graph is directed.
73  virtual int ReadGraphDirectedness(bool & directed);
74 
75 
76  virtual int FillOutputPortInformation(int, vtkInformation*);
77 private:
78  vtkGraphReader(const vtkGraphReader&); // Not implemented.
79  void operator=(const vtkGraphReader&); // Not implemented.
80 };
81 
82 #endif
83 
84 
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Base class for graph data types.
Definition: vtkGraph.h:287
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:46
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
#define VTK_IO_EXPORT