19#ifndef _mtsComponentViewerQt_h
20#define _mtsComponentViewerQt_h
24#error "mtsComponentViewerQt.h requires CISST_HAS_QTNODES"
38 class NodeDelegateModelRegistry;
39 class DataFlowGraphModel;
40 class DataFlowGraphicsScene;
56 void Configure(
const std::string &filename =
"")
override;
59 void Run(
void)
override;
76 std::shared_ptr<QtNodes::NodeDelegateModelRegistry>
Registry;
78 QtNodes::DataFlowGraphicsScene *
Scene;
79 QtNodes::GraphicsView *
View;
88 std::map<ComponentKey, unsigned int>
NodeIds;
91 std::map<ComponentKey, std::map<std::string, unsigned int>>
93 std::map<ComponentKey, std::map<std::string, unsigned int>>
Definition mtsParameterTypes.h:869
Definition mtsComponentViewerQt.h:48
void AddComponentHandler(const mtsDescriptionComponent &component_description)
void onFilterInterfaces(bool checked)
mtsComponentViewerQt(const std::string &componentName="ComponentViewer")
QToolBar * ToolBar
Definition mtsComponentViewerQt.h:71
std::map< ComponentKey, std::map< std::string, unsigned int > > m_provided_interface_to_port
Definition mtsComponentViewerQt.h:92
std::pair< std::string, std::string > ComponentKey
Definition mtsComponentViewerQt.h:82
QtNodes::GraphicsView * View
Definition mtsComponentViewerQt.h:79
void onFilterComponents(bool checked)
QtNodes::DataFlowGraphModel * GraphModel
Definition mtsComponentViewerQt.h:77
void ChangeStateHandler(const mtsComponentStateChange &state_change)
~mtsComponentViewerQt()=default
QtNodes::DataFlowGraphicsScene * Scene
Definition mtsComponentViewerQt.h:78
std::vector< mtsDescriptionComponent > m_component_infos
Definition mtsComponentViewerQt.h:97
std::set< std::string > m_show_interface_tags
Definition mtsComponentViewerQt.h:101
std::vector< mtsDescriptionConnection > m_connection_infos
Definition mtsComponentViewerQt.h:98
void Cleanup(void) override
std::shared_ptr< QtNodes::NodeDelegateModelRegistry > Registry
Definition mtsComponentViewerQt.h:76
std::vector< ComponentKey > m_components
Definition mtsComponentViewerQt.h:83
std::map< ComponentKey, unsigned int > NodeIds
Definition mtsComponentViewerQt.h:88
void AddConnectionHandler(const mtsDescriptionConnection &connection_description)
std::set< std::string > m_show_component_tags
Definition mtsComponentViewerQt.h:100
void Configure(const std::string &filename="") override
void RemoveConnectionHandler(const mtsDescriptionConnection &connection_description)
void Startup(void) override
std::map< ComponentKey, std::map< std::string, unsigned int > > m_required_interface_to_port
Definition mtsComponentViewerQt.h:94
Definition mtsParameterTypes.h:58
Definition mtsParameterTypes.h:624
mtsTaskFromSignal(const std::string &name, unsigned int sizeStateTable=256)
const int CMN_DYNAMIC_CREATION_ONEARG
Definition cmnClassRegisterMacros.h:330
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Defines a task with a Run method trigger by signals (any queued command or event).
Definition mtsComponentViewerQt.h:37