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 "vtkSystemIncludes.h"
50 
51 class vtkArrayWeightsStorage; // pimpl
52 
54 {
55 public:
58 
60  vtkArrayWeights(double i);
61 
63  vtkArrayWeights(double i, double j);
64 
66  vtkArrayWeights(double i, double j, double k);
67 
69  vtkArrayWeights(double i, double j, double k, double l);
70 
72  ~vtkArrayWeights();
73 
75  vtkIdType GetCount() const;
76 
80  void SetCount(vtkIdType count);
81 
83  double& operator[](vtkIdType);
84 
86  const double& operator[](vtkIdType) const;
87 
88 protected:
89  vtkArrayWeightsStorage *Storage;
90 };
91 
92 #endif
93 
int vtkIdType
Definition: vtkType.h:255
#define VTK_COMMON_EXPORT
vtkArrayWeightsStorage * Storage
Stores a collection of weighting factors.