[Rock-dev] [rock] #489: vizkit: unable to deactivate the visualization of transformations
rock
noreply at opendfki.de
Tue Jul 22 16:02:11 CEST 2014
#489: vizkit: unable to deactivate the visualization of transformations
-----------------------+------------------------------------
Reporter: anna.born | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: gui | Keywords: vizkit, transformation
-----------------------+------------------------------------
Hello,
I am trying to deactivate the visualization of transformation in vizkit3d
Widget through ruby script.
{{{
view3d = Vizkit.vizkit3d_widget
view3d.setTransformer(false) # set the visualization property to false
}}}
Transformations, which are known at the moment of the property setup (such
as 'world_osg'), will be not visualized. But the transformations, which
are added afterwards (e.g. from the transformation stack), will be visible
anyway.
The small script below shows this behavior.
{{{
require 'vizkit'
vizkit3d = Vizkit.vizkit3d_widget
vizkit3d.setTransformation("world_osg","INVISIBLE",Qt::Vector3D.new(0,0,1),Qt::Quaternion.new)
vizkit3d.setTransformer(false)
vizkit3d.setTransformation("world_osg","VISIBLE",Qt::Vector3D.new(1,0,1),Qt::Quaternion.new)
vizkit3d.show
Vizkit.exec
}}}
--
Ticket URL: <https://rock.opendfki.de/ticket/489>
rock <https://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list