VTK  9.2.6
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-------------------------------------------------------------------------*/
37
38#ifndef vtkTreeFieldAggregator_h
39#define vtkTreeFieldAggregator_h
40
41class vtkPoints;
42class vtkTree;
43
44#include "vtkInfovisCoreModule.h" // For export macro
45#include "vtkTreeAlgorithm.h"
46
47class VTKINFOVISCORE_EXPORT vtkTreeFieldAggregator : public vtkTreeAlgorithm
48{
49public:
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
90protected:
93
95
96private:
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
Abstract superclass for all arrays.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:40
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:61
int vtkIdType
Definition vtkType.h:332