<DIV> </DIV>
<DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>I want to have some callback for the interaction. I defined a class vtkDicomObserver inherited from vtkCommand, but there is a problem in the method NEW. When compiling the code of this method, the compiler tell me: <EM>error C2660: 'new' : function does not take 3 parameters. </EM>The program is running under Windows XP and MSVC 6.0, as a SDI project. Can anyone give me some advice? Here is the reference code.</DIV>
<DIV> </DIV>
<DIV>//Code Begin</DIV>
<DIV>class vtkDicomObserver : public vtkCommand<BR>{<BR>public:<BR> virtual char const * GetClassName() const<BR> {<BR> return "vtkDicomObserver";<BR> }<BR> static vtkDicomObserver * New()<BR> {<BR> return new vtkDicomObserver;</DIV>
<DIV>//error occurs when compiling this sentence<BR> }<BR> vtkDicomObserver()<BR> {<BR> this->ImageViewer=NULL;<BR> this->ImgRenderWindowInteractor=NULL;<BR> }<BR> virtual void Execute(vtkObject *, unsigned long event, void* )<BR> {<BR> if(this->ImageViewer)<BR> {</DIV>
<DIV> ...<BR> }<BR> }<BR> vtkImageViewer * ImageViewer;<BR> vtkRenderWindowInteractor * ImgRenderWindowInteractor;<BR> CPoint Point;<BR>};</DIV>
<DIV><BR>//Code End</DIV>
<DIV> </DIV>
<DIV>Thanks in advance!</DIV>
<DIV> </DIV>
<DIV>Yours sincerely,</DIV>
<DIV>Alexander</DIV><SPAN ></SPAN><br><!-- footer --><br><br><br><br><br><div style="border-bottom:1px solid #999"></div><br>
        <font color="black" style="font-size:14.8px">你 不 想 试 试 今 夏 最 “酷” 的 邮 箱 吗 ?</font>
        <br>
         <a href="http://www.126.com/" target="_blank" style="font-size:13px;line-height:160%;color:blue">蕴 涵 中 华 传 统 文 化 于 世 界 一 流 科 技 之 中,创 新 Ajax 技 术,126 “D 计 划”火 热 体 验 中 !
</a>