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

Aroosha Laghaee A.Laghaee at sms.ed.ac.uk
Mon Jan 29 14:15:33 EST 2007


Please ignore the following message. The problem was a typo. I was so busy 
thinking I hadn't understood what to do that I didn't see it!

Sorry!
   Aroosha  :0)

---------- Forwarded message ----------
Date: Mon, 29 Jan 2007 18:40:58 +0000
From: Aroosha Laghaee <a.laghaee at sms.ed.ac.uk>
To: vtkusers at vtk.org
Subject: vtkTexture->SetInput(vtkBMPReader->GetOutput())gives error.

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