docs/html/classglCamera.html
| | Jetson Inference
DNN Vision Library |
Public Types | Public Member Functions | Static Public Member Functions | List of all members
glCamera Class Reference Utilities Library (jetson-utils) » OpenGL
OpenGL perspective camera supporting Look-At, Yaw/Pitch/Roll, and Ortho modes. More...
#include <glCamera.h>
|
|
| enum | CameraMode { LookAt, YawPitchRoll, Ortho } |
| | Enum specifying the camera mode. More...
|
| |
|
|
| | ~glCamera () |
| | Free the camera. More...
|
| |
| void | Activate () |
| | Activate GL_PROJECTION and GL_MODELVIEW matrices. More...
|
| |
| void | Activate (CameraMode mode) |
| | Activate GL_PROJECTION and GL_MODELVIEW matrices. More...
|
| |
| void | Deactivate () |
| | Restore previous GL_PROJECTION and GL_MODELVIEW matrices. More...
|
| |
| CameraMode | GetCameraMode () const |
| | Get the camera mode. More...
|
| |
| void | SetCameraMode (CameraMode mode) |
| | Set the camera mode. More...
|
| |
| void | SetFOV (float fov) |
| | Set the field of view (FOV), in degrees. More...
|
| |
| void | SetClippingPlane (float near, float far) |
| | Set the near/far z-clipping plane. More...
|
| |
| void | SetNear (float near) |
| | Set the distance to the near clipping plane. More...
|
| |
| void | SetFar (float far) |
| | Set the distance to the far clipping plane. More...
|
| |
| void | SetEye (float x, float y, float z) |
| | Set the eye position. More...
|
| |
| void | SetLookAt (float x, float y, float z) |
| | Set the look-at point. More...
|
| |
| void | SetRotation (float yaw, float pitch, float roll) |
| | Set the yaw/pitch/roll angles, in radians. More...
|
| |
| void | SetYaw (float yaw) |
| | Set the yaw angle, in radians. More...
|
| |
| void | SetPitch (float pitch) |
| | Set the pitch angle, in radians. More...
|
| |
| void | SetRoll (float roll) |
| | Set the roll angle, in radians. More...
|
| |
| void | SetMovementSpeed (float speed) |
| | Set the movement speed (in world units) More...
|
| |
| void | SetMovementEnabled (bool enabled) |
| | Enable or disable movement from user input. More...
|
| |
| void | StoreDefaults () |
| | Store the current configuration as defaults. More...
|
| |
| void | Reset () |
| | Reset camera orientation to defaults. More...
|
| |
| void | RegisterEvents (uint32_t display=0) |
| | Register to recieve input events (enable movement) More...
|
| |
|
|
| static glCamera * | Create (CameraMode mode, int registerEvents=0) |
| | Create OpenGL camera object with the specified CameraMode. More...
|
| |
| static glCamera * | Create (int registerEvents=0) |
| | Create OpenGL camera object. More...
|
| |
OpenGL perspective camera supporting Look-At, Yaw/Pitch/Roll, and Ortho modes.
| enum glCamera::CameraMode |
Enum specifying the camera mode.
| Enumerator |
|---|
| LookAt |
LookAt (orbit)
| | YawPitchRoll |
YawPitchRoll (first person.
| | Ortho |
Ortho (2D)
|
| glCamera::~glCamera | ( | | ) | |
Free the camera.
| void glCamera::Activate | ( | | ) | |
Activate GL_PROJECTION and GL_MODELVIEW matrices.
| void glCamera::Activate | ( | CameraMode | mode | ) | |
Activate GL_PROJECTION and GL_MODELVIEW matrices.
|
| static glCamera* glCamera::Create | ( | CameraMode | mode, |
| | | int | registerEvents = 0 |
| | ) | | |
| static |
Create OpenGL camera object with the specified CameraMode.
Parameters
| registerEvents | the ID of the glDisplay window to register with to recieve input events (for moving the camera around with keyboard/mouse), or -1 to not register for input events. |
|
| static glCamera* glCamera::Create | ( | int | registerEvents = 0 | ) | |
| static |
Create OpenGL camera object.
Parameters
| registerEvents | the ID of the glDisplay window to register with to recieve input events (for moving the camera around with keyboard/mouse), or -1 to not register for input events. |
| void glCamera::Deactivate | ( | | ) | |
Restore previous GL_PROJECTION and GL_MODELVIEW matrices.
|
| CameraMode glCamera::GetCameraMode | ( | | ) | const |
| inline |
Get the camera mode.
| void glCamera::RegisterEvents | ( | uint32_t | display = 0 | ) | |
Register to recieve input events (enable movement)
| void glCamera::Reset | ( | | ) | |
Reset camera orientation to defaults.
|
| void glCamera::SetCameraMode | ( | CameraMode | mode | ) | |
| inline |
Set the camera mode.
|
| void glCamera::SetClippingPlane | ( | float | near, | | | | float | far | | | ) | | |
| inline |
Set the near/far z-clipping plane.
|
| void glCamera::SetEye | ( | float | x, | | | | float | y, | | | | float | z | | | ) | | |
| inline |
Set the eye position.
|
| void glCamera::SetFar | ( | float | far | ) | |
| inline |
Set the distance to the far clipping plane.
|
| void glCamera::SetFOV | ( | float | fov | ) | |
| inline |
Set the field of view (FOV), in degrees.
|
| void glCamera::SetLookAt | ( | float | x, | | | | float | y, | | | | float | z | | | ) | | |
| inline |
Set the look-at point.
|
| void glCamera::SetMovementEnabled | ( | bool | enabled | ) | |
| inline |
Enable or disable movement from user input.
|
| void glCamera::SetMovementSpeed | ( | float | speed | ) | |
| inline |
Set the movement speed (in world units)
|
| void glCamera::SetNear | ( | float | near | ) | |
| inline |
Set the distance to the near clipping plane.
|
| void glCamera::SetPitch | ( | float | pitch | ) | |
| inline |
Set the pitch angle, in radians.
|
| void glCamera::SetRoll | ( | float | roll | ) | |
| inline |
Set the roll angle, in radians.
|
| void glCamera::SetRotation | ( | float | yaw, | | | | float | pitch, | | | | float | roll | | | ) | | |
| inline |
Set the yaw/pitch/roll angles, in radians.
|
| void glCamera::SetYaw | ( | float | yaw | ) | |
| inline |
Set the yaw angle, in radians.
| void glCamera::StoreDefaults | ( | | ) | |
Store the current configuration as defaults.
The documentation for this class was generated from the following file:
jetson-utils/glCamera.h
Generated on Fri Mar 17 2023 14:29:30 for Jetson Inference by 1.8.17