VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTreeFieldAggregator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00037 #ifndef __vtkTreeFieldAggregator_h 00038 #define __vtkTreeFieldAggregator_h 00039 00040 class vtkPoints; 00041 class vtkTree; 00042 00043 #include "vtkTreeAlgorithm.h" 00044 00045 class VTK_INFOVIS_EXPORT vtkTreeFieldAggregator : public vtkTreeAlgorithm 00046 { 00047 public: 00048 static vtkTreeFieldAggregator *New(); 00049 00050 vtkTypeMacro(vtkTreeFieldAggregator,vtkTreeAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00057 vtkGetStringMacro(Field); 00058 vtkSetStringMacro(Field); 00060 00062 00064 vtkGetMacro(MinValue, double); 00065 vtkSetMacro(MinValue, double); 00067 00069 00070 vtkSetMacro(LeafVertexUnitSize, bool); 00071 vtkGetMacro(LeafVertexUnitSize, bool); 00072 vtkBooleanMacro(LeafVertexUnitSize, bool); 00074 00076 00078 vtkSetMacro(LogScale, bool); 00079 vtkGetMacro(LogScale, bool); 00080 vtkBooleanMacro(LogScale, bool); 00081 protected: 00082 vtkTreeFieldAggregator(); 00083 ~vtkTreeFieldAggregator(); 00085 00086 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00087 00088 private: 00089 char* Field; 00090 bool LeafVertexUnitSize; 00091 bool LogScale; 00092 double MinValue; 00093 vtkTreeFieldAggregator(const vtkTreeFieldAggregator&); // Not implemented. 00094 void operator=(const vtkTreeFieldAggregator&); // Not implemented. 00095 double GetDoubleValue(vtkAbstractArray* arr, vtkIdType id); 00096 static void SetDoubleValue(vtkAbstractArray* arr, vtkIdType id, double value); 00097 }; 00098 00099 #endif