OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CircleConnection.h
Go to the documentation of this file.
1/*
2 * File: CircleConnection.h
3 * Package: rbeCore
4 *
5 * Created on: September 15, 2021
6 * Author: Alexander Kuester
7 * Copyright (c) 2021 Alexander Kuester
8 * This file is part of the RubberbandEngine package.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15// RBE header
17
18namespace rbeCalc {
19 class AbstractCalculationItem;
20}
21
22namespace rbeCore {
23
24 class AbstractPoint;
25
27 public:
29 virtual ~CircleConnection();
30
31 // #######################################################################################################
32
33 // Base class functions
34
35 virtual std::string debugInformation(const std::string& _prefix) override;
36
37 virtual void addToJsonArray(RubberbandEngine * _engine, std::stringstream& _array, bool& _first) override;
38
39 // #######################################################################################################
40
41 // Setter
42
43 void setCenterpoint(AbstractPoint * _point) { m_centerPoint = _point; }
44
45 void setRadius(rbeCalc::AbstractCalculationItem * _radius);
46
47 void setOrientation(CircleOrientation _orientation) { m_orientation = _orientation; }
48
49 // #######################################################################################################
50
51 // Getter
52
53 AbstractPoint * centerPoint(void) { return m_centerPoint; }
54
55 coordinate_t radius(void) const;
56
57 CircleOrientation orientation(void) const { return m_orientation; }
58
59 std::string orientationToString(void) const;
60
61 private:
62
63 AbstractPoint * m_centerPoint;
65 CircleOrientation m_orientation;
66
68 CircleConnection& operator = (CircleConnection&) = delete;
69 };
70
71}
Definition AbstractCalculationItem.h:20
Definition AbstractConnection.h:26
Definition AbstractPoint.h:24
Definition CircleConnection.h:26
void setCenterpoint(AbstractPoint *_point)
Definition CircleConnection.h:43
CircleOrientation orientation(void) const
Definition CircleConnection.h:57
void setOrientation(CircleOrientation _orientation)
Definition CircleConnection.h:47
AbstractPoint * centerPoint(void)
Definition CircleConnection.h:53
Definition RubberbandEngine.h:30
float coordinate_t
Definition dataTypes.h:26
#define RBE_API_EXPORT
Definition dataTypes.h:18
Definition AbstractCalculationItem.h:18
Definition ParserAPI.h:21
CircleOrientation
Definition dataTypes.h:55