VTK
vtkArrayWeights.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayWeights.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
47 #ifndef vtkArrayWeights_h
48 #define vtkArrayWeights_h
49 
50 #include "vtkCommonCoreModule.h" // For export macro
51 #include "vtkSystemIncludes.h"
52 
53 class vtkArrayWeightsStorage; // pimpl
54 
55 class VTKCOMMONCORE_EXPORT vtkArrayWeights
56 {
57 public:
62 
66  vtkArrayWeights(const vtkArrayWeights& other);
67 
71  vtkArrayWeights(double i);
72 
76  vtkArrayWeights(double i, double j);
77 
81  vtkArrayWeights(double i, double j, double k);
82 
86  vtkArrayWeights(double i, double j, double k, double l);
87 
91  ~vtkArrayWeights();
92 
96  vtkIdType GetCount() const;
97 
103  void SetCount(vtkIdType count);
104 
108  double& operator[](vtkIdType);
109 
113  const double& operator[](vtkIdType) const;
114 
118  vtkArrayWeights& operator=(const vtkArrayWeights& other);
119 
120 protected:
121  vtkArrayWeightsStorage *Storage;
122 };
123 
124 #endif
125 
126 // VTK-HeaderTest-Exclude: vtkArrayWeights.h
int vtkIdType
Definition: vtkType.h:287
vtkArrayWeightsStorage * Storage
Stores a collection of weighting factors.