VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkArrayWeights.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 00046 #ifndef vtkArrayWeights_h 00047 #define vtkArrayWeights_h 00048 00049 #include "vtkCommonCoreModule.h" // For export macro 00050 #include "vtkSystemIncludes.h" 00051 00052 class vtkArrayWeightsStorage; // pimpl 00053 00054 class VTKCOMMONCORE_EXPORT vtkArrayWeights 00055 { 00056 public: 00058 vtkArrayWeights(); 00059 00061 vtkArrayWeights(const vtkArrayWeights& other); 00062 00064 vtkArrayWeights(double i); 00065 00067 vtkArrayWeights(double i, double j); 00068 00070 vtkArrayWeights(double i, double j, double k); 00071 00073 vtkArrayWeights(double i, double j, double k, double l); 00074 00076 ~vtkArrayWeights(); 00077 00079 vtkIdType GetCount() const; 00080 00084 void SetCount(vtkIdType count); 00085 00087 double& operator[](vtkIdType); 00088 00090 const double& operator[](vtkIdType) const; 00091 00093 vtkArrayWeights& operator=(const vtkArrayWeights& other); 00094 00095 protected: 00096 vtkArrayWeightsStorage *Storage; 00097 }; 00098 00099 #endif 00100 00101 // VTK-HeaderTest-Exclude: vtkArrayWeights.h