Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
ACesiumCameraManager Class Reference

Manages custom FCesiumCameras for all ACesium3DTilesets in the world. More...

#include <CesiumCameraManager.h>

Inheritance diagram for ACesiumCameraManager:

Public Member Functions

 ACesiumCameraManager ()
 
int32 AddCamera (UPARAM(ref) const FCesiumCamera &Camera)
 Register a new camera with the camera manager.
 
bool RemoveCamera (int32 CameraId)
 Unregister an existing camera with the camera manager.
 
bool UpdateCamera (int32 CameraId, UPARAM(ref) const FCesiumCamera &Camera)
 Update the state of the specified camera.
 
const TMap< int32, FCesiumCamera > & GetCameras () const
 Get a read-only map of the current camera IDs to cameras.
 
virtual bool ShouldTickIfViewportsOnly () const override
 
virtual void Tick (float DeltaTime) override
 

Static Public Member Functions

static ACesiumCameraManagerGetDefaultCameraManager (const UObject *WorldContextObject)
 Get the camera manager for this world.
 

Detailed Description

Manages custom FCesiumCameras for all ACesium3DTilesets in the world.

Definition at line 16 of file CesiumCameraManager.h.

Constructor & Destructor Documentation

◆ ACesiumCameraManager()

ACesiumCameraManager::ACesiumCameraManager ( )

Member Function Documentation

◆ AddCamera()

int32 ACesiumCameraManager::AddCamera ( UPARAM(ref) const FCesiumCamera & Camera)

Register a new camera with the camera manager.

Parameters
CameraThe current state for the new camera.
Returns
The generated ID for this camera. Use this ID to refer to the camera in the future when calling UpdateCamera.

◆ GetCameras()

const TMap< int32, FCesiumCamera > & ACesiumCameraManager::GetCameras ( ) const

Get a read-only map of the current camera IDs to cameras.

◆ GetDefaultCameraManager()

static ACesiumCameraManager * ACesiumCameraManager::GetDefaultCameraManager ( const UObject * WorldContextObject)
static

Get the camera manager for this world.

◆ RemoveCamera()

bool ACesiumCameraManager::RemoveCamera ( int32 CameraId)

Unregister an existing camera with the camera manager.

Parameters
CameraIdThe ID of the camera, as returned by AddCamera during registration.
Returns
Whether the updating was successful. If false, the CameraId was invalid.

◆ ShouldTickIfViewportsOnly()

virtual bool ACesiumCameraManager::ShouldTickIfViewportsOnly ( ) const
overridevirtual

◆ Tick()

virtual void ACesiumCameraManager::Tick ( float DeltaTime)
overridevirtual

◆ UpdateCamera()

bool ACesiumCameraManager::UpdateCamera ( int32 CameraId,
UPARAM(ref) const FCesiumCamera & Camera )

Update the state of the specified camera.

Parameters
CameraIdThe ID of the camera, as returned by AddCamera during registration.
CameraThe new, updated state of the camera.
Returns
Whether the updating was successful. If false, the CameraId was invalid.

The documentation for this class was generated from the following file: