OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Plot1DAxisCfg.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// std header
13#include <string>
14
15namespace ot {
16
18 public:
20 Plot1DAxisCfg(const Plot1DAxisCfg& _other);
21 virtual ~Plot1DAxisCfg();
22
23 Plot1DAxisCfg& operator = (const Plot1DAxisCfg& _other);
24
25 bool operator==(const Plot1DAxisCfg& _other) const;
26 bool operator!=(const Plot1DAxisCfg& _other) const;
27
31 virtual void addToJsonObject(ot::JsonValue& _object, ot::JsonAllocator& _allocator) const override;
32
36 virtual void setFromJsonObject(const ot::ConstJsonObject& _object) override;
37
38 void setMin(double _min) { m_min = _min; };
39 double getMin(void) const { return m_min; };
40
41 void setMax(double _max) { m_max = _max; };
42 double getMax(void) const { return m_max; };
43
44 void setIsLogScale(bool _logScaleEnabled) { m_isLogScale = _logScaleEnabled; };
45 bool getIsLogScale(void) const { return m_isLogScale; };
46
47 void setIsAutoScale(bool _autoScaleEnabled) { m_isAutoScale = _autoScaleEnabled; };
48 bool getIsAutoScale(void) const { return m_isAutoScale; };
49
50 private:
51 double m_min;
52 double m_max;
53 bool m_isLogScale;
54 bool m_isAutoScale;
55 };
56
57}
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition Plot1DAxisCfg.h:17
bool getIsAutoScale(void) const
Definition Plot1DAxisCfg.h:48
void setMax(double _max)
Definition Plot1DAxisCfg.h:41
bool getIsLogScale(void) const
Definition Plot1DAxisCfg.h:45
double getMin(void) const
Definition Plot1DAxisCfg.h:39
void setIsLogScale(bool _logScaleEnabled)
Definition Plot1DAxisCfg.h:44
void setIsAutoScale(bool _autoScaleEnabled)
Definition Plot1DAxisCfg.h:47
double getMax(void) const
Definition Plot1DAxisCfg.h:42
void setMin(double _min)
Definition Plot1DAxisCfg.h:38
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition Connector.h:8
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30