[vtkusers] to show and rotate
ÿffffd6NDER AYDEMÿffffddR
onder_aydemir13 at yahoo.com
Sun Nov 19 10:30:17 EST 2006
hi
I read a 3D data and now I want to Show it on the screen and make some implementations for instance rotate etc. How can I di that?
here is the code , What have i done so far:
#include "vtkImageReader.h"
#include <iostream>
void main ()
{
vtkImageReader *reader=vtkImageReader::New();
reader->SetFileDimensionality(3);
reader->SetFileName("KK-FHG3_1_20051129154051klein.raw");
reader->SetNumberOfScalarComponents(3);
reader->SetDataScalarTypeToShort();
reader->SetDataExtent(0,329,0,527,0,181);
reader->SetDataSpacing(1.0,1.0,1.6);
reader->SetDataOrigin(0.0,0.0,0.0);
---------------------------------
Sponsored Link
Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate - Click now to apply
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061119/1837b30c/attachment.htm>
More information about the vtkusers
mailing list