-
- Downloads
Merge branch 'improve-vrpn-device-api' into 'master'
Refactor VRPN Server/Client API + VTKViewer window management **VRPN:** Allows for the following workflow : 1) Create a VRPNDeviceClient by specifying its URL (name@ipadress) and its type (see `DeviceType` class). The subclass VRPNForceDevice is setting the style to `PHANTOM_OMNI` by default for now. 2) Create a VRPNDeviceServer 3) Call `VRPNDeviceServer::addDeviceClient()` to add the client created on step 1). This will analyse the IP, name, and type of the device client to instantiate a VRPN device connection. The added devices are then stored in three std:map so the `mainloop()` can be called during the execution. Updated their use in `FEMSimulator` and `LaparoscopicCamera` examples. **VTKViewer**: implementing `setVtkRenderWindow` - This calls `VTKRenderer::setRenderWindow`. Needed to use a vtkRenderWindow from another instance (example : for a QT application, use QVTKWidget renderwindow) - Rename `VTKViewer::getRenderWindow` to `getVtkRenderWindow` - Use internal functions in `getVtkCamera` and `getVtkRenderer` See merge request !72
No related branches found
No related tags found
Showing
- Collision/SurfaceTree.hpp 1 addition, 1 deletionCollision/SurfaceTree.hpp
- Devices/VRPNDeviceClient.cpp 27 additions, 2 deletionsDevices/VRPNDeviceClient.cpp
- Devices/VRPNDeviceClient.h 26 additions, 2 deletionsDevices/VRPNDeviceClient.h
- Devices/VRPNDeviceServer.cpp 127 additions, 47 deletionsDevices/VRPNDeviceServer.cpp
- Devices/VRPNDeviceServer.h 17 additions, 0 deletionsDevices/VRPNDeviceServer.h
- Devices/VRPNForceDevice.cpp 2 additions, 3 deletionsDevices/VRPNForceDevice.cpp
- Devices/VRPNForceDevice.h 1 addition, 1 deletionDevices/VRPNForceDevice.h
- Examples/FEMSimulator/main.cpp 11 additions, 7 deletionsExamples/FEMSimulator/main.cpp
- Examples/LaparoscopicCamera/main.cpp 30 additions, 31 deletionsExamples/LaparoscopicCamera/main.cpp
- External/Moller/moller.h 1 addition, 1 deletionExternal/Moller/moller.h
- IO/CMakeLists.txt 1 addition, 1 deletionIO/CMakeLists.txt
- SceneModels/StaticSceneObject.h 1 addition, 1 deletionSceneModels/StaticSceneObject.h
- TimeIntegrators/OdeSystem.h 1 addition, 1 deletionTimeIntegrators/OdeSystem.h
- VTKRendering/VTKViewer.cpp 33 additions, 8 deletionsVTKRendering/VTKViewer.cpp
- VTKRendering/VTKViewer.h 2 additions, 1 deletionVTKRendering/VTKViewer.h
Loading
Please register or sign in to comment