AIS_MouseGesture
//! 鼠标手势 - 同一时刻只能激活一个。
enum AIS_MouseGesture
{
AIS_MouseGesture_NONE, //!< 无激活手势
//
AIS_MouseGesture_SelectRectangle, //!< 矩形选择;
//! 按下按钮开始,移动鼠标定义矩形,释放完成
AIS_MouseGesture_SelectLasso, //!< 多边形选择;
//! 按下按钮开始,移动鼠标定义多边形路径,释放完成
//
AIS_MouseGesture_Zoom, //!< 视图缩放手势;
//! 向左移动鼠标缩小,向右移动鼠标放大
AIS_MouseGesture_ZoomWindow, //!< 通过窗口缩放视图手势;
//! 按下按钮开始,移动鼠标定义矩形,释放完成
AIS_MouseGesture_Pan, //!< 视图平移手势
AIS_MouseGesture_RotateOrbit, //!< 轨道旋转手势
AIS_MouseGesture_RotateView, //!< 视图旋转手势
AIS_MouseGesture_Drag, //!< 对象拖拽;
//! 按下按钮开始,移动鼠标定义矩形,释放完成
};
//! 定义鼠标手势的映射。
typedef NCollection_DataMap<unsigned int, AIS_MouseGesture> AIS_MouseGestureMap;
typedef NCollection_DataMap<unsigned int, AIS_SelectionScheme> AIS_MouseSelectionSchemeMap;
AIS_MultipleConnectedInteractive
前言
通过汇集多个对象表示来定义一个交互对象。
这是通过交互对象列表来实现的。
这些也可以是连接的对象。
这样就可以避免进行耗时的表示计算。
方法
1
空构造函数。
Standard_EXPORT AIS_MultipleConnectedInteractive();
2
析构函数。
Standard_EXPORT virtual ~AIS_MultipleConnectedInteractive();
3
设置回调函数,用于在队列进度时调用(例如,当需要显示新帧时)。
void SetCallback (Graphic3d_MediaTextureSet::CallbackOnUpdate_t theCallbackFunction, void* theCallbackUserPtr)
{
myFramePair->SetCallback (theCallbackFunction, theCallbackUserPtr);
}
4
打开指定文件。
Standard_EXPORT void OpenInput (const TCollection_AsciiString& thePath,
Standard_Boolean theToWait);
5
显示新帧。
Standard_EXPORT bool PresentFrame (const Graphic3d_Vec2i& theLeftCorner,
const Graphic3d_Vec2i& theMaxSize);
6
返回播放器上下文。
const Handle(Media_PlayerContext)& PlayerContext() const { return myFramePair-