代码拉取完成,页面将自动刷新
#pragma once
#include <Aspect_Handle.hxx>
#include <Standard_Handle.hxx>
class AIS_InteractiveContext;
class AIS_InteractiveObject;
class V3d_View;
//! Creates main visu elements.
class Viewer
{
public:
//! Constructor.
Viewer();
//! Creates context, viewer and view. View here is not fully filled.
//! It requires posponed initView with window id.
void init();
//! Fill view with UI window identifier.
//! @param windowHandle
void initView(Aspect_Handle windowHandle);
//! Returns current context.
const Handle(AIS_InteractiveContext)& context() const;
//! Redraw active view in viewer.
void redrawView();
//! Force the active view to react on window resize.
void resizeView();
//! Fit all scene.
void fitAll();
void updateTrihedron();
void showTrihedron(Standard_Boolean bShow);
Standard_Boolean isTrihedronShowed() { return m_bShowTrihedron; }
//! Visualizes presentation in context.
//! @param presentation object to display
//! @param displayMode presentation display mode
//! @param selectionMode selection mode, if -1 do not activate in selection
void displayPresentation(const Handle(AIS_InteractiveObject)& presentation,
const int displayMode,
const int selectionMode = -1);
//! Returns an active/defined view of the context. Gets the context viewer, find the first active view.
//! If no active view, returns the first defined viewer.
//! @param context visu context
static Handle(V3d_View) activeView(const Handle(AIS_InteractiveContext)& context);
private:
Handle(AIS_InteractiveContext) m_context; //!< visu context
Standard_Boolean m_bShowTrihedron;
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。