Never mind... It was the range that needed to be fixed... <br>Thanks,<br>Luca<br><br><div><span class="gmail_quote">On 9/4/06, <b class="gmail_sendername">Luca Pamparana</b> <<a href="mailto:deluded.soul@gmail.com">deluded.soul@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi everyone,<br><br>Today is the day to bang my head against a LUT...
<br><br>I have a problem when I try to set a look up table at run time...<br><br>So, my application is initialized with the following pipeline:<br><br>// Slicer------------>ImageMapper
<br><br>this->m_slicer->SetInput(in);<br>this->m_imageMapper->SetInput(this->m_slicer->GetOutput());<br> <br>double * range = in->GetScalarRange();<br>if (range)<br>{<br> m_colorWindowLowerBound = range[0];
<br> m_colorWindowUpperBound = range[1];<br> this->SetColorWindow(range[1] - range[0]);<br> this->SetColorLevel(0.5 * (range[1] + range[0]));<br>}<br><br>Now, I receive an event to change the color map, so I do the following:
<br><br>// The table has been built correctly and everything... I set the range<br>double * range = in->GetScalarRange();<br> if (range)<br> {<br> table->SetTableRange(range[0], range[1]);<br> m_imapToColors->SetLookupTable(table);
<br> m_imapToColors->Update();<br> }<br><br><br>Now, I rewire my pipeline<br><br><br>this->m_imapToColors->SetInput(0);<br>this->m_imageMapper->SetInput(0);<br><br>// Slicer----------> vtkImageMapToColors------------------>Image mapper
<br> <br>this->m_imapToColors->SetInput(this->m_slicer->GetOutput());<br>this->m_imapToColors->Update();<br>this->m_imageMapper->SetInput(this->m_imapToColors->GetOutput());<br>
Render();<br><br><br>All I see here is a black screen........<br><br>Any help would get me out of work. Almost 7 pm here...<br><br>Thanks,<br></div><div><span class="sg">Luca<br>
</span></div></blockquote></div><br>