Hi Miri,
in MITK a Surface is shown in the planes views (Transversal, Sagital and
Coronal). You only have to take care that the crosshair is at the right
place. Colors are also shown in the 2d views.
The color property is an MITK object which the vtkPolyDataWriter doesn't
know. An easy way to save your surface with colors is to use the MITK
scene serialization, which is also used if you click "File" => "Save
Project". It saves all data nodes from the data storage with the MITK
properties (like color, etc.). If you only want to save one data node
you can use the scene serialization by creating a new data storage and
only adding your data note.
Greets,
Alfred
Am 07.01.2012 00:27, schrieb Miri Trope:
Hi All,
My program calculates scalars on vtkPolyData. So, by the following
methods a colored surface has been achieved:
command in filter (in myModuleLib):
surface->GetPointData()->SetScalars(vtkArray);
commands in filterView (in plugIn directory):
mitk::DataNode::Pointer surfaceNode = mitk::DataNode::New();
surfaceNode->SetProperty("scalar visibility",
mitk::BoolProperty::New(true));
surfaceNode->SetProperty("color mode",
mitk::BoolProperty::New(true));
Now, I'm wondering how can I achieve the following abilities:
1. watch the colored surface either on the planes view (nor just on
the 3d in the MITK's gui view)
2. write the colored surface (with the scalars) so it can be watched
later with his colors.
vtkPolyDataWriter can write the surface's scalars too?
Regards,
Miri
--
Alfred Franz
Deutsches Krebsforschungszentrum
Abteilung Medizinische und Biologische Informatik
Im Neuenheimer Feld 280
69120 Heidelberg
Telefon: (+49) 6221/42-2330
Fax: (+49) 6221/42-2345
eMail: [email protected]
http://mbi.dkfz-heidelberg.de
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users