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 -------------------------------------------------------------------------*/
38 #ifndef vtkTreeAlgorithm_h
39 #define vtkTreeAlgorithm_h
40 
41 #include "vtkCommonExecutionModelModule.h" // For export macro
42 #include "vtkAlgorithm.h"
43 #include "vtkTree.h" // makes things a bit easier
44 
45 class vtkDataSet;
46 
48 {
49 public:
50  static vtkTreeAlgorithm *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  virtual int ProcessRequest(vtkInformation*,
60 
62 
63  vtkTree* GetOutput() { return this->GetOutput(0); }
64  vtkTree* GetOutput(int index);
66 
68 
71  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
72  void SetInputData(int index, vtkDataObject* obj);
74 
75 protected:
78 
79  // convenience method
80  virtual int RequestInformation(vtkInformation* request,
81  vtkInformationVector** inputVector,
82  vtkInformationVector* outputVector);
83 
85 
87  virtual int RequestData(vtkInformation* request,
88  vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestUpdateExtent(vtkInformation*,
99 
100  // see algorithm for more info
103 
104 private:
105  vtkTreeAlgorithm(const vtkTreeAlgorithm&); // Not implemented.
106  void operator=(const vtkTreeAlgorithm&); // Not implemented.
107 };
108 
109 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetInputData(vtkDataObject *obj)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
A rooted tree data structure.
Definition: vtkTree.h:59
general representation of visualization data
Definition: vtkDataObject.h:64
vtkTree * GetOutput()
void PrintSelf(ostream &os, vtkIndent indent)