OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
EntityBlockDataDimensionReducer.h
Go to the documentation of this file.
1#pragma once
2#include "EntityBlock.h"
3
4class __declspec(dllexport) EntityBlockDataDimensionReducer : public EntityBlock
5{
6public:
7 EntityBlockDataDimensionReducer(ot::UID ID, EntityBase* parent, EntityObserver* obs, ModelState* ms, ClassFactoryHandler* factory, const std::string& owner);
8 virtual std::string getClassName(void) override { return "EntityBlockDataDimensionReducer"; };
9 virtual entityType getEntityType(void) override { return TOPOLOGY; }
10 virtual ot::GraphicsItemCfg* CreateBlockCfg() override;
11 void createProperties();
12
13 int getInputRow() ;
14 int getInputColumn();
15
16 const ot::Connector* getInputConnector() const { return &_inputConnector; }
17 const ot::Connector* getOutputConnector() const { return &_outputConnector; }
18
19 virtual bool updateFromProperties() override;
20 static const std::string getIconName() { return "Database_reducer.svg"; }
21private:
22 int _minValue = 1;
23
24 ot::Connector _inputConnector;
25 ot::Connector _outputConnector;
26};
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27