| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "iscript.h" |
| 4 |
#include "iscriptinterface.h" |
| 5 |
#include "icameraview.h" |
| 6 |
|
| 7 |
#include "MathInterface.h" |
| 8 |
|
| 9 |
namespace script |
| 10 |
{ |
| 11 |
|
| 12 |
class ScriptCameraView |
| 13 |
{ |
| 14 |
private: |
| 15 |
camera::ICameraView& _cameraView; |
| 16 |
|
| 17 |
public: |
| 18 |
ScriptCameraView(camera::ICameraView& cameraView); |
| 19 |
|
| 20 |
const Vector3& getCameraOrigin() const; |
| 21 |
void setCameraOrigin(const Vector3& newOrigin); |
| 22 |
|
| 23 |
const Vector3& getCameraAngles() const; |
| 24 |
void setCameraAngles(const Vector3& newAngles); |
| 25 |
|
| 26 |
void setOriginAndAngles(const Vector3& newOrigin, const Vector3& newAngles); |
| 27 |
|
| 28 |
const Vector3& getRightVector() const; |
| 29 |
const Vector3& getUpVector() const; |
| 30 |
const Vector3& getForwardVector() const; |
| 31 |
|
| 32 |
float getFarClipPlaneDistance() const; |
| 33 |
void setFarClipPlaneDistance(float distance); |
| 34 |
|
| 35 |
void refresh(); |
| 36 |
}; |
| 37 |
|
| 38 |
class CameraInterface : |
| 39 |
public IScriptInterface |
| 40 |
{ |
| 41 |
public: |
| 42 |
ScriptCameraView getActiveView(); |
| 43 |
|
| 44 |
// IScriptInterface implementation |
| 45 |
void registerInterface(py::module& scope, py::dict& globals) override; |
| 46 |
}; |
| 47 |
|
| 48 |
} // namespace script |