-
Notifications
You must be signed in to change notification settings - Fork 11
/
IsoEndPoint.cpp
51 lines (42 loc) · 974 Bytes
/
IsoEndPoint.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
/**
* IsoAlgo - piping Isometric drawing generation Algorithm.
* Copyright (C) 2013 to current year Shing Liu
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* Homepage:
* http://www.cppblog.com/eryar/
*
* Feedback:
*/
#include "IsoAlgoAbs.h"
#include "IsoEndPoint.h"
using namespace IsoAlgo;
IsoEndPoint::IsoEndPoint(void)
: myDiameter(0.0)
{
}
IsoEndPoint::~IsoEndPoint(void)
{
}
void IsoEndPoint::Fill(const std::string &theBuffer)
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
std::stringstream ss(theBuffer);
ss >> x >> y >> z >> myDiameter >> myConnectType;
myPosition.SetCoord(x, y, z);
}
const gp_Pnt& IsoEndPoint::GetPosition() const
{
return myPosition;
}
double IsoEndPoint::GetDiameter() const
{
return myDiameter;
}