cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsRobotIO1394QtWidgetFactory.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5  Author(s): Kwang Young Lee
6  Created on: 2013-04-11
7 
8  (C) Copyright 2013 Johns Hopkins University (JHU), All Rights Reserved.
9 
10 --- begin cisst license - do not edit ---
11 
12 This software is provided "as is" under an open source license, with
13 no warranty. The complete license can be found in license.txt and
14 http://www.cisst.org/cisst/license.txt.
15 
16 --- end cisst license ---
17 */
18 
19 #ifndef _mtsRobotIO1394QtManager_h
20 #define _mtsRobotIO1394QtManager_h
21 
25 
26 #include <QtCore>
27 #include <QtGui>
28 
30 
32 {
34 
35 public:
36  mtsRobotIO1394QtWidgetFactory(const std::string & name);
38 
39  void Configure(const std::string & filename = "");
40  void Startup(void);
41 
42  typedef std::list<mtsRobotIO1394QtWidget *> WidgetListType;
43  const WidgetListType & Widgets(void) const;
44 
46  return mButtonsWidget;
47  }
48 
49 protected:
52 
53  void BuildWidgets(void);
56  std::string NameOfRobotIO1394;
57  std::vector<std::string> RobotNames;
58  std::vector<std::string> DigitalInputNames;
59 
62 
65 
66  struct ConfigStruct {
69 
73 
76  } Configuration;
77 
78 };
79 
81 
82 #endif // _mtsRobotIO1394QtManager_h
mtsFunctionRead GetNumberOfDigitalInputs
Definition: mtsRobotIO1394QtWidgetFactory.h:68
mtsFunctionRead GetNumberOfRobots
Definition: mtsRobotIO1394QtWidgetFactory.h:67
struct mtsRobotIO1394QtWidgetFactory::ConfigStruct Configuration
Definition: mtsFunctionRead.h:37
mtsFunctionRead GetNumbersOfActuators
Definition: mtsRobotIO1394QtWidgetFactory.h:71
prmQtWidgetEventButtonsComponent * ButtonsWidget(void)
Definition: mtsRobotIO1394QtWidgetFactory.h:45
Definition: mtsInterfaceRequired.h:85
std::vector< std::string > RobotNames
Definition: mtsRobotIO1394QtWidgetFactory.h:57
prmQtWidgetEventButtonsComponent * mButtonsWidget
Definition: mtsRobotIO1394QtWidgetFactory.h:51
int NumberOfRobots
Definition: mtsRobotIO1394QtWidgetFactory.h:60
std::string NameOfRobotIO1394
Definition: mtsRobotIO1394QtWidgetFactory.h:56
mtsInterfaceRequired * RobotConfigureInterface
Definition: mtsRobotIO1394QtWidgetFactory.h:55
int NumberOfDigitalInputs
Definition: mtsRobotIO1394QtWidgetFactory.h:61
Definition: mtsRobotIO1394QtWidgetFactory.h:66
const int CMN_DYNAMIC_CREATION_ONEARG
Definition: cmnClassRegisterMacros.h:333
vctIntVec NumberOfActuatorsPerRobot
Definition: mtsRobotIO1394QtWidgetFactory.h:63
void Configure(const std::string &filename="")
~mtsRobotIO1394QtWidgetFactory(void)
Definition: mtsRobotIO1394QtWidgetFactory.h:37
bool BuildWidgetsCalled
Definition: mtsRobotIO1394QtWidgetFactory.h:54
Declaration of mtsComponent.
CMN_DECLARE_SERVICES_INSTANTIATION(mtsRobotIO1394QtWidgetFactory)
const WidgetListType & Widgets(void) const
mtsFunctionRead GetRobotNames
Definition: mtsRobotIO1394QtWidgetFactory.h:70
Definition: mtsComponent.h:150
Definition: prmQtWidgetEventButtonsComponent.h:49
Definition: mtsRobotIO1394QtWidgetFactory.h:31
mtsFunctionRead GetDigitalInputNames
Definition: mtsRobotIO1394QtWidgetFactory.h:74
std::list< mtsRobotIO1394QtWidget * > WidgetListType
Definition: mtsRobotIO1394QtWidgetFactory.h:42
WidgetListType mWidgets
Definition: mtsRobotIO1394QtWidgetFactory.h:50
mtsFunctionRead GetNumbersOfBrakes
Definition: mtsRobotIO1394QtWidgetFactory.h:72
std::vector< std::string > DigitalInputNames
Definition: mtsRobotIO1394QtWidgetFactory.h:58
vctIntVec NumberOfBrakesPerRobot
Definition: mtsRobotIO1394QtWidgetFactory.h:64
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
mtsFunctionRead GetName
Definition: mtsRobotIO1394QtWidgetFactory.h:75
mtsRobotIO1394QtWidgetFactory(const std::string &name)