#include <MRPythonViewer/MRPythonViewer.h>
Viewport is a rectangular area, in which the objects of interest are going to be rendered. An application can have a number of viewports each with its own ID.
◆ Viewport()
| MR::PythonViewer::Viewport::Viewport |
( |
ViewportId | id | ) |
|
|
inlineexplicit |
◆ cameraLookAlong()
| void MR::PythonViewer::Viewport::cameraLookAlong |
( |
const Vector3f & | dir, |
|
|
const Vector3f & | up ) const |
Set camera look direction and up direction (they should be perpendicular) this function changes camera position and do not change camera spot (0,0,0) by default to change camera position use setCameraTranslation after this function
◆ cameraRotateAround()
| void MR::PythonViewer::Viewport::cameraRotateAround |
( |
const Line3f & | axis, |
|
|
float | angle ) const |
Rotates camera around axis +direction applied to axis point note: this can make camera clip objects (as far as distance to scene center is not fixed)
◆ projectToViewportSpace()
| Vector3f MR::PythonViewer::Viewport::projectToViewportSpace |
( |
const Vector3f & | input | ) |
const |
|
nodiscard |
Project world space point to viewport coordinates (in pixels), (0,0) will be at the top-left corner of the viewport.
◆ id
The documentation for this class was generated from the following file: