VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
54 class VTKCOMMONCORE_EXPORT vtkArrayWeights
55 {
56 public:
59 
61  vtkArrayWeights(double i);
62 
64  vtkArrayWeights(double i, double j);
65 
67  vtkArrayWeights(double i, double j, double k);
68 
70  vtkArrayWeights(double i, double j, double k, double l);
71 
73  ~vtkArrayWeights();
74 
76  vtkIdType GetCount() const;
77 
81  void SetCount(vtkIdType count);
82 
84  double& operator[](vtkIdType);
85 
87  const double& operator[](vtkIdType) const;
88 
89 protected:
90  vtkArrayWeightsStorage *Storage;
91 };
92 
93 #endif
94 
95 // VTK-HeaderTest-Exclude: vtkArrayWeights.h
int vtkIdType
Definition: vtkType.h:268
vtkArrayWeightsStorage * Storage
Stores a collection of weighting factors.