ForCAX/entry/src/main/cpp/NativeEGLOCCT/Visualization/View/V3dView.h
JackLee 45176b5d7e 1-调整部分UI组件
2-调整背景颜色为有限度透明

提醒:OpenCAX由于商标已经被注册,所以本软件即日起改名NXEA
2026-04-28 21:57:30 +08:00

38 lines
828 B
C++

//
// Created on 2026/3/6.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".
#ifndef OPENCAX_VIEW_H
#define OPENCAX_VIEW_H
#include "../Context/V3dCtx.h"
#include "NativeEGLOCCT/common.h"
#include <V3d_View.hxx>
#include <Aspect_NeutralWindow.hxx>
#include <AIS_AnimationCamera.hxx>
#include <V3d.hxx>
namespace NativeNXEA{
class V3dView{
public:
V3dView();
~V3dView();
bool InitV3dView(Handle(V3d_Viewer)& viewer,EGLContext ctx,Handle(Aspect_NeutralWindow)& win);
void InitViewOption();
void SetClearColor(float r, float g, float b, float a);
void MustBeResized();
void Redraw();
void ResetView();
public:
Handle(V3d_View) view;
Quantity_Color clearColor;
};
}
#endif //OPENCAX_VIEW_H