[osg-users] Determining whether a node is active in UpdateVisitor.

2011-08-09 Thread Mark Acosta
Is there some mechanism to determine whether or not a node being traversed 
during an update traversal is active or not? I know I could change the 
TraversalMode in UpdateVisitor to traverse only active children, but what if 
I want to traverse all children and only take action if a particular type of 
node is active? I can't find anything in NodeVisitor that would let me do 
this.


Thanks,
Mark 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgviewerWX example fails to build with debug

2008-12-19 Thread Mark Acosta

Hi guys,

   I'm running  Fedora 10 and trying to build OSG from the latest svn 
version. Everything compiles fine except for the osgviewerWX example. I'm 
getting these errors:


CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o: In function 
`wxStringBase':
/usr/include/wx-2.8/wx/string.h:351: undefined reference to 
`wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t 
const*)'
CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o:(.rodata._ZTV8wxOsgApp[vtable 
for wxOsgApp]+0x130): undefined reference to `wxApp::OnAssertFailure(wchar_t 
const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'
CMakeFiles/example_osgviewerWX.dir/osgviewerWX.o:(.rodata._ZTV8wxOsgApp[vtable 
for wxOsgApp]+0x138): undefined reference to `wxAppConsole::OnAssert(wchar_t 
const*, int, wchar_t const*, wchar_t const*)'


   I looked into this a bit and the routines listed above are only defined 
if __WXDEBUG__ is defined. Looking at /usr/include/wx-2.8/wx/debug.h, it's 
not clear to me how __WXDEBUG__ is getting defined. I noticed that if I 
define NDEBUG that it will undefine __WXDEBUG__. The example compiles if I 
do this, but it's more of a kluge than a solution.


   I'm no wx expert. Maybe someone on the list has an idea of what's going 
on here and what the proper fix is.


Mark 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org