-
Notifications
You must be signed in to change notification settings - Fork 11
/
IsoEndPoint.h
63 lines (50 loc) · 1.34 KB
/
IsoEndPoint.h
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
60
61
62
63
/**
* 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:
*/
#ifndef _ISOENDPOINT_H_
#define _ISOENDPOINT_H_
#include <gp_Pnt.hxx>
namespace IsoAlgo
{
/**
* @brief component end point data.
*/
class IsoEndPoint
{
public:
//! default constructor.
IsoEndPoint(void);
//! default destructor.
~IsoEndPoint(void);
//! fill data from string.
void Fill(const std::string& theBuffer);
//! set model position.
void SetPosition(const gp_Pnt& thePosition);
//! set nominal diameter.
void SetDiameter(const double theDiameter);
//! get model position.
const gp_Pnt& GetPosition(void) const;
//! get nominal diameter.
double GetDiameter(void) const;
private:
//! end point in 3d space.
gp_Pnt myPosition;
//! connection type.
std::string myConnectType;
//! nominal diameter.
double myDiameter;
};
}
#endif // _ISOENDPOINT_H_