38 lines
974 B
C++
38 lines
974 B
C++
//
|
|
// Created on 2026/3/30.
|
|
//
|
|
// 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_V3DTRICUBE_H
|
|
#define OPENCAX_V3DTRICUBE_H
|
|
|
|
#include "NativeEGLOCCT/common.h"
|
|
#include <AIS_InteractiveContext.hxx>
|
|
#include <Graphic3d_TransformPers.hxx>
|
|
#include <AIS_ViewCube.hxx>
|
|
|
|
namespace NativeOpenCAX {
|
|
|
|
class V3dTriCube {
|
|
public:
|
|
V3dTriCube();
|
|
~V3dTriCube();
|
|
bool InitV3dTriCube(Handle(AIS_InteractiveContext)& ctx);
|
|
private:
|
|
Handle(AIS_ViewCube) triCube;
|
|
Handle(Graphic3d_TransformPers) triPers;
|
|
//立方体面显示文本
|
|
std::u16string rightCube = u"右视图";
|
|
std::u16string backCube = u"后视图";
|
|
std::u16string topCube = u"俯视图";
|
|
std::u16string leftCube = u"左视图";
|
|
std::u16string frontCube = u"前视图";
|
|
std::u16string bottomCube = u"仰视图";
|
|
|
|
private:
|
|
|
|
};
|
|
}
|
|
#endif //OPENCAX_V3DTRICUBE_H
|