[英]I try to run qt-vtk-project with qt creator on linuxLite
When I try to build VTK project, it shows me this error: 当我尝试构建VTK项目时,它向我显示此错误:
class 'vtkTexture' has no member named 'SetInput' texture->SetInput(imgRedear->GetOutput());
Code: 码:
vtkTexture* ManipFile3D::plaquageTexture(QString nameTex)
{
vtkBMPReader* imgRedear = vtkBMPReader::New();
imgRedear->SetFileName(nameTex);
imgRedear->ReleaseDataFlagOn();
imgRedear->Update();
vtkTexture* texture = vtkTexture::New();
texture->SetInput(imgRedear->GetOutput());
texture->InterpolateOn();
texture->ReleaseDataFlagOn();
return texture;
}
It seems that you are using vtk 6 (which requires SetInputData) with code written for vtk 5 (which used SetInput) . 看来您正在使用vtk 6(需要SetInputData)以及为vtk 5(使用SetInput)编写的代码。 See vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput
参见vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.