[OpenWalnut-Dev] [OWci] r7350: [FIX] vector plot now reacts to changes of its active flag

Sebastian Eichelbaum openwalnut at nemtics.com
Tue May 5 16:49:57 CEST 2015


Please copy this changeset to the default branch too.

On Mon, 04 May 2015, reichenbach at informatik.uni-leipzig.de wrote:

>*Branch screenshot_format_from_script*
>[FIX] vector plot now reacts to changes of its active flag
>
>changeset 7350:4cdf2f7c9b8d in /srv/hg/ow (Mon May 04 19:22:51 2015 +0200):
>
>http://www.openwalnut.org/projects/openwalnut/repository/revisions/7350
>
>diffstat:
>
> src/modules/vectorPlot/WMVectorPlot.cpp |  14 ++------------
> 1 files changed, 2 insertions(+), 12 deletions(-)
>
>diffs (38 lines):
>
>diff -r 8d3906bbe9dd -r 4cdf2f7c9b8d src/modules/vectorPlot/WMVectorPlot.cpp
>--- a/src/modules/vectorPlot/WMVectorPlot.cpp	Mon May 04 19:22:28 2015 +0200
>+++ b/src/modules/vectorPlot/WMVectorPlot.cpp	Mon May 04 19:22:51 2015 +0200
>@@ -38,6 +38,7 @@
> #include "core/dataHandler/WDataHandlerEnums.h"
> #include "core/kernel/WKernel.h"
> #include "core/kernel/WSelectionManager.h"
>+#include "core/graphicsEngine/callbacks/WGENodeMaskCallback.h"
>
> #include "WMVectorPlot.h"
> #include "WMVectorPlot.xpm"
>@@ -159,6 +160,7 @@
>
>             osg::ref_ptr< osg::Geode > newRootNode = new osg::Geode();
>             newRootNode->addDrawable( buildPlotSlices() );
>+            newRootNode->addUpdateCallback( new WGENodeMaskCallback( m_active ) );
>
>             ++*progress;
>
>@@ -223,18 +225,6 @@
>
> void WMVectorPlot::activate()
> {
>-    if( m_rootNode )   // always ensure the root node exists
>-    {
>-        if( m_active->get() )
>-        {
>-            m_rootNode->setNodeMask( 0xFFFFFFFF );
>-        }
>-        else
>-        {
>-            m_rootNode->setNodeMask( 0x0 );
>-        }
>-    }
>-
>     // Always call WModule's activate!
>     WModule::activate();
> }
>_______________________________________________
>All-openwalnut-commits mailing list
>All-openwalnut-commits at lists.informatik.uni-leipzig.de
>http://lists.informatik.uni-leipzig.de/mailman/listinfo/all-openwalnut-commits

-- 
Dr. rer. nat. Sebastian Eichelbaum
Nemtics Visualization - Software | Training | Consulting
  
http://www.sebastian-eichelbaum.de
http://www.nemtics.com
sebastian.eichelbaum at nemtics.com
+49 176 34541337
  
Gohliser Straße 20 - D-04105 Leipzig


More information about the OpenWalnut-Dev mailing list