I find my error. I forged DicomReader.Update()...<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="ÉŚ×ÉĪÉŌÅ ŚĮ ĀÅÓŠĻĖĻŹÓŌ×Ļ">sorry for bothering.</span></span><br><br><div class="gmail_quote">
18 ŃĪ×ĮŅŃ 2010 Ē. 15:16 ŠĻĢŲŚĻ×ĮŌÅĢŲ įĪÄŅÅŹ ēĢÕČĻ× <span dir="ltr"><<a href="mailto:realandron@gmail.com">realandron@gmail.com</a>></span> ĪĮŠÉÓĮĢ:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello. <span><span title="šŅÉ×ÅŌ.">Hi. </span><span title="ń ŠĻÓĶĻŌŅÅĢ ŠŅÉĶÅŅ ...">I looked at an example <a href="http://devsample.org/index.php?option=com_content&task=view&id=18&Itemid=1" target="_blank">http://devsample.org/index.php?option=com_content&task=view&id=18&Itemid=1</a> , </span><span title=", ĪĻ Ń ĪÅ ŠĻĪÉĶĮĄ ĖĮĖÉÅ Ó×ĻŹÓŌ×Į ĪÅĻĀČĻÄÉĶĻ ÕÓŌĮĪĻ×ÉŌŲ ÄĢŃ">but I do not understand what properties should be set for</span></span> Interactor. <br>
<br clear="all"><div style="margin-left: 40px;"> vtkRenderer ren1 = new vtkRenderer();<br></div> ren1.SetBackground(0, 0, 0);<br><br> vtkRenderWindow Win = reWin.GetRenderWindow(); ;<br> Win.AddRenderer(ren1);<br>
<br> vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();<br> iren.SetRenderWindow(Win);<br> <br> vtkDICOMImageReader DicomReader = new vtkDICOMImageReader();<br> DicomReader.SetDirectoryName(@"directory");<br>
<br> vtkImageData ImageData = new vtkImageData();<br> ImageData.DeepCopy(DicomReader.GetOutput());<br><br> vtkPiecewiseFunction m_pOpacityTransferFunction = new vtkPiecewiseFunction();<br>
vtkColorTransferFunction m_pColorTransferFunction = new vtkColorTransferFunction();<br> <br> vtkVolumeProperty VolumeProperty = new vtkVolumeProperty();<br> VolumeProperty.SetColor(m_pColorTransferFunction);<br>
VolumeProperty.SetScalarOpacity(m_pOpacityTransferFunction);<br> VolumeProperty.SetInterpolationTypeToLinear();<br> VolumeProperty.ShadeOff();<br><br> vtkVolume Volume = new vtkVolume();<br>
Volume.SetProperty(VolumeProperty);<br><br> vtkFixedPointVolumeRayCastMapper VolumeMapperSoftware = new vtkFixedPointVolumeRayCastMapper();<br> VolumeMapperSoftware.SetInput(ImageData);<br>
VolumeMapperSoftware.SetSampleDistance(1.0f);<br> VolumeMapperSoftware.SetBlendModeToMaximumIntensity();<br> Volume.SetMapper(VolumeMapperSoftware);<br><br> ren1.AddVolume(Volume);<br>
ren1.ResetCamera();<br> iren.Initialize();<br> iren.Start();// <span><span title="÷ĻŚĪÉĖĮÅŌ ĻŪÉĀĖĮ">There error AccessViolationException.<br><br>Help me please. </span></span><span><span style="background-color: rgb(235, 239, 249);" title="ŚĮŅĮĪÅÅ ÓŠĮÓÉĀĻ">Thanks in advance.</span></span><br>
-- <br>ó õ×ĮÖÅĪÉÅĶ,<br><font color="#888888">įĪÄŅÅŹ.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>ó õ×ĮÖÅĪÉÅĶ,<br>įĪÄŅÅŹ.<br>