OpenCAX/entry/src/main/cpp/NativeEGLOCCT/V3d/V3dView/V3dView.h

38 lines
853 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 "../V3dCtx/V3dCtx.h"
#include "NativeEGLOCCT/common.h"
#include <V3d_View.hxx>
#include <Aspect_NeutralWindow.hxx>
#include <AIS_AnimationCamera.hxx>
#include <V3d.hxx>
namespace NativeOpenCAX{
class V3dView{
public:
V3dView();
~V3dView();
bool InitV3dView(Handle(V3d_Viewer)& viewer,Handle(Aspect_NeutralWindow)& win);
void InitViewOption();
void SetClearColor(float r, float g, float b, float a);
void MustBeResized();
void Redraw();
void ResetView();
void SwitchView(std::string view);
public:
Handle(V3d_View) view;
Quantity_Color clearColor;
};
}
#endif //OPENCAX_VIEW_H