VTK  9.1.0
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
38class vtkPoints;
39class vtkTree;
40
41#include "vtkInfovisCoreModule.h" // For export macro
42#include "vtkTreeAlgorithm.h"
43
44class VTKINFOVISCORE_EXPORT vtkTreeFieldAggregator : public vtkTreeAlgorithm
45{
46public:
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
87protected:
90
92
93private:
94 char* Field;
95 bool LeafVertexUnitSize;
96 bool LogScale;
97 double MinValue;
99 void operator=(const vtkTreeFieldAggregator&) = delete;
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:143
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.
static vtkTreeFieldAggregator * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkTreeFieldAggregator() override
A rooted tree data structure.
Definition: vtkTree.h:164
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:332