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:
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
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:
93 
95 
96 private:
97  char* Field;
98  bool LeafVertexUnitSize;
99  bool LogScale;
100  double MinValue;
101  vtkTreeFieldAggregator(const vtkTreeFieldAggregator&) VTK_DELETE_FUNCTION;
102  void operator=(const vtkTreeFieldAggregator&) VTK_DELETE_FUNCTION;
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
Superclass for algorithms that produce only Tree as output.
aggregate field values from the leaves up the tree
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkTreeFieldAggregator * New()
A rooted tree data structure.
Definition: vtkTree.h:61
@ value
Definition: vtkX3D.h:220
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
int vtkIdType
Definition: vtkType.h:287