<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#cae2b4>
<DIV><FONT face=Arial size=2>Hello everybody!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using the Test of ImagePlaneWidget (from
VTK\Hybrid\Testing\Cxx\ImagePlaneWidget.cxx) and in the test works fine.
</FONT></DIV>
<DIV><FONT face=Arial size=2>I am using the same code in my app, but there I
obtain only 2 colors, black where is 0 in the image, white where is not 0 in the
image.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried several lookup tables and the results were
the same.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can somebody help me? What did I
wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the code:</FONT></DIV><FONT face=Arial
size=2>
<DIV><BR> for (int i=0;i<3;i++){ //3=nrPlanes<BR> if
(!m_bViewReslice) {<BR> vImagePlaneWidget[i]->Off();
<BR> continue;<BR> }<BR> vImagePlaneWidget[i]->SetInteractor(
aWin32RenderWindowInteractor);<BR> vImagePlaneWidget[i]->SetPicker(aCellPicker);<BR> //vImagePlaneWidget[i]->RestrictPlaneToVolumeOn();<BR> vImagePlaneWidget[i]->GetPlaneProperty()->SetColor(1,1,0);<BR> vImagePlaneWidget[i]->SetTexturePlaneProperty(aProperty);<BR> vImagePlaneWidget[i]->TextureInterpolateOn();<BR> vImagePlaneWidget[i]->SetResliceInterpolateToLinear();<BR> vImagePlaneWidget[i]->SetInput((vtkDataSet
*)v16->GetOutput()); //in the test works without cating!
why?<BR> vImagePlaneWidget[i]->SetLookupTable(vLookupTable[i]);
//same if I comment it out</DIV>
<DIV> </DIV>
<DIV> vImagePlaneWidget[i]->DisplayTextOn();<BR> vImagePlaneWidget[i]->UpdatePlacement();<BR> vImagePlaneWidget[i]->On();
<BR> //vImagePlaneWidget[i]->InteractionOff();<BR> vImagePlaneWidget[i]->InteractionOn();<BR> }<BR> vImagePlaneWidget[0]->SetPlaneOrientationToXAxes();<BR> vImagePlaneWidget[1]->SetPlaneOrientationToYAxes();<BR> vImagePlaneWidget[2]->SetPlaneOrientationToZAxes();<BR> for
(i=0;i<3;i++)<BR> vImagePlaneWidget[i]->SetSlicePosition(orig[i]);
//orig[3] is the center of the volume<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan Matis</FONT></DIV></BODY></HTML>