Changeset 446 in flair-src for trunk/tools/VrpnLite/src/VrpnLite.cpp
- Timestamp:
- Sep 14, 2021, 11:04:41 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/VrpnLite/src/VrpnLite.cpp
r434 r446 17 17 #include <Thread.h> 18 18 #include <UdpSocket.h> 19 #include <TabWidget.h> 20 #include <Tab.h> 21 #include <PushButton.h> 19 22 #include <FrameworkManager.h> 20 23 #include <Quaternion.h> … … 24 27 using namespace flair::core; 25 28 using namespace flair::sensor; 29 using namespace flair::gui; 26 30 27 31 VrpnLite::VrpnLite(int vrpnLitePort,string vrpnServerAddress): Thread(getFrameworkManager(),"VrpnLite",90) { 28 32 vrpnclient=new VrpnClient("vrpn", vrpnServerAddress,80); 33 Tab* tab=new Tab(vrpnclient->GetTabWidget(),"Main"); 34 killButton=new PushButton(tab->NewRow(),"kill"); 29 35 dataSocket = new UdpSocket(this,"client socket",vrpnLitePort); 30 36 vrpnclient->Start(); … … 40 46 41 47 while (!ToBeStopped()) { 48 if(killButton->Clicked()) SafeStop(); 49 42 50 if(vrpnobjects.size()>0) { 43 51 //wait for last one to be sure all are up to date
Note:
See TracChangeset
for help on using the changeset viewer.