OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SceneNodePlot1D.h
Go to the documentation of this file.
1#pragma once
2
3// OpenTwin header
6#include "DataBase.h"
7#include "SceneNodeBase.h"
8
9// std header
10#include <map>
11#include <string>
12
13class Model;
14
17public:
19 virtual ~SceneNodePlot1D();
20
21 virtual void setTransparent(bool _transparent) override;
22 virtual void setWireframe(bool _wireframe) override;
23 virtual void setVisible(bool _visible) override;
24 virtual void setHighlighted(bool _highlighted) override;
25
26 bool getSelectChildren(void) override { return false; };
27
28 virtual bool isItem1D(void) override { return true; };
29 virtual bool isItem3D(void) override { return false; };
30
31 void setConfig(const ot::Plot1DCfg& _config);
32 void setDataBaseConfig(const ot::Plot1DDataBaseCfg& _config);
33 const ot::Plot1DDataBaseCfg& getConfig(void) const { return m_config; };
34
35 void setModel(Model* _model) { m_model = _model; };
36 Model *getModel(void) { return m_model; };
37
38 void addCurve(const ot::Plot1DCurveInfoCfg& _curve);
39 void setCurves(const std::list<ot::Plot1DCurveInfoCfg>& _curves);
40 const std::list<ot::Plot1DCurveInfoCfg>& getCurves(void) const;
41 size_t getNumberOfCurves(void) const;
42 const ot::Plot1DCurveInfoCfg& getCurveInfo(size_t _index) const;
43
44 bool updateCurveEntityVersion(ot::UID _curveEntityID, ot::UID _curveVersion);
45
46private:
47 void applyConfigInfo(void);
48 bool isAnyChildSelectedAndVisible(SceneNodeBase *root);
49
50 ot::Plot1DDataBaseCfg m_config;
51 Model* m_model;
52};
53
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
The Model class is the main interface to the model. There may be multiple instances of this class....
Definition Model.h:94
Definition SceneNodeBase.h:14
Definition SceneNodePlot1D.h:15
size_t getNumberOfCurves(void) const
Definition SceneNodePlot1D.cpp:79
virtual void setVisible(bool _visible) override
Definition SceneNodePlot1D.cpp:42
bool getSelectChildren(void) override
Definition SceneNodePlot1D.h:26
SceneNodePlot1D()
Definition SceneNodePlot1D.cpp:20
virtual bool isItem3D(void) override
Definition SceneNodePlot1D.h:29
bool updateCurveEntityVersion(ot::UID _curveEntityID, ot::UID _curveVersion)
Definition SceneNodePlot1D.cpp:62
void setCurves(const std::list< ot::Plot1DCurveInfoCfg > &_curves)
Definition SceneNodePlot1D.cpp:71
virtual void setHighlighted(bool _highlighted) override
Definition SceneNodePlot1D.cpp:48
const std::list< ot::Plot1DCurveInfoCfg > & getCurves(void) const
Definition SceneNodePlot1D.cpp:75
void setDataBaseConfig(const ot::Plot1DDataBaseCfg &_config)
Definition SceneNodePlot1D.cpp:57
void setConfig(const ot::Plot1DCfg &_config)
Definition SceneNodePlot1D.cpp:52
Model * getModel(void)
Definition SceneNodePlot1D.h:36
const ot::Plot1DDataBaseCfg & getConfig(void) const
Definition SceneNodePlot1D.h:33
virtual ~SceneNodePlot1D()
Definition SceneNodePlot1D.cpp:26
void addCurve(const ot::Plot1DCurveInfoCfg &_curve)
Definition SceneNodePlot1D.cpp:67
virtual void setTransparent(bool _transparent) override
Definition SceneNodePlot1D.cpp:30
virtual void setWireframe(bool _wireframe) override
Definition SceneNodePlot1D.cpp:36
void setModel(Model *_model)
Definition SceneNodePlot1D.h:35
const ot::Plot1DCurveInfoCfg & getCurveInfo(size_t _index) const
Definition SceneNodePlot1D.cpp:83
virtual bool isItem1D(void) override
Definition SceneNodePlot1D.h:28
Definition Plot1DCfg.h:19
Definition Plot1DCurveInfoCfg.h:20
Definition Plot1DDataBaseCfg.h:14
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27