VTK
vtkTreeFieldAggregator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeFieldAggregator.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 -------------------------------------------------------------------------*/
35 #ifndef vtkTreeFieldAggregator_h
36 #define vtkTreeFieldAggregator_h
37 
38 class vtkPoints;
39 class vtkTree;
40 
41 #include "vtkInfovisCoreModule.h" // For export macro
42 #include "vtkTreeAlgorithm.h"
43 
44 class VTKINFOVISCORE_EXPORT vtkTreeFieldAggregator : public vtkTreeAlgorithm
45 {
46 public:
47  static vtkTreeFieldAggregator *New();
48 
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 
53 
57  vtkGetStringMacro(Field);
58  vtkSetStringMacro(Field);
60 
62 
65  vtkGetMacro(MinValue, double);
66  vtkSetMacro(MinValue, double);
68 
70 
73  vtkSetMacro(LeafVertexUnitSize, bool);
74  vtkGetMacro(LeafVertexUnitSize, bool);
75  vtkBooleanMacro(LeafVertexUnitSize, bool);
77 
79 
82  vtkSetMacro(LogScale, bool);
83  vtkGetMacro(LogScale, bool);
84  vtkBooleanMacro(LogScale, bool);
86 
87 protected:
89  ~vtkTreeFieldAggregator() VTK_OVERRIDE;
90 
91  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
92 
93 private:
94  char* Field;
95  bool LeafVertexUnitSize;
96  bool LogScale;
97  double MinValue;
98  vtkTreeFieldAggregator(const vtkTreeFieldAggregator&) VTK_DELETE_FUNCTION;
99  void operator=(const vtkTreeFieldAggregator&) VTK_DELETE_FUNCTION;
100  double GetDoubleValue(vtkAbstractArray* arr, vtkIdType id);
101  static void SetDoubleValue(vtkAbstractArray* arr, vtkIdType id, double value);
102 };
103 
104 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
int vtkIdType
Definition: vtkType.h:345
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
aggregate field values from the leaves up the tree
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A rooted tree data structure.
Definition: vtkTree.h:54
represent and manipulate 3D points
Definition: vtkPoints.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.