[vtkusers] Method that read using vtkVolume16Reader ??

heochy heochy at hotmail.com
Fri Oct 10 01:54:57 EDT 2003


Hi~~ ask a guestion..

I creat medical treatment program to use vtkVolume16Reader.

Present, I bring file and am doing rendering by Volume.

However, is method that do Rendering using data(thing such as char)
instead of file??

Thanks..

--Source--
/***********************************************************************
***/
m_pVolume16Reader->SetDataDimensions(nResizeValue, nResizeValue);
if(bBig == true) 
	m_pVolume16Reader->SetDataByteOrderToBigEndian();
else 
	m_pVolume16Reader->SetDataByteOrderToLittleEndian();
	
//Is part that this code brings file.
m_pVolume16Reader->SetFilePrefix(strPath);
m_pVolume16Reader->SetHeaderSize(0);

m_pVolume16Reader->SetImageRange(nFirstPage, nLastPage);
m_pVolume16Reader->SetDataSpacing (0.08, 0.08, 1.6);
/***********************************************************************
***/



More information about the vtkusers mailing list