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 
46 #ifndef vtkArrayWeights_h
47 #define vtkArrayWeights_h
48 
49 #include "vtkCommonCoreModule.h" // For export macro
50 #include "vtkSystemIncludes.h"
51 
52 class vtkArrayWeightsStorage; // pimpl
53 
55 {
56 public:
59 
61  vtkArrayWeights(const vtkArrayWeights& other);
62 
64  vtkArrayWeights(double i);
65 
67  vtkArrayWeights(double i, double j);
68 
70  vtkArrayWeights(double i, double j, double k);
71 
73  vtkArrayWeights(double i, double j, double k, double l);
74 
76  ~vtkArrayWeights();
77 
79  vtkIdType GetCount() const;
80 
84  void SetCount(vtkIdType count);
85 
87  double& operator[](vtkIdType);
88 
90  const double& operator[](vtkIdType) const;
91 
93  vtkArrayWeights& operator=(const vtkArrayWeights& other);
94 
95 protected:
96  vtkArrayWeightsStorage *Storage;
97 };
98 
99 #endif
100 
101 // VTK-HeaderTest-Exclude: vtkArrayWeights.h
#define VTKCOMMONCORE_EXPORT
int vtkIdType
Definition: vtkType.h:247
vtkArrayWeightsStorage * Storage
Stores a collection of weighting factors.