[vtkusers] vtkTexture->SetInput(vtkBMPReader->GetOutput())gives error.

Aroosha Laghaee a.laghaee at sms.ed.ac.uk
Mon Jan 29 13:40:58 EST 2007


Hello,

I am trying to create a texture from a bmp file. I have followed the 
examples to create the following but on compiling I get the error 
message:

e:\myprojects\lara\armgraphics.cpp(248) : error C2039: 'GetOuput' : is 
not a member of 'vtkBMPReader'
         e:\vtk\extract\vtk\io\vtkbmpreader.h(47) : see declaration of 
'vtkBMPReader'

Here is my code:

	//read bmp file for room texture
	vtkBMPReader *reader = vtkBMPReader::New();
	reader->SetFileName("wall.bmp");

	//create texture for room
	vtkTexture *texture = vtkTexture::New();
	texture->SetInput(reader->GetOuput());
	texture->InterpolateOn();

	vtkActor* room = vtkActor::New();
	room->SetUserTransform(ct8);
	room->SetMapper(cubeMapper8);
	room->SetTexture(texture);

But GetOuput() is a public member vtkBMPReader's parent class 
vtkImageSource! Can anyone tell me what I am doing wrong please?

Thank you,
           Aroosha




More information about the vtkusers mailing list