Evita  0.16
evWaveletTransformCollection.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evWaveletTransformCollection_h
25 #define __evWaveletTransformCollection_h
26 
27 
28 #include "evWaveletTransform.h"
29 
30 
32 {
33  public:
35  virtual ~evWaveletTransformCollection(void);
36 
37  virtual const evString GetClassName(void) const
38  {
39  return(evString("evWaveletTransformCollection"));
40  }
41 
42  unsigned int GetNumTransforms(void) const;
43 
44  void AddTransform(const evWaveletTransform &transform);
45  void AddTransform(const evWaveletTransform &transform,
46  const unsigned int num_copies);
47  const evWaveletTransform &operator [] (const unsigned int index) const;
48 
49  protected:
50 
51  private:
53  std::vector<evWaveletTransformPtr> Transforms;
54 };
55 
56 
58 {
59 }
60 
61 
63 {
64 }
65 
66 
67 inline unsigned int evWaveletTransformCollection::GetNumTransforms(void) const
68 {
69  return(this->Transforms.size());
70 }
71 
72 
75  &transform)
76 {
77  this->Transforms.push_back((evWaveletTransformPtr)(&transform));
78 }
79 
80 
83  &transform,
84  const unsigned int
85  num_copies)
86 {
87  this->Transforms.insert(this->Transforms.end(),
88  num_copies,
89  (evWaveletTransformPtr)(&transform));
90 }
91 
92 
93 inline const evWaveletTransform
94 &evWaveletTransformCollection::operator [] (const unsigned int index) const
95 {
96  return(*(this->Transforms[index]));
97 }
98 
99 
100 #endif
evWaveletTransformCollection(void)
Definition: evWaveletTransformCollection.h:57
const evWaveletTransform * evWaveletTransformPtr
Definition: evWaveletTransformCollection.h:52
Definition: evWaveletTransform.h:33
void AddTransform(const evWaveletTransform &transform)
Definition: evWaveletTransformCollection.h:73
std::vector< evWaveletTransformPtr > Transforms
Definition: evWaveletTransformCollection.h:53
virtual ~evWaveletTransformCollection(void)
Definition: evWaveletTransformCollection.h:62
Definition: evDataObject.h:31
virtual const evString GetClassName(void) const
Definition: evWaveletTransformCollection.h:37
Definition: evWaveletTransformCollection.h:31
const evWaveletTransform & operator[](const unsigned int index) const
Definition: evWaveletTransformCollection.h:94
Definition: evString.h:30
unsigned int GetNumTransforms(void) const
Definition: evWaveletTransformCollection.h:67