OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
GridIteratorComponentSubspace.h
Go to the documentation of this file.
1#pragma once
3
4
6{
7public:
8 GridIteratorComponentSubspace(index_t startPoint, index_t endPoint, index_t stepWidth)
9 : GridIteratorComponent(startPoint, endPoint, stepWidth) {};
10
11 bool SetSubspace(index_t startPoint, index_t endPoint)
12 {
13 if (endPoint >= startPoint && endPoint <= _endPoint && startPoint >= _startPoint)
14 {
15 _startPoint = startPoint;
16 _currentPoint = startPoint;
17 _endPoint = endPoint;
19 return true;
20 };
21 return false;
22 }
23};
int64_t index_t
Definition SystemDependentDefines.h:13
Definition GridIteratorComponent.h:5
index_t _startPoint
Definition GridIteratorComponent.h:12
void SetResetDistance()
Definition GridIteratorComponent.h:15
index_t _currentPoint
Definition GridIteratorComponent.h:11
index_t _endPoint
Definition GridIteratorComponent.h:13
Definition GridIteratorComponentSubspace.h:6
bool SetSubspace(index_t startPoint, index_t endPoint)
Definition GridIteratorComponentSubspace.h:11
GridIteratorComponentSubspace(index_t startPoint, index_t endPoint, index_t stepWidth)
Definition GridIteratorComponentSubspace.h:8