ActiViz .NET LeftButtonReleaseEvent:我点击了哪里
我正在使用 ActiViz .NET (VTK),但遇到了一个小问题。
当我注册一个事件(例如 LeftButtonReleaseEvt)时,我无法找到我单击的 RenderWindowControl 上的位置。该事件被称为。
...
rwcVtk.RenderWindow.GetInteractor().LeftButtonPressEvt += new vtkObject.vtkObjectEventHandler(RenderWindow_LeftButtonReleaseEvt);
}
void RenderWindow_LeftButtonReleaseEvt(vtkObject sender, vtkObjectEventArgs e)
{
//TODO: Where did i click?
}
有人可以帮助我吗? 我认为没有太多关于这方面的文档。
I'm working with ActiViz .NET (VTK) and have a small problem.
When I register a event (for ex. the LeftButtonReleaseEvt), I can't find out where on the RenderWindowControl I clicked. The event is called.
...
rwcVtk.RenderWindow.GetInteractor().LeftButtonPressEvt += new vtkObject.vtkObjectEventHandler(RenderWindow_LeftButtonReleaseEvt);
}
void RenderWindow_LeftButtonReleaseEvt(vtkObject sender, vtkObjectEventArgs e)
{
//TODO: Where did i click?
}
Can somebody help me?
There isn't much documentation on that out there I think.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有尝试过这个,但也许您正在寻找这个属性:
要查看此功能,请转到您的 Activiz Examples 文件夹“Examples\VolumeRendering\CS”并查看该示例。
I didn't try out this, but maybe your are looking for this property:
To see this working go to your Activiz Examples folder "Examples\VolumeRendering\CS" and see that example.