OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
RangeSelectionVisualisationHandler.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <memory>
4
5#include "OTCore/CoreTypes.h"
6#include "OTGui/TableRange.h"
8#include "OTCore/Color.h"
10
12{
13public:
14 void selectRange(const ot::UIDList& _selectedEntityIDs);
15
16private:
17 std::list<ot::UID> m_bufferedSelectionRanges;
18
19 void bufferSelectionEntities(const std::list<std::shared_ptr<EntityTableSelectedRanges>>& _selectedEntities);
20 std::list<std::shared_ptr<EntityTableSelectedRanges>> extractSelectionRanges(const ot::UIDList& _selectedEntityIDs);
21 const std::list<std::shared_ptr<EntityTableSelectedRanges>> findSelectionsThatNeedVisualisation(const std::list<std::shared_ptr<EntityTableSelectedRanges>>& _selectedEntities);
22 bool requestToOpenTable(const std::string& _tableName);
23 void requestColouringRanges(bool _clearSelection, const std::string& _tableName, const ot::Color& _colour, const std::list<ot::TableRange>& ranges);
24};
Definition RangeSelectionVisualisationHandler.h:12
void selectRange(const ot::UIDList &_selectedEntityIDs)
Definition RangeSelectionVisualisationHandler.cpp:30
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
std::list< UID > UIDList
Unique identifier list.
Definition CoreTypes.h:31