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 
48  vtkGraph *GetOutput(int idx);
49  void SetOutput(vtkGraph *output);
51 
52 protected:
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).
72 
73  // Read beginning of file to determine whether the graph is directed.
74  virtual int ReadGraphDirectedness(bool & directed);
75 
76 
78 private:
79  vtkGraphReader(const vtkGraphReader&); // Not implemented.
80  void operator=(const vtkGraphReader&); // Not implemented.
81 };
82 
83 #endif
vtkGraphReader::ReadGraphDirectedness
virtual int ReadGraphDirectedness(bool &directed)
vtkGraphReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGraphReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataReader
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:49
vtkGraphReader::~vtkGraphReader
~vtkGraphReader()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTKIOLEGACY_EXPORT
#define VTKIOLEGACY_EXPORT
Definition: vtkIOLegacyModule.h:15
vtkGraphReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGraphReader::New
static vtkGraphReader * New()
vtkIOLegacyModule.h
vtkDataReader.h
vtkGraphReader::vtkGraphReader
vtkGraphReader()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGraphReader::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGraphReader::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGraphReader::SetOutput
void SetOutput(vtkGraph *output)
vtkGraphReader::GetOutput
vtkGraph * GetOutput()
vtkGraphReader::GetOutput
vtkGraph * GetOutput(int idx)
vtkGraphReader::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *)
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkGraphReader
read vtkGraph data file
Definition: vtkGraphReader.h:39