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 -------------------------------------------------------------------------*/
37 #ifndef vtkTreeFieldAggregator_h
38 #define vtkTreeFieldAggregator_h
39 
40 class vtkPoints;
41 class vtkTree;
42 
43 #include "vtkInfovisCoreModule.h" // For export macro
44 #include "vtkTreeAlgorithm.h"
45 
47 {
48 public:
49  static vtkTreeFieldAggregator *New();
50 
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
58  vtkGetStringMacro(Field);
59  vtkSetStringMacro(Field);
61 
63 
65  vtkGetMacro(MinValue, double);
66  vtkSetMacro(MinValue, double);
68 
70 
71  vtkSetMacro(LeafVertexUnitSize, bool);
72  vtkGetMacro(LeafVertexUnitSize, bool);
73  vtkBooleanMacro(LeafVertexUnitSize, bool);
75 
77 
79  vtkSetMacro(LogScale, bool);
80  vtkGetMacro(LogScale, bool);
81  vtkBooleanMacro(LogScale, bool);
82 protected:
86 
88 
89 private:
90  char* Field;
91  bool LeafVertexUnitSize;
92  bool LogScale;
93  double MinValue;
94  vtkTreeFieldAggregator(const vtkTreeFieldAggregator&); // Not implemented.
95  void operator=(const vtkTreeFieldAggregator&); // Not implemented.
96  double GetDoubleValue(vtkAbstractArray* arr, vtkIdType id);
97  static void SetDoubleValue(vtkAbstractArray* arr, vtkIdType id, double value);
98 };
99 
100 #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)
int vtkIdType
Definition: vtkType.h:247
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
aggregate field values from the leaves up the tree
#define VTKINFOVISCORE_EXPORT
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
A rooted tree data structure.
Definition: vtkTree.h:59
represent and manipulate 3D points
Definition: vtkPoints.h:38