41 #ifndef vtkOffsetsManager_DoNotInclude
42 #error "do not include unless you know what you are doing"
45 #ifndef __vtkOffsetsManagerArray_h
46 #define __vtkOffsetsManagerArray_h
49 #include <vtkstd/vector>
65 this->LastMTime =
static_cast<unsigned long>(-1);
72 assert( numTimeStep > 0);
73 this->Positions.resize(numTimeStep);
74 this->RangeMinPositions.resize(numTimeStep);
75 this->RangeMaxPositions.resize(numTimeStep);
76 this->OffsetValues.resize(numTimeStep);
80 assert( t < this->Positions.size());
81 return this->Positions[t];
85 assert( t < this->RangeMinPositions.size());
86 return this->RangeMinPositions[t];
90 assert( t < this->RangeMaxPositions.size());
91 return this->RangeMaxPositions[t];
95 assert( t < this->OffsetValues.size());
96 return this->OffsetValues[t];
100 return this->LastMTime;
103 unsigned long LastMTime;
109 vtkstd::vector<OffsetType> Positions;
110 vtkstd::vector<OffsetType> RangeMinPositions;
111 vtkstd::vector<OffsetType> RangeMaxPositions;
113 vtkstd::vector<OffsetType> OffsetValues;
128 assert( index < this->Internals.size());
144 return static_cast<unsigned int>(this->Internals.size());
148 assert(numElements >= 0);
149 this->Internals.resize(numElements);
153 assert(numElements > 0);
154 assert(numTimeSteps > 0);
155 this->Internals.resize(numElements);
156 for(
int i=0; i<numElements; i++)
158 this->Internals[i].Allocate(numTimeSteps);
162 vtkstd::vector<OffsetsManager> Internals;
171 assert( index < this->Internals.size());
172 return this->Internals[
index];
176 assert(numPieces > 0);
178 this->Internals.resize(0);
179 this->Internals.resize(numPieces);
181 void Allocate(
int numPieces,
int numElements,
int numTimeSteps)
183 assert(numPieces > 0);
184 assert(numElements > 0);
185 assert(numTimeSteps > 0);
188 this->Internals.resize(0);
189 this->Internals.resize(numPieces);
190 for(
int i=0; i<numPieces; i++)
192 this->Internals[i].Allocate(numElements, numTimeSteps);
196 vtkstd::vector<OffsetsManagerGroup> Internals;