VTK
vtkTreeAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeAlgorithm.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
44 #ifndef __vtkTreeAlgorithm_h
45 #define __vtkTreeAlgorithm_h
46 
47 #include "vtkAlgorithm.h"
48 #include "vtkTree.h" // makes things a bit easier
49 
50 class vtkDataSet;
51 
53 {
54 public:
55  static vtkTreeAlgorithm *New();
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  virtual int ProcessRequest(vtkInformation*,
65 
67 
68  vtkTree* GetOutput() { return this->GetOutput(0); }
69  vtkTree* GetOutput(int index);
71 
73 
80  void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
81  void SetInput(int index, vtkDataObject* obj);
83 
84 protected:
87 
88  // convenience method
89  virtual int RequestInformation(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
94 
96  virtual int RequestData(vtkInformation* request,
97  vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector);
100 
102 
104  virtual int RequestUpdateExtent(vtkInformation*,
108 
109  // see algorithm for more info
110  virtual int FillOutputPortInformation(int port, vtkInformation* info);
111  virtual int FillInputPortInformation(int port, vtkInformation* info);
112 
113 private:
114  vtkTreeAlgorithm(const vtkTreeAlgorithm&); // Not implemented.
115  void operator=(const vtkTreeAlgorithm&); // Not implemented.
116 };
117 
118 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetInput(vtkDataObject *obj)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
vtkTree * GetOutput()
void PrintSelf(ostream &os, vtkIndent indent)