Dear Hila,
sorry for the late reply.
In order to visualize scalars on a PolyData you need to:
* Pass these scalar to the PolyData:
polydata->GetPointData()->SetScalars(scalars);
* Create a lookup table (vtkLookupTable) that maps each scalar to a
particular color.
* Create a mitk::LookupTable that wraps the vtkLookupTable.
* In the DataNode that represents the surface, you must set the
LookupTable property:
node->SetProperty("LookupTable", mitkLookupTable);
* Also in the node you must set the maximum and minimum of the scalars
range:
node->SetFloatProperty("ScalarsRangeMinimum", minimum);
node->SetFloatProperty("ScalarsRangeMaximum", maximum);
Now your scalar should be shown above the surface, with the respective
color assigned by the lookup table.
Please let me know if you have any further problem.
Best regards,
Thiago
--
Thiago R. dos Santos, MSc.CompSc.
Div. Medical & Biological Informatics (E130) http://www.dkfz.de
German Cancer Research Center (DKFZ) Tel: (+49) 6221 42 3551
Im Neuenheimer Feld 280 Fax: (+49) 6221 42 2345
69120 Heidelberg - Germany eMail: [email protected]
On Mon, 2012-03-05 at 10:51 +0100, Alfred Franz wrote:
>
>
> -------- Original-Nachricht --------
> Betreff:
> [mitk-users] Surface's scalars
> visualization
> Datum:
> Fri, 24 Feb 2012 21:47:59 +0100
> Von:
> Hila Hiler <[email protected]>
> An:
> [email protected]
> <[email protected]>
>
>
> Hi All,
>
> How it's possible to represent a point's scalar of any surface data
> (vtkPolyData/ mitk::Surface) on the GUI of Mitk?
>
> for example, I would like that when a cursor is clicked/stands on a
> colored sphere - the scalar's value (which are set with a
> vtkFloatArray) would be visualized.
>
> Any suggestions?
>
> Best,
> Hila
>
>
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users