VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBoostRandomSparseArraySource.h 00005 00006 ------------------------------------------------------------------------- 00007 Copyright 2008 Sandia Corporation. 00008 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 the U.S. Government retains certain rights in this software. 00010 ------------------------------------------------------------------------- 00011 00012 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00013 All rights reserved. 00014 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00015 00016 This software is distributed WITHOUT ANY WARRANTY; without even 00017 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00018 PURPOSE. See the above copyright notice for more information. 00019 00020 =========================================================================*/ 00021 00032 #ifndef vtkBoostRandomSparseArraySource_h 00033 #define vtkBoostRandomSparseArraySource_h 00034 00035 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro 00036 #include "vtkArrayDataAlgorithm.h" 00037 #include "vtkArrayExtents.h" 00038 00039 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostRandomSparseArraySource : public vtkArrayDataAlgorithm 00040 { 00041 public: 00042 static vtkBoostRandomSparseArraySource* New(); 00043 vtkTypeMacro(vtkBoostRandomSparseArraySource, vtkArrayDataAlgorithm); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00046 //BTX 00048 void SetExtents(const vtkArrayExtents&); 00049 00051 00052 vtkArrayExtents GetExtents(); 00053 //ETX 00055 00057 00059 vtkGetMacro(ElementProbabilitySeed, vtkTypeUInt32); 00060 vtkSetMacro(ElementProbabilitySeed, vtkTypeUInt32); 00062 00064 00066 vtkGetMacro(ElementProbability, double); 00067 vtkSetMacro(ElementProbability, double); 00069 00071 00072 vtkGetMacro(ElementValueSeed, vtkTypeUInt32); 00073 vtkSetMacro(ElementValueSeed, vtkTypeUInt32); 00075 00077 00078 vtkGetMacro(MinValue, double); 00079 vtkSetMacro(MinValue, double); 00081 00083 00084 vtkGetMacro(MaxValue, double); 00085 vtkSetMacro(MaxValue, double); 00087 00088 //BTX 00089 protected: 00090 vtkBoostRandomSparseArraySource(); 00091 ~vtkBoostRandomSparseArraySource(); 00092 00093 int RequestData( 00094 vtkInformation*, 00095 vtkInformationVector**, 00096 vtkInformationVector*); 00097 00098 private: 00099 vtkBoostRandomSparseArraySource(const vtkBoostRandomSparseArraySource&); // Not implemented 00100 void operator=(const vtkBoostRandomSparseArraySource&); // Not implemented 00101 00102 vtkArrayExtents Extents; 00103 00104 vtkTypeUInt32 ElementProbabilitySeed; 00105 double ElementProbability; 00106 00107 vtkTypeUInt32 ElementValueSeed; 00108 double MinValue; 00109 double MaxValue; 00110 //ETX 00111 }; 00112 00113 #endif 00114 00115 // VTK-HeaderTest-Exclude: vtkBoostRandomSparseArraySource.h