Download data/cisstMultiTask/examples/CommandsAndEvents/Qt/serverQtComponent.h from introvoyz045/cisst: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/datasets/introvoyz045/cisst/resolve/main/data/cisstMultiTask/examples/CommandsAndEvents/Qt/serverQtComponent.h
- Command line
-
hf download hf://datasets/introvoyz045/cisst/data/cisstMultiTask/examples/CommandsAndEvents/Qt/serverQtComponent.h
-
curl -L -o serverQtComponent.h https://huggingface.co/datasets/introvoyz045/cisst/resolve/main/data/cisstMultiTask/examples/CommandsAndEvents/Qt/serverQtComponent.h
1.88 kB
| /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | |
| /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */ | |
| /* | |
| Author(s): Anton Deguet, Ali Uneri | |
| Created on: 2009-10-26 | |
| (C) Copyright 2009 Johns Hopkins University (JHU), All Rights Reserved. | |
| --- begin cisst license - do not edit --- | |
| This software is provided "as is" under an open source license, with | |
| no warranty. The complete license can be found in license.txt and | |
| http://www.cisst.org/cisst/license.txt. | |
| --- end cisst license --- | |
| */ | |
| class serverQtComponent: public QObject, public mtsComponent | |
| { | |
| Q_OBJECT; | |
| CMN_DECLARE_SERVICES(CMN_NO_DYNAMIC_CREATION, CMN_LOG_LOD_RUN_ERROR); | |
| public: | |
| serverQtComponent(const std::string & componentName); | |
| ~serverQtComponent(void) {}; | |
| void Configure(const std::string & CMN_UNUSED(filename)) override {}; | |
| protected: | |
| void Void(void); | |
| void Write(const mtsInt & data); | |
| void Read(mtsInt & placeHolder) const; | |
| void QualifiedRead(const mtsInt & data, mtsInt & placeHolder) const; | |
| void SendButtonClickEvent() { | |
| EventVoid(); | |
| } | |
| mtsFunctionVoid EventVoid; | |
| mtsFunctionWrite EventWrite; | |
| int VoidCounter; | |
| int ReadValue; | |
| int QualifiedReadValue; | |
| QMainWindow MainWindow; | |
| QWidget CentralWidget; | |
| Ui::serverQtWidget ServerWidget; | |
| signals: | |
| void VoidQSignal(int voidCounter); | |
| void WriteQSignal(int newValue); | |
| public slots: | |
| void ReadQSlot(int newValue); | |
| void QualifiedReadQSlot(int newValue); | |
| void EventVoidQSlot(void); | |
| void EventWriteQSlot(int newValue); | |
| }; | |
| CMN_DECLARE_SERVICES_INSTANTIATION(serverQtComponent); | |