[vtkusers] Is ‘vtkPolyData’ can conert to ‘vtkDataSet’?(VC6)

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Nov 1 10:08:11 EST 2004


LingXiao,

	We really appreciate people giving advice on the vtkusers ML, but this 
time I believe you made a mistake:

http://vtk.org/Wiki/VTK_FAQ#Forward_declaration_in_VTK_4.x

	Every time you use a class like vtkPolyData, you are supposed to 
include the full declaration:

#include "vtkPolyData.h"

HTH
Mathieu

LingXiao Zhao wrote:
> Hi, savage:
> 
> It seems like you should convert the data type yourself by using:
> (vtkDataSet *)(sphere->GetOutput()). Cause vtkDataSetToPolyDataFilter,
> which is a super class of vtkGlyph3D, can only get the input from an
> object of the class vtkDataSet.
> 
> Hope this can help. Greetings!
> Lingxiao
> 
> 
> On Mon, 1 Nov 2004 13:46:23 +0800 (CST), Savage <sqsavage at tom.com> wrote:
> 
>>Hi,all. I an trying the example 'AnnotePick' using VC6. An error occurred
>>and I have no idea to correct it: cone = vtkConeSource::New(); glyph =
>>vtkGlyph3D::New(); glyph->SetInput( sphere->GetOutput() ); VC6 told me:
>>F:\VTKLearning\TryVTK\CXX\myAnnotePick\MyAnnotePick.cpp(29) : error C2664:
>>'SetInput' : cannot convert parameter 1 from 'class vtkPolyData *' to 'class
>>vtkDataSet *' What's wrong? Thanks in advance. 
>>
>>________________________________
>>
>>劲歌、金曲,流行、怀旧 免费随你点!!!
>>中秋赏明月,温馨寄祝福!TOM贺卡站
>>150万最新最全MP3歌曲免费下载!
>>163收费邮箱无条件全面升级,升幅强劲,加量不加价!
>>更强安全系统,更大容量!一样的价格,不一样的空间!
>>邮箱订购及咨询热线(24小时):8008309163 或 020-87324711
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list