30 lines
707 B
C++
30 lines
707 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_CAMERA_H
|
|
#define OPENCAX_CAMERA_H
|
|
#include "NativeEGLOCCT/common.h"
|
|
#include <V3d_View.hxx>
|
|
#include <Graphic3d_Camera.hxx>
|
|
#include <gp_Quaternion.hxx>
|
|
namespace NativeOpenCAX {
|
|
|
|
class V3dCamera{
|
|
public:
|
|
V3dCamera();
|
|
~V3dCamera();
|
|
bool InitV3dCamera(Handle(V3d_View)& view);
|
|
void SwitchView(std::string view);
|
|
void SetRotation(float xAngle, float yAngle);
|
|
public:
|
|
Handle(Graphic3d_Camera) camera;
|
|
Handle(V3d_View) view;
|
|
};
|
|
|
|
} // namespace NativeOpenCAX
|
|
|
|
#endif // OPENCAX_CAMERA_H
|