On 06/05/2014 10:01 AM, Franziskus Neuhoff wrote:
Hi,
I want to set some visualization properties for a polydata
(LineWidth,Color,Depth-Sorting). I load it with a vtkAVSucdReader and
add it to workbench like this:
if ( reader->GetOutput() != NULL )
{
mitk::Surface::Pointer output = this->GetOutput();
output->SetVtkPolyData( filter->GetOutput() );
output->SetProperty("material.wireframeLineWidth",
mitk::FloatProperty::New(4.0));
output->Update();
success = true;
}
Unfortunatly the properties doesn't affect the visualization. Can
anybody say me how to do this correct?
Regards,
Franziskus
Hi Franziskus,
you are setting properties of the mitk::Surface object. Instead, set the
properties on the mitk::DataNode instance containing your mitk::Surface
output object.
Best,
Sascha
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users