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 
60 
62 
63  vtkTree* GetOutput() { return this->GetOutput(0); }
66 
68 
71  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, 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 
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
vtkTreeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTreeAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Definition: vtkTreeAlgorithm.h:71
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkTreeAlgorithm::GetOutput
vtkTree * GetOutput(int index)
vtkgl::obj
GLsizei GLsizei GLuint * obj
Definition: vtkgl.h:11994
vtkTreeAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTree.h
vtkTreeAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCommonExecutionModelModule.h
vtkTreeAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkTreeAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkAlgorithm.h
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkTreeAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTreeAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkTreeAlgorithm::New
static vtkTreeAlgorithm * New()
vtkTreeAlgorithm::vtkTreeAlgorithm
vtkTreeAlgorithm()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:48
vtkTreeAlgorithm::GetOutput
vtkTree * GetOutput()
Definition: vtkTreeAlgorithm.h:63
vtkTreeAlgorithm::~vtkTreeAlgorithm
~vtkTreeAlgorithm()
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkTreeAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65