Hello. <span id="result_box" class="short_text"><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">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 id="result_box" class="medium_text"><span title="÷ĻŚĪÉĖĮÅŌ ĻŪÉĀĖĮ">There error AccessViolationException.<br><br>Help me please. </span></span><span id="result_box" class="short_text"><span style="background-color: rgb(235, 239, 249);" title="ŚĮŅĮĪÅÅ ÓŠĮÓÉĀĻ">Thanks in advance.</span></span><br>
-- <br>ó õ×ĮÖÅĪÉÅĶ,<br>įĪÄŅÅŹ.<br>