![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Manages camera behavior and pixel groups. More...
#include <Camera.h>
Public Member Functions | |
Camera (Transform *transform, PixelGroup< pixelCount > *pixelGroup) | |
Constructs a Camera with a transform and pixel group. | |
Camera (Transform *transform, CameraLayout *cameraLayout, PixelGroup< pixelCount > *pixelGroup) | |
Constructs a Camera with a transform, camera layout, and pixel group. | |
PixelGroup< pixelCount > * | GetPixelGroup () override |
Retrieves the associated PixelGroup. | |
Vector2D | GetCameraMinCoordinate () override |
Retrieves the minimum coordinate of the camera. | |
Vector2D | GetCameraMaxCoordinate () override |
Retrieves the maximum coordinate of the camera. | |
Vector2D | GetCameraCenterCoordinate () override |
Retrieves the center coordinate of the camera. | |
Vector3D | GetCameraTransformMin () override |
Retrieves the minimum transform of the camera. | |
Vector3D | GetCameraTransformMax () override |
Retrieves the maximum transform of the camera. | |
Vector3D | GetCameraTransformCenter () override |
Retrieves the center transform of the camera. | |
![]() | |
CameraBase () | |
Default constructor. | |
CameraLayout * | GetCameraLayout () |
Retrieves the camera's layout. | |
Transform * | GetTransform () |
Retrieves the camera's transformation data. | |
bool | Is2D () |
Checks if the camera operates in 2D mode. | |
void | Set2D (bool is2D) |
Sets the camera's 2D mode. | |
void | SetLookOffset (Quaternion lookOffset) |
Sets the camera's look offset. | |
Quaternion | GetLookOffset () |
Retrieves the camera's look offset. | |
Private Attributes | |
PixelGroup< pixelCount > * | pixelGroup |
Pointer to the associated PixelGroup instance. | |
Vector2D | maxC |
Cached maximum coordinate of the camera. | |
Vector2D | minC |
Cached minimum coordinate of the camera. | |
bool | calculatedMax = false |
Indicates if the maximum coordinate has been calculated. | |
bool | calculatedMin = false |
Indicates if the minimum coordinate has been calculated. | |
Additional Inherited Members | |
![]() | |
Transform * | transform |
Pointer to the camera's transformation data. | |
CameraLayout * | cameraLayout |
Pointer to the camera's layout information. | |
Quaternion | lookOffset |
Look offset for the camera's orientation. | |
bool | is2D = false |
Flag indicating whether the camera operates in 2D mode. | |
Manages camera behavior and pixel groups.
The Camera class extends CameraBase and incorporates pixel group handling, allowing for advanced camera operations, including retrieving pixel data and coordinate transformations.
pixelCount | The total number of pixels managed by the camera. |
Camera | ( | Transform * | transform, |
PixelGroup< pixelCount > * | pixelGroup | ||
) |
Constructs a Camera with a transform and pixel group.
transform | Pointer to the Transform associated with the camera. |
pixelGroup | Pointer to the PixelGroup associated with the camera. |
Camera | ( | Transform * | transform, |
CameraLayout * | cameraLayout, | ||
PixelGroup< pixelCount > * | pixelGroup | ||
) |
Constructs a Camera with a transform, camera layout, and pixel group.
transform | Pointer to the Transform associated with the camera. |
cameraLayout | Pointer to the CameraLayout for the camera. |
pixelGroup | Pointer to the PixelGroup associated with the camera. |
Retrieves the center coordinate of the camera.
Implements CameraBase.
Retrieves the maximum coordinate of the camera.
Implements CameraBase.
Retrieves the minimum coordinate of the camera.
Implements CameraBase.
Retrieves the center transform of the camera.
Implements CameraBase.
Retrieves the maximum transform of the camera.
Implements CameraBase.
Retrieves the minimum transform of the camera.
Implements CameraBase.
|
overridevirtual |
|
private |
Pointer to the associated PixelGroup instance.