OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Rubberband.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/CoreTypes.h"
4
5// C++ header
6#include <string>
7
8#include <rbeCore/dataTypes.h>
9#include <osg/Array>
10
11namespace rbeWrapper {
12 class RubberbandOsgWrapper;
13}
14namespace osg {
15 class Switch;
16}
17
19public:
20
21 Rubberband(osg::Switch *_group, ot::serviceID_t _creator, const std::string& _note, const std::string& _configurationJson);
22
23 virtual ~Rubberband();
24
25 // ##########################################################################################
26
27 // Setter
28
29 bool switchToNextStep(void);
30
31 void applyCurrentStep(void);
32
33 // ##########################################################################################
34
35 // Getter
36
37 ot::serviceID_t creator(void) const { return m_creatorId; }
38
39 const std::string& note(void) const { return m_note; }
40
41 rbeWrapper::RubberbandOsgWrapper * engine(void) { return m_engine; }
42
44
45 std::string createPointDataJson(void);
46
47private:
48 ot::serviceID_t m_creatorId;
49 std::string m_note;
51
52 Rubberband() = delete;
53 Rubberband(Rubberband&) = delete;
54 Rubberband& operator = (Rubberband&) = delete;
55};
Definition Rubberband.h:18
bool switchToNextStep(void)
Definition Rubberband.cpp:26
void updateCurrentPosition(coordinate_t _u, coordinate_t _v, coordinate_t _w)
Definition Rubberband.cpp:44
ot::serviceID_t creator(void) const
Definition Rubberband.h:37
const std::string & note(void) const
Definition Rubberband.h:39
rbeWrapper::RubberbandOsgWrapper * engine(void)
Definition Rubberband.h:41
void applyCurrentStep(void)
Definition Rubberband.cpp:36
virtual ~Rubberband()
Definition Rubberband.cpp:18
std::string createPointDataJson(void)
Definition Rubberband.cpp:48
Definition RubberbandOsgWrapper.h:29
float coordinate_t
Definition dataTypes.h:26
Definition RubberbandOsgWrapper.h:22
unsigned short serviceID_t
ID type used to identify a service (16 bit unsigned integer).
Definition CoreTypes.h:14
Definition RubberbandOsgWrapper.h:27