我正在进行vtk项目我想编写自己的鼠标交互式样式我写了这个课程
class vtkInteractorStyleZoom : public vtkInteractorStyleTrackballCamera
{
public:
static vtkInteractorStyleZoom* New();
vtkTypeMacro(vtkInteractorStyleZoom, vtkInteractorStyleTrackballCamera);
virtual void OnLeftButtonDown()
{
this->StartDolly();
}
};
vtkStandardNewMacro(vtkInteractorStyleZoom);
当我用cmake编译项目时,我收到了这个错误:期望构造函数,析构函数或类型转换之前&#39 ;;'令牌
vtkStandardNewMacro(vtkInteractorStyleZoom);