[vtkusers] simple ray cast in c++, what's the problem?

"한종철" madness78 at pusan.ac.kr
Mon Jun 25 22:33:48 EDT 2007


hi all,
I'm studying the vtk .
This is simple c++ source of volume rendering from the book .

    this->opacityTransferFunction->AddPoint(2.0,0.0);
    this->opacityTransferFunction->AddPoint(255,0.2);
    this->colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0);
    this->colorTransferFunction->AddRGBPoint(64.0,1.0,0.0,0.0);
    this->colorTransferFunction->AddRGBPoint(128.0,0.0,0.0,1.0);
    this->colorTransferFunction->AddRGBPoint(192.0,0.0,1.0,0.0);
    this->colorTransferFunction->AddRGBPoint(255.0,0.0,0.2,0.0);
    this->volumeProperty->SetColor(colorTransferFunction);
    this->volumeProperty->SetScalarOpacity(opacityTransferFunction);
    this->volumeMapper -> SetVolumeRayCastFunction(compositeFunction);
   
    
    this->volumeMapper -> SetInput(this->Reader->GetOutput());
    this->volume->SetMapper(volumeMapper);
    this->volume->SetProperty(volumeProperty);

C:\Documents and Settings\All Users\바탕 화면\vtkSDI\vtkSDIDoc.cpp(209) : error C2664: 'void __thiscall vtkVolumeMapper::SetInput(class vtkImageData *)' : cannot convert parameter 1 from 'class vtkStructuredPoints *' to 'class vtkImageData *'


I got this problem!!
What's the problem? Can you help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070626/f7130e1f/attachment.htm>


More information about the vtkusers mailing list