OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TableRange.h
Go to the documentation of this file.
1/*****************************************************************/
8#pragma once
9
10 // OT header
11#include "OTCore/Serializable.h"
13
14namespace ot {
15
17 public:
18 TableRange();
19 TableRange(int _topRow, int _leftColumn, int _bottomRow, int _rightColumn);
20
21 TableRange(const TableRange& other);
22 TableRange& operator=(const TableRange& other);
23 bool operator==(const TableRange& other);
24 bool operator!=(const TableRange& other);
25
26 // Inherited via Serializable
27
28 virtual void addToJsonObject(JsonValue& _object, JsonAllocator& _allocator) const override;
29 virtual void setFromJsonObject(const ConstJsonObject& _object) override;
30
31 int getTopRow() const { return m_topRow; }
32 int getBottomRow() const { return m_bottomRow; }
33 int getLeftColumn()const { return m_leftColumn; }
34 int getRightColumn() const { return m_rightColumn; }
35
36 void setTopRow(int _topRow) { m_topRow = _topRow; }
37 void setBottomRow(int _bottomRow) { m_bottomRow = _bottomRow; }
38 void setLeftColumn(int _leftColumn) { m_leftColumn = _leftColumn; }
39 void setRightColumn(int _rightColumn) { m_rightColumn = _rightColumn; }
40
41 private:
42 int m_topRow;
43 int m_bottomRow;
44 int m_leftColumn;
45 int m_rightColumn;
46 };
47}
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition TableRange.h:16
void setTopRow(int _topRow)
Definition TableRange.h:36
int getRightColumn() const
Definition TableRange.h:34
int getLeftColumn() const
Definition TableRange.h:33
int getTopRow() const
Definition TableRange.h:31
int getBottomRow() const
Definition TableRange.h:32
void setRightColumn(int _rightColumn)
Definition TableRange.h:39
void setLeftColumn(int _leftColumn)
Definition TableRange.h:38
void setBottomRow(int _bottomRow)
Definition TableRange.h:37
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