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 -------------------------------------------------------------------------*/
38 #ifndef vtkTreeFieldAggregator_h
39 #define vtkTreeFieldAggregator_h
40 
41 class vtkPoints;
42 class vtkTree;
43 
44 #include "vtkInfovisCoreModule.h" // For export macro
45 #include "vtkTreeAlgorithm.h"
46 
47 class VTKINFOVISCORE_EXPORT vtkTreeFieldAggregator : public vtkTreeAlgorithm
48 {
49 public:
50  static vtkTreeFieldAggregator *New();
51 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
60  vtkGetStringMacro(Field);
61  vtkSetStringMacro(Field);
63 
65 
68  vtkGetMacro(MinValue, double);
69  vtkSetMacro(MinValue, double);
71 
73 
76  vtkSetMacro(LeafVertexUnitSize, bool);
77  vtkGetMacro(LeafVertexUnitSize, bool);
78  vtkBooleanMacro(LeafVertexUnitSize, bool);
80 
82 
85  vtkSetMacro(LogScale, bool);
86  vtkGetMacro(LogScale, bool);
87  vtkBooleanMacro(LogScale, bool);
89 
90 protected:
92  ~vtkTreeFieldAggregator() override;
93 
95 
96 private:
97  char* Field;
98  bool LeafVertexUnitSize;
99  bool LogScale;
100  double MinValue;
102  void operator=(const vtkTreeFieldAggregator&) = delete;
103  double GetDoubleValue(vtkAbstractArray* arr, vtkIdType id);
104  static void SetDoubleValue(vtkAbstractArray* arr, vtkIdType id, double value);
105 };
106 
107 #endif
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:347
a simple class to control print indentation
Definition: vtkIndent.h:39
aggregate field values from the leaves up the tree
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
A rooted tree data structure.
Definition: vtkTree.h:60
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.