From 168e19f4cb3d6d911defa88d2f88c63ba3665c01 Mon Sep 17 00:00:00 2001 From: Raphael Grimm <raphael.grimm@kit.edu> Date: Wed, 8 Apr 2020 14:49:04 +0200 Subject: [PATCH] Fix 3d viewer for remote gui --- GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp | 2 +- GraspPlanning/examples/GraspQuality/GraspQualityWindow.cpp | 2 +- MotionPlanning/examples/GraspRRT/GraspRrtWindow.cpp | 2 +- MotionPlanning/examples/IKRRT/IKRRTWindow.cpp | 2 +- .../examples/MultiThreadedPlanning/MTPlanningWindow.cpp | 2 +- MotionPlanning/examples/PlatformDemo/PlatformWindow.cpp | 2 +- MotionPlanning/examples/RRT/RRTdemo.cpp | 2 +- MotionPlanning/examples/RrtGui/RrtGuiWindow.cpp | 2 +- .../DynamicsEngine/BulletEngine/BulletCoinQtViewer.cpp | 2 +- VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.cpp | 2 +- VirtualRobot/examples/CameraViewer/showCamWindow.cpp | 2 +- VirtualRobot/examples/CoinViewer/CoinViewer.cpp | 2 +- VirtualRobot/examples/ConstrainedIK/ConstrainedIKWindow.cpp | 2 +- VirtualRobot/examples/GenericIK/GenericIKWindow.cpp | 2 +- VirtualRobot/examples/Jacobi/JacobiWindow.cpp | 2 +- .../examples/ReachabilityMap/ReachabilityMapWindow.cpp | 2 +- VirtualRobot/examples/RobotViewer/showRobotWindow.cpp | 2 +- VirtualRobot/examples/SceneViewer/showSceneWindow.cpp | 2 +- VirtualRobot/examples/reachability/reachabilityWindow.cpp | 4 ++-- VirtualRobot/examples/stability/stabilityWindow.cpp | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) diff --git a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp index 25f431f60..0a0c622be 100644 --- a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp +++ b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp @@ -129,7 +129,7 @@ void GraspPlannerWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); #ifdef WIN32 viewer->setAntialiasing(true, 8); #endif diff --git a/GraspPlanning/examples/GraspQuality/GraspQualityWindow.cpp b/GraspPlanning/examples/GraspQuality/GraspQualityWindow.cpp index b15776f21..dd93de532 100644 --- a/GraspPlanning/examples/GraspQuality/GraspQualityWindow.cpp +++ b/GraspPlanning/examples/GraspQuality/GraspQualityWindow.cpp @@ -116,7 +116,7 @@ void GraspQualityWindow::setupUI() // setup m_pExViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - m_pExViewer->setAccumulationBuffer(true); + m_pExViewer->setAccumulationBuffer(false); m_pExViewer->setAntialiasing(true, 4); diff --git a/MotionPlanning/examples/GraspRRT/GraspRrtWindow.cpp b/MotionPlanning/examples/GraspRRT/GraspRrtWindow.cpp index 06a05c5b1..b3f052241 100644 --- a/MotionPlanning/examples/GraspRRT/GraspRrtWindow.cpp +++ b/MotionPlanning/examples/GraspRRT/GraspRrtWindow.cpp @@ -139,7 +139,7 @@ void GraspRrtWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); diff --git a/MotionPlanning/examples/IKRRT/IKRRTWindow.cpp b/MotionPlanning/examples/IKRRT/IKRRTWindow.cpp index 9758d8f3d..969af0b75 100644 --- a/MotionPlanning/examples/IKRRT/IKRRTWindow.cpp +++ b/MotionPlanning/examples/IKRRT/IKRRTWindow.cpp @@ -152,7 +152,7 @@ void IKRRTWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); viewer->setGLRenderAction(new SoLineHighlightRenderAction); viewer->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_BLEND); diff --git a/MotionPlanning/examples/MultiThreadedPlanning/MTPlanningWindow.cpp b/MotionPlanning/examples/MultiThreadedPlanning/MTPlanningWindow.cpp index d7a4d41cf..5b855cc67 100644 --- a/MotionPlanning/examples/MultiThreadedPlanning/MTPlanningWindow.cpp +++ b/MotionPlanning/examples/MultiThreadedPlanning/MTPlanningWindow.cpp @@ -124,7 +124,7 @@ void MTPlanningWindow::setupLayoutMTPlanning() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); viewer->setGLRenderAction(new SoLineHighlightRenderAction); viewer->setTransparencyType(SoGLRenderAction::SORTED_LAYERS_BLEND); diff --git a/MotionPlanning/examples/PlatformDemo/PlatformWindow.cpp b/MotionPlanning/examples/PlatformDemo/PlatformWindow.cpp index 0b30535b9..ac64b91c5 100644 --- a/MotionPlanning/examples/PlatformDemo/PlatformWindow.cpp +++ b/MotionPlanning/examples/PlatformDemo/PlatformWindow.cpp @@ -97,7 +97,7 @@ void PlatformWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); diff --git a/MotionPlanning/examples/RRT/RRTdemo.cpp b/MotionPlanning/examples/RRT/RRTdemo.cpp index f5b97682e..3d1ade71a 100644 --- a/MotionPlanning/examples/RRT/RRTdemo.cpp +++ b/MotionPlanning/examples/RRT/RRTdemo.cpp @@ -52,7 +52,7 @@ void show(SoNode* n) sensor_mgr->insertTimerSensor(timer); */ viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); viewer->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_BLEND); viewer->setFeedbackVisibility(true); diff --git a/MotionPlanning/examples/RrtGui/RrtGuiWindow.cpp b/MotionPlanning/examples/RrtGui/RrtGuiWindow.cpp index 1d6713fba..83fbae72a 100644 --- a/MotionPlanning/examples/RrtGui/RrtGuiWindow.cpp +++ b/MotionPlanning/examples/RrtGui/RrtGuiWindow.cpp @@ -122,7 +122,7 @@ void RrtGuiWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); diff --git a/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.cpp b/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.cpp index 4a6e1d5ac..262d27c54 100644 --- a/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.cpp +++ b/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.cpp @@ -112,7 +112,7 @@ namespace SimDynamics // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); //viewer->setAntialiasing(true, 4); diff --git a/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.cpp b/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.cpp index ef181146b..0acd4063e 100644 --- a/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.cpp +++ b/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.cpp @@ -145,7 +145,7 @@ namespace VirtualRobot // setup m_pExViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - m_pExViewer->setAccumulationBuffer(true); + m_pExViewer->setAccumulationBuffer(false); m_pExViewer->setAntialiasing(true, 4); diff --git a/VirtualRobot/examples/CameraViewer/showCamWindow.cpp b/VirtualRobot/examples/CameraViewer/showCamWindow.cpp index beba7a642..7610b5d5a 100644 --- a/VirtualRobot/examples/CameraViewer/showCamWindow.cpp +++ b/VirtualRobot/examples/CameraViewer/showCamWindow.cpp @@ -129,7 +129,7 @@ void showCamWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); diff --git a/VirtualRobot/examples/CoinViewer/CoinViewer.cpp b/VirtualRobot/examples/CoinViewer/CoinViewer.cpp index 76be9e52a..e9f478ebf 100644 --- a/VirtualRobot/examples/CoinViewer/CoinViewer.cpp +++ b/VirtualRobot/examples/CoinViewer/CoinViewer.cpp @@ -45,12 +45,12 @@ CoinViewerExample::CoinViewerExample() UI.setupUi(this); viewer = new SoQtExaminerViewer(UI.frameViewer, "", TRUE, SoQtExaminerViewer::BUILD_POPUP); viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); viewer->setAntialiasing(true, 4); viewer->setGLRenderAction(new SoLineHighlightRenderAction); viewer->setTransparencyType(SoGLRenderAction::BLEND); + viewer->setAccumulationBuffer(false); viewer->setFeedbackVisibility(true); viewer->setSceneGraph(sceneSep); diff --git a/VirtualRobot/examples/ConstrainedIK/ConstrainedIKWindow.cpp b/VirtualRobot/examples/ConstrainedIK/ConstrainedIKWindow.cpp index 012796c13..3d9730cbd 100644 --- a/VirtualRobot/examples/ConstrainedIK/ConstrainedIKWindow.cpp +++ b/VirtualRobot/examples/ConstrainedIK/ConstrainedIKWindow.cpp @@ -85,7 +85,7 @@ void ConstrainedIKWindow::setupUI() // setup exViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - exViewer->setAccumulationBuffer(true); + exViewer->setAccumulationBuffer(false); exViewer->setAntialiasing(true, 4); exViewer->setTransparencyType(SoGLRenderAction::BLEND); diff --git a/VirtualRobot/examples/GenericIK/GenericIKWindow.cpp b/VirtualRobot/examples/GenericIK/GenericIKWindow.cpp index 38136fab9..cae2e4248 100644 --- a/VirtualRobot/examples/GenericIK/GenericIKWindow.cpp +++ b/VirtualRobot/examples/GenericIK/GenericIKWindow.cpp @@ -58,7 +58,7 @@ void GenericIKWindow::setupUI() // setup exViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - exViewer->setAccumulationBuffer(true); + exViewer->setAccumulationBuffer(false); exViewer->setAntialiasing(true, 4); exViewer->setTransparencyType(SoGLRenderAction::BLEND); diff --git a/VirtualRobot/examples/Jacobi/JacobiWindow.cpp b/VirtualRobot/examples/Jacobi/JacobiWindow.cpp index ed322b0c1..63a3e436d 100644 --- a/VirtualRobot/examples/Jacobi/JacobiWindow.cpp +++ b/VirtualRobot/examples/Jacobi/JacobiWindow.cpp @@ -65,7 +65,7 @@ void JacobiWindow::setupUI() // setup exViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - exViewer->setAccumulationBuffer(true); + exViewer->setAccumulationBuffer(false); exViewer->setAntialiasing(true, 4); diff --git a/VirtualRobot/examples/ReachabilityMap/ReachabilityMapWindow.cpp b/VirtualRobot/examples/ReachabilityMap/ReachabilityMapWindow.cpp index f050de8cf..57e9de4d9 100644 --- a/VirtualRobot/examples/ReachabilityMap/ReachabilityMapWindow.cpp +++ b/VirtualRobot/examples/ReachabilityMap/ReachabilityMapWindow.cpp @@ -106,7 +106,7 @@ void ReachabilityMapWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); diff --git a/VirtualRobot/examples/RobotViewer/showRobotWindow.cpp b/VirtualRobot/examples/RobotViewer/showRobotWindow.cpp index 139e8bda9..73968c30b 100644 --- a/VirtualRobot/examples/RobotViewer/showRobotWindow.cpp +++ b/VirtualRobot/examples/RobotViewer/showRobotWindow.cpp @@ -106,7 +106,7 @@ void showRobotWindow::setupUI() viewer->setSceneGraph(sceneSep); viewer->viewAll(); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); connect(UI.pushButtonReset, SIGNAL(clicked()), this, SLOT(resetSceneryAll())); diff --git a/VirtualRobot/examples/SceneViewer/showSceneWindow.cpp b/VirtualRobot/examples/SceneViewer/showSceneWindow.cpp index 354ad20cb..5b70afe6f 100644 --- a/VirtualRobot/examples/SceneViewer/showSceneWindow.cpp +++ b/VirtualRobot/examples/SceneViewer/showSceneWindow.cpp @@ -62,7 +62,7 @@ void showSceneWindow::setupUI() // setup viewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - viewer->setAccumulationBuffer(true); + viewer->setAccumulationBuffer(false); viewer->setAntialiasing(true, 4); viewer->setGLRenderAction(new SoLineHighlightRenderAction); diff --git a/VirtualRobot/examples/reachability/reachabilityWindow.cpp b/VirtualRobot/examples/reachability/reachabilityWindow.cpp index e2b2e25cd..8a7c3dd8b 100644 --- a/VirtualRobot/examples/reachability/reachabilityWindow.cpp +++ b/VirtualRobot/examples/reachability/reachabilityWindow.cpp @@ -85,7 +85,7 @@ void reachabilityWindow::setupUI() // setup m_pExViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - m_pExViewer->setAccumulationBuffer(true); + m_pExViewer->setAccumulationBuffer(false); m_pExViewer->setAntialiasing(true, 4); @@ -125,7 +125,7 @@ void reachabilityWindow::setupUI() UI.sliderCutMaxAngle->setEnabled(false); UI.checkBoxReachabilityCut->setEnabled(false); - m_pExViewer->setAccumulationBuffer(true); + m_pExViewer->setAccumulationBuffer(false); m_pExViewer->setAntialiasing(true, 4); } diff --git a/VirtualRobot/examples/stability/stabilityWindow.cpp b/VirtualRobot/examples/stability/stabilityWindow.cpp index 45bec7439..cc100b538 100644 --- a/VirtualRobot/examples/stability/stabilityWindow.cpp +++ b/VirtualRobot/examples/stability/stabilityWindow.cpp @@ -83,7 +83,7 @@ void stabilityWindow::setupUI() // setup m_pExViewer->setBackgroundColor(SbColor(1.0f, 1.0f, 1.0f)); - m_pExViewer->setAccumulationBuffer(true); + m_pExViewer->setAccumulationBuffer(false); m_pExViewer->setAntialiasing(true, 4); -- GitLab