-
Notifications
You must be signed in to change notification settings - Fork 0
/
VertexGroup.cpp
59 lines (48 loc) · 1.02 KB
/
VertexGroup.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* File: VertexGroup.cpp
* Author: RM
*
* Created on 26. Juli 2013, 23:26
*/
#include "VertexGroup.h"
VertexGroup::VertexGroup(uint firstIndex, uint lastIndex, float lowerLimit, float upperLimit, float offer) : _firstIndex(firstIndex), _lastIndex(lastIndex), _lowerLimit(lowerLimit), _upperLimit(upperLimit), _offer(offer)
{
}
VertexGroup::VertexGroup()
{
}
VertexGroup::VertexGroup(const VertexGroup& orig)
{
_firstIndex = orig._firstIndex;
_lastIndex = orig._lastIndex;
_upperLimit = orig._upperLimit;
_lowerLimit = orig._lowerLimit;
_offer = orig._offer;
}
VertexGroup::~VertexGroup()
{
}
uint& VertexGroup::firstIndex()
{
return _firstIndex;
}
uint& VertexGroup::lastIndex()
{
return _lastIndex;
}
float& VertexGroup::lowerLimit()
{
return _lowerLimit;
}
float& VertexGroup::upperLimit()
{
return _upperLimit;
}
float VertexGroup::getOffer() const
{
return _offer;
}
uint VertexGroup::getMemberCount() const
{
return (_firstIndex) ? _firstIndex - _lastIndex + 1 : 0;
}