OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
LineConnection.h
Go to the documentation of this file.
1/*
2 * File: LineConnection.h
3 * Package: rbeCore
4 *
5 * Created on: September 10, 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 rbeCore {
19
20 class AbstractPoint;
21
23 public:
25 virtual ~LineConnection();
26
27 // ###############################################################################
28
29 // Base class functions
30
31 virtual std::string debugInformation(const std::string& _prefix) override;
32
33 virtual void addToJsonArray(RubberbandEngine * _engine, std::stringstream& _array, bool& _first) override;
34
35 // ###############################################################################
36
37 // Setter
38
39 void setFrom(AbstractPoint * _from) { m_from = _from; }
40
41 void setTo(AbstractPoint * _to) { m_to = _to; }
42
43 // ###############################################################################
44
45 // Getter
46
47 AbstractPoint * from(void) const { return m_from; }
48
49 AbstractPoint * to(void) const { return m_to; }
50
51 private:
52
53 AbstractPoint * m_from;
54 AbstractPoint * m_to;
55
57 LineConnection& operator = (LineConnection&) = delete;
58 };
59
60}
Definition AbstractConnection.h:26
Definition AbstractPoint.h:24
Definition LineConnection.h:22
AbstractPoint * from(void) const
Definition LineConnection.h:47
void setTo(AbstractPoint *_to)
Definition LineConnection.h:41
void setFrom(AbstractPoint *_from)
Definition LineConnection.h:39
AbstractPoint * to(void) const
Definition LineConnection.h:49
Definition RubberbandEngine.h:30
#define RBE_API_EXPORT
Definition dataTypes.h:18
Definition ParserAPI.h:21