VTK  9.0.3
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:
48 
50  void PrintSelf(ostream& os, vtkIndent indent) 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:
90 
92 
93 private:
94  char* Field;
95  bool LeafVertexUnitSize;
96  bool LogScale;
97  double MinValue;
99  void operator=(const vtkTreeFieldAggregator&) = delete;
100  double GetDoubleValue(vtkAbstractArray* arr, vtkIdType id);
101  static void SetDoubleValue(vtkAbstractArray* arr, vtkIdType id, double value);
102 };
103 
104 #endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:34
Superclass for algorithms that produce only Tree as output.
aggregate field values from the leaves up the tree
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkTreeFieldAggregator() override
static vtkTreeFieldAggregator * New()
A rooted tree data structure.
Definition: vtkTree.h:55
bool GetDoubleValue(const Json::Value &root, double &value)
Get double value from Json variable, with existence and type checks.
@ value
Definition: vtkX3D.h:226
int vtkIdType
Definition: vtkType.h:338