[vtkusers] dereferences a pointer to vtkImageData

David Brayford dbrayford at gmail.com
Mon Aug 15 17:12:12 EDT 2011


Hi,

I am trying to dereference a pointer to a vtkImageData object but get
the following error message on the line where I am trying to pass a
dereferenced pointer to the SetImageData function.

// function declaration
void SetImageDate(vtkImageData im);


myImage->SetImageData( *image ); // where image is a pointer;
vtkImageData * image;


 "error C2248: 'vtkImageData::vtkImageData' : cannot access private
member declared in class 'vtkImageData'"

Thanks
David



More information about the vtkusers mailing list