CARLA
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Private Member Functions | Friends | List of all members
ASceneCaptureSensor Class Reference

Base class for sensors using a USceneCaptureComponent2D for rendering the scene. More...

#include <SceneCaptureSensor.h>

+ Inheritance diagram for ASceneCaptureSensor:
+ Collaboration diagram for ASceneCaptureSensor:

Public Member Functions

bool ArePostProcessingEffectsEnabled () const
 
 ASceneCaptureSensor (const FObjectInitializer &ObjectInitializer)
 
void Enable16BitFormat (bool Enable=false)
 
void EnablePostProcessingEffects (bool Enable=true)
 
void EnqueueRenderSceneImmediate ()
 Immediate enqueues render commands of the scene at the current time. More...
 
float GetAperture () const
 
int GetBladeCount () const
 
float GetBloomIntensity () const
 
USceneCaptureComponent2DGetCaptureComponent2D ()
 
UTextureRenderTarget2D * GetCaptureRenderTarget ()
 
float GetChromAberrIntensity () const
 
float GetChromAberrOffset () const
 
float GetDepthBlurAmount () const
 
float GetDepthBlurRadius () const
 
float GetDepthOfFieldMinFstop () const
 
float GetExposureCalibrationConstant () const
 
float GetExposureCompensation () const
 
float GetExposureMaxBrightness () const
 
EAutoExposureMethod GetExposureMethod () const
 
float GetExposureMinBrightness () const
 
float GetExposureSpeedDown () const
 
float GetExposureSpeedUp () const
 
float GetFilmBlackClip () const
 
float GetFilmShoulder () const
 
float GetFilmSlope () const
 
float GetFilmToe () const
 
float GetFilmWhiteClip () const
 
float GetFocalDistance () const
 
float GetFOVAngle () const
 
uint32 GetImageHeight () const
 
uint32 GetImageWidth () const
 
float GetISO () const
 
float GetLensFlareIntensity () const
 
float GetMotionBlurIntensity () const
 
float GetMotionBlurMaxDistortion () const
 
float GetMotionBlurMinObjectScreenSize () const
 
float GetShutterSpeed () const
 
float GetTargetGamma () const
 
float GetWhiteTemp () const
 
float GetWhiteTint () const
 
bool Is16BitFormatEnabled () const
 
bool ReadPixels (TArray< FColor > &BitMap) const
 Use for debugging purposes only. More...
 
void SaveCaptureToDisk (const FString &FilePath) const
 Use for debugging purposes only. More...
 
void Set (const FActorDescription &ActorDescription) override
 
void SetAperture (float Aperture)
 
void SetBladeCount (int Count)
 
void SetBloomIntensity (float Intensity)
 
void SetChromAberrIntensity (float Intensity)
 
void SetChromAberrOffset (float ChromAberrOffset)
 
void SetDepthBlurAmount (float Amount)
 
void SetDepthBlurRadius (float Radius)
 
void SetDepthOfFieldMinFstop (float MinFstop)
 
void SetExposureCalibrationConstant (float Constant)
 
void SetExposureCompensation (float Compensation)
 
void SetExposureMaxBrightness (float Brightness)
 
void SetExposureMethod (EAutoExposureMethod Method)
 
void SetExposureMinBrightness (float Brightness)
 
void SetExposureSpeedDown (float Speed)
 
void SetExposureSpeedUp (float Speed)
 
void SetFilmBlackClip (float BlackClip)
 
void SetFilmShoulder (float Shoulder)
 
void SetFilmSlope (float Slope)
 
void SetFilmToe (float Toe)
 
void SetFilmWhiteClip (float WhiteClip)
 
void SetFocalDistance (float Distance)
 
void SetFOVAngle (float FOVAngle)
 
void SetImageSize (uint32 Width, uint32 Height)
 
void SetISO (float ISO)
 
void SetLensFlareIntensity (float Intensity)
 
void SetMotionBlurIntensity (float Intensity)
 
void SetMotionBlurMaxDistortion (float MaxDistortion)
 
void SetMotionBlurMinObjectScreenSize (float ScreenSize)
 
void SetShutterSpeed (float Speed)
 
void SetTargetGamma (float InTargetGamma)
 
void SetWhiteTemp (float Temp)
 
void SetWhiteTint (float Tint)
 
void WaitForRenderThreadToFinish ()
 Blocks until the render thread has finished all it's tasks. More...
 
- Public Member Functions inherited from ASensor
 ASensor (const FObjectInitializer &ObjectInitializer)
 
boost::optional< FActorAttributeGetAttribute (const FString Name)
 
const UCarlaEpisodeGetEpisode () const
 
URandomEngineGetRandomEngine ()
 
int32 GetSeed () const
 
auto GetToken () const
 Return the token that allows subscribing to this sensor's stream. More...
 
bool IsStreamReady ()
 
FDataStream MoveDataStream ()
 
virtual void OnFirstClientConnected ()
 
virtual void OnLastClientDisconnected ()
 
void PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds)
 
void SetDataStream (FDataStream InStream)
 Replace the FDataStream associated with this sensor. More...
 
void SetEpisode (const UCarlaEpisode &InEpisode)
 
void SetSeed (int32 InSeed)
 
void Tick (const float DeltaTime) final
 

Public Attributes

struct {
   FCameraGBufferUint8   CustomDepth
 
   FCameraGBufferUint8   CustomStencil
 
   FCameraGBufferUint8   GBufferA
 
   FCameraGBufferUint8   GBufferB
 
   FCameraGBufferUint8   GBufferC
 
   FCameraGBufferUint8   GBufferD
 
   FCameraGBufferUint8   GBufferE
 
   FCameraGBufferUint8   GBufferF
 
   FCameraGBufferUint8   SceneColor
 
   FCameraGBufferUint8   SceneDepth
 
   FCameraGBufferUint8   SceneStencil
 
   FCameraGBufferUint8   SSAO
 
   FCameraGBufferUint8   Velocity
 
CameraGBuffers
 

Protected Member Functions

virtual void BeginPlay () override
 
void CaptureSceneExtended ()
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
virtual void PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaTime) override
 
virtual void PrePhysTick (float DeltaSeconds) override
 
virtual void SendGBufferTextures (FGBufferRequest &GBuffer)
 
template<typename T >
void SendGBufferTexturesInternal (T &Self, FGBufferRequest &GBufferData)
 
virtual void SetUpSceneCaptureComponent (USceneCaptureComponent2D &SceneCapture)
 
- Protected Member Functions inherited from ASensor
void EndPlay (EEndPlayReason::Type EndPlayReason) override
 
template<typename SensorT >
FAsyncDataStream GetDataStream (const SensorT &Self)
 Return the FDataStream associated with this sensor. More...
 
void PostActorCreated () override
 

Protected Attributes

bool bEnable16BitFormat = false
 Whether to change render target format to PF_A16B16G16R16, offering 16bit / channel. More...
 
bool bEnablePostProcessingEffects = true
 Whether to render the post-processing effects present in the scene. More...
 
USceneCaptureComponent2D_CARLACaptureComponent2D = nullptr
 Scene capture component. More...
 
UTextureRenderTarget2D * CaptureRenderTarget = nullptr
 Render target necessary for scene capture. More...
 
uint32 ImageHeight = 600u
 Image height in pixels. More...
 
uint32 ImageWidth = 800u
 Image width in pixels. More...
 
float TargetGamma = 2.4f
 
- Protected Attributes inherited from ASensor
bool bIsActive = false
 
URandomEngineRandomEngine = nullptr
 Random Engine used to provide noise for sensor output. More...
 
int32 Seed = 123456789
 Seed of the pseudo-random engine. More...
 

Static Private Member Functions

template<typename SensorT , typename CameraGBufferT >
static void SendGBuffer (SensorT &Self, CameraGBufferT &CameraGBuffer, FGBufferRequest &GBufferData, EGBufferTextureID TextureID)
 

Friends

class ACarlaGameModeBase
 
class FPixelReader
 
class FPixelReader2
 

Detailed Description

Base class for sensors using a USceneCaptureComponent2D for rendering the scene.

This class does not capture data, use FPixelReader::SendPixelsInRenderThread(*this) in derived classes.

To access the USceneCaptureComponent2D override the SetUpSceneCaptureComponent function.

Warning
All the setters should be called before BeginPlay.

Definition at line 126 of file SceneCaptureSensor.h.

Constructor & Destructor Documentation

◆ ASceneCaptureSensor()

ASceneCaptureSensor::ASceneCaptureSensor ( const FObjectInitializer &  ObjectInitializer)

Definition at line 42 of file SceneCaptureSensor.cpp.

References CaptureComponent2D, CaptureRenderTarget, SCENE_CAPTURE_COUNTER, SceneCaptureSensor_local_ns::SetCameraDefaultOverrides(), and USceneCaptureComponent2D_CARLA::ViewActor.

+ Here is the call graph for this function:

Member Function Documentation

◆ ArePostProcessingEffectsEnabled()

bool ASceneCaptureSensor::ArePostProcessingEffectsEnabled ( ) const
inline

Definition at line 159 of file SceneCaptureSensor.h.

◆ BeginPlay()

void ASceneCaptureSensor::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from ASensor.

Reimplemented in ASceneCaptureCamera.

Definition at line 547 of file SceneCaptureSensor.cpp.

References bEnable16BitFormat, bEnablePostProcessingEffects, CaptureComponent2D, CaptureRenderTarget, SceneCaptureSensor_local_ns::ConfigureShowFlags(), ASensor::GetEpisode(), UCarlaEpisode::GetWeather(), ImageHeight, ImageWidth, IsValid(), AWeather::NotifyWeather(), SetUpSceneCaptureComponent(), and TargetGamma.

+ Here is the call graph for this function:

◆ CaptureSceneExtended()

void ASceneCaptureSensor::CaptureSceneExtended ( )
protected

Definition at line 486 of file SceneCaptureSensor.cpp.

References CameraGBuffers, CaptureComponent2D, USceneCaptureComponent2D_CARLA::GetViewOwner(), Prior, and SendGBufferTextures().

+ Here is the call graph for this function:

◆ Enable16BitFormat()

void ASceneCaptureSensor::Enable16BitFormat ( bool  Enable = false)
inline

Definition at line 165 of file SceneCaptureSensor.h.

Referenced by ANormalsCamera::ANormalsCamera(), and AOpticalFlowCamera::AOpticalFlowCamera().

+ Here is the caller graph for this function:

◆ EnablePostProcessingEffects()

void ASceneCaptureSensor::EnablePostProcessingEffects ( bool  Enable = true)
inline

Definition at line 153 of file SceneCaptureSensor.h.

Referenced by ADVSCamera::ADVSCamera(), and UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ EndPlay()

void ASceneCaptureSensor::EndPlay ( const EEndPlayReason::Type  EndPlayReason)
overrideprotectedvirtual

Reimplemented in ASceneCaptureCamera.

Definition at line 607 of file SceneCaptureSensor.cpp.

References SCENE_CAPTURE_COUNTER.

◆ EnqueueRenderSceneImmediate()

void ASceneCaptureSensor::EnqueueRenderSceneImmediate ( )

Immediate enqueues render commands of the scene at the current time.

Definition at line 450 of file SceneCaptureSensor.cpp.

References GetCaptureComponent2D().

Referenced by ADVSCamera::PostPhysTick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAperture()

float ASceneCaptureSensor::GetAperture ( ) const

Definition at line 156 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetBladeCount()

int ASceneCaptureSensor::GetBladeCount ( ) const

Definition at line 216 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetBloomIntensity()

float ASceneCaptureSensor::GetBloomIntensity ( ) const

Definition at line 396 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetCaptureComponent2D()

USceneCaptureComponent2D* ASceneCaptureSensor::GetCaptureComponent2D ( )
inline

Definition at line 385 of file SceneCaptureSensor.h.

Referenced by AWeather::CheckWeatherPostProcessEffects(), EnqueueRenderSceneImmediate(), and AInstanceSegmentationCamera::PostPhysTick().

+ Here is the caller graph for this function:

◆ GetCaptureRenderTarget()

UTextureRenderTarget2D* ASceneCaptureSensor::GetCaptureRenderTarget ( )
inline

Definition at line 391 of file SceneCaptureSensor.h.

◆ GetChromAberrIntensity()

float ASceneCaptureSensor::GetChromAberrIntensity ( ) const

Definition at line 432 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetChromAberrOffset()

float ASceneCaptureSensor::GetChromAberrOffset ( ) const

Definition at line 444 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthBlurAmount()

float ASceneCaptureSensor::GetDepthBlurAmount ( ) const

Definition at line 180 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthBlurRadius()

float ASceneCaptureSensor::GetDepthBlurRadius ( ) const

Definition at line 192 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthOfFieldMinFstop()

float ASceneCaptureSensor::GetDepthOfFieldMinFstop ( ) const

Definition at line 204 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureCalibrationConstant()

float ASceneCaptureSensor::GetExposureCalibrationConstant ( ) const

Definition at line 336 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureCompensation()

float ASceneCaptureSensor::GetExposureCompensation ( ) const

Definition at line 120 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMaxBrightness()

float ASceneCaptureSensor::GetExposureMaxBrightness ( ) const

Definition at line 300 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMethod()

EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod ( ) const

Definition at line 102 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMinBrightness()

float ASceneCaptureSensor::GetExposureMinBrightness ( ) const

Definition at line 288 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureSpeedDown()

float ASceneCaptureSensor::GetExposureSpeedDown ( ) const

Definition at line 312 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureSpeedUp()

float ASceneCaptureSensor::GetExposureSpeedUp ( ) const

Definition at line 324 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmBlackClip()

float ASceneCaptureSensor::GetFilmBlackClip ( ) const

Definition at line 264 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmShoulder()

float ASceneCaptureSensor::GetFilmShoulder ( ) const

Definition at line 252 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmSlope()

float ASceneCaptureSensor::GetFilmSlope ( ) const

Definition at line 228 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmToe()

float ASceneCaptureSensor::GetFilmToe ( ) const

Definition at line 240 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmWhiteClip()

float ASceneCaptureSensor::GetFilmWhiteClip ( ) const

Definition at line 276 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFocalDistance()

float ASceneCaptureSensor::GetFocalDistance ( ) const

Definition at line 168 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFOVAngle()

float ASceneCaptureSensor::GetFOVAngle ( ) const

Definition at line 90 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetImageHeight()

uint32 ASceneCaptureSensor::GetImageHeight ( ) const
inline

Definition at line 147 of file SceneCaptureSensor.h.

Referenced by ADVSCamera::ImageToGray(), ADVSCamera::ImageToLogGray(), and ADVSCamera::Simulation().

+ Here is the caller graph for this function:

◆ GetImageWidth()

uint32 ASceneCaptureSensor::GetImageWidth ( ) const
inline

Definition at line 142 of file SceneCaptureSensor.h.

Referenced by ADVSCamera::ImageToGray(), ADVSCamera::ImageToLogGray(), and ADVSCamera::Simulation().

+ Here is the caller graph for this function:

◆ GetISO()

float ASceneCaptureSensor::GetISO ( ) const

Definition at line 144 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetLensFlareIntensity()

float ASceneCaptureSensor::GetLensFlareIntensity ( ) const

Definition at line 384 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurIntensity()

float ASceneCaptureSensor::GetMotionBlurIntensity ( ) const

Definition at line 348 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurMaxDistortion()

float ASceneCaptureSensor::GetMotionBlurMaxDistortion ( ) const

Definition at line 360 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurMinObjectScreenSize()

float ASceneCaptureSensor::GetMotionBlurMinObjectScreenSize ( ) const

Definition at line 372 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetShutterSpeed()

float ASceneCaptureSensor::GetShutterSpeed ( ) const

Definition at line 132 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetTargetGamma()

float ASceneCaptureSensor::GetTargetGamma ( ) const
inline

Definition at line 189 of file SceneCaptureSensor.h.

◆ GetWhiteTemp()

float ASceneCaptureSensor::GetWhiteTemp ( ) const

Definition at line 408 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetWhiteTint()

float ASceneCaptureSensor::GetWhiteTint ( ) const

Definition at line 420 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ Is16BitFormatEnabled()

bool ASceneCaptureSensor::Is16BitFormatEnabled ( ) const
inline

Definition at line 171 of file SceneCaptureSensor.h.

◆ PostPhysTick()

void ASceneCaptureSensor::PostPhysTick ( UWorld *  World,
ELevelTick  TickType,
float  DeltaTime 
)
overrideprotectedvirtual

◆ PrePhysTick()

void ASceneCaptureSensor::PrePhysTick ( float  DeltaSeconds)
overrideprotectedvirtual

Reimplemented from ASensor.

Definition at line 590 of file SceneCaptureSensor.cpp.

References CaptureComponent2D, carla::client::detail::Get(), and ImageWidth.

+ Here is the call graph for this function:

◆ ReadPixels()

bool ASceneCaptureSensor::ReadPixels ( TArray< FColor > &  BitMap) const
inline

Use for debugging purposes only.

Definition at line 370 of file SceneCaptureSensor.h.

References FPixelReader::WritePixelsToArray().

Referenced by ADVSCamera::PostPhysTick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveCaptureToDisk()

void ASceneCaptureSensor::SaveCaptureToDisk ( const FString &  FilePath) const
inline

Use for debugging purposes only.

Definition at line 378 of file SceneCaptureSensor.h.

References FPixelReader::SavePixelsToDisk().

+ Here is the call graph for this function:

◆ SendGBuffer()

template<typename SensorT , typename CameraGBufferT >
static void ASceneCaptureSensor::SendGBuffer ( SensorT &  Self,
CameraGBufferT &  CameraGBuffer,
FGBufferRequest &  GBufferData,
EGBufferTextureID  TextureID 
)
inlinestaticprivate

Definition at line 469 of file SceneCaptureSensor.h.

References ImageUtil::DecodePixelsByFormat().

+ Here is the call graph for this function:

◆ SendGBufferTextures()

void ASceneCaptureSensor::SendGBufferTextures ( FGBufferRequest &  GBuffer)
protectedvirtual

Reimplemented in ASceneCaptureCamera.

Definition at line 542 of file SceneCaptureSensor.cpp.

References SendGBufferTexturesInternal().

Referenced by CaptureSceneExtended().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendGBufferTexturesInternal()

template<typename T >
void ASceneCaptureSensor::SendGBufferTexturesInternal ( T &  Self,
FGBufferRequest &  GBufferData 
)
inlineprotected

Definition at line 535 of file SceneCaptureSensor.h.

Referenced by ASceneCaptureCamera::SendGBufferTextures(), and SendGBufferTextures().

+ Here is the caller graph for this function:

◆ Set()

void ASceneCaptureSensor::Set ( const FActorDescription ActorDescription)
overridevirtual

Reimplemented from ASensor.

Reimplemented in AShaderBasedSensor.

Definition at line 72 of file SceneCaptureSensor.cpp.

References UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the call graph for this function:

◆ SetAperture()

void ASceneCaptureSensor::SetAperture ( float  Aperture)

Definition at line 150 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetBladeCount()

void ASceneCaptureSensor::SetBladeCount ( int  Count)

Definition at line 210 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetBloomIntensity()

void ASceneCaptureSensor::SetBloomIntensity ( float  Intensity)

Definition at line 390 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetChromAberrIntensity()

void ASceneCaptureSensor::SetChromAberrIntensity ( float  Intensity)

Definition at line 426 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetChromAberrOffset()

void ASceneCaptureSensor::SetChromAberrOffset ( float  ChromAberrOffset)

Definition at line 438 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetDepthBlurAmount()

void ASceneCaptureSensor::SetDepthBlurAmount ( float  Amount)

Definition at line 174 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetDepthBlurRadius()

void ASceneCaptureSensor::SetDepthBlurRadius ( float  Radius)

Definition at line 186 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetDepthOfFieldMinFstop()

void ASceneCaptureSensor::SetDepthOfFieldMinFstop ( float  MinFstop)

Definition at line 198 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureCalibrationConstant()

void ASceneCaptureSensor::SetExposureCalibrationConstant ( float  Constant)

Definition at line 330 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureCompensation()

void ASceneCaptureSensor::SetExposureCompensation ( float  Compensation)

Definition at line 108 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureMaxBrightness()

void ASceneCaptureSensor::SetExposureMaxBrightness ( float  Brightness)

Definition at line 294 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureMethod()

void ASceneCaptureSensor::SetExposureMethod ( EAutoExposureMethod  Method)

Definition at line 96 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureMinBrightness()

void ASceneCaptureSensor::SetExposureMinBrightness ( float  Brightness)

Definition at line 282 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureSpeedDown()

void ASceneCaptureSensor::SetExposureSpeedDown ( float  Speed)

Definition at line 306 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetExposureSpeedUp()

void ASceneCaptureSensor::SetExposureSpeedUp ( float  Speed)

Definition at line 318 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFilmBlackClip()

void ASceneCaptureSensor::SetFilmBlackClip ( float  BlackClip)

Definition at line 258 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFilmShoulder()

void ASceneCaptureSensor::SetFilmShoulder ( float  Shoulder)

Definition at line 246 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFilmSlope()

void ASceneCaptureSensor::SetFilmSlope ( float  Slope)

Definition at line 222 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFilmToe()

void ASceneCaptureSensor::SetFilmToe ( float  Toe)

Definition at line 234 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFilmWhiteClip()

void ASceneCaptureSensor::SetFilmWhiteClip ( float  WhiteClip)

Definition at line 270 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFocalDistance()

void ASceneCaptureSensor::SetFocalDistance ( float  Distance)

Definition at line 162 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetFOVAngle()

void ASceneCaptureSensor::SetFOVAngle ( float  FOVAngle)

Definition at line 84 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetImageSize()

void ASceneCaptureSensor::SetImageSize ( uint32  Width,
uint32  Height 
)

Definition at line 78 of file SceneCaptureSensor.cpp.

References ImageHeight, and ImageWidth.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetISO()

void ASceneCaptureSensor::SetISO ( float  ISO)

Definition at line 138 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetLensFlareIntensity()

void ASceneCaptureSensor::SetLensFlareIntensity ( float  Intensity)

Definition at line 378 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetMotionBlurIntensity()

void ASceneCaptureSensor::SetMotionBlurIntensity ( float  Intensity)

Definition at line 342 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetMotionBlurMaxDistortion()

void ASceneCaptureSensor::SetMotionBlurMaxDistortion ( float  MaxDistortion)

Definition at line 354 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetMotionBlurMinObjectScreenSize()

void ASceneCaptureSensor::SetMotionBlurMinObjectScreenSize ( float  ScreenSize)

Definition at line 366 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetShutterSpeed()

void ASceneCaptureSensor::SetShutterSpeed ( float  Speed)

Definition at line 126 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetTargetGamma()

void ASceneCaptureSensor::SetTargetGamma ( float  InTargetGamma)
inline

Definition at line 183 of file SceneCaptureSensor.h.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetUpSceneCaptureComponent()

virtual void ASceneCaptureSensor::SetUpSceneCaptureComponent ( USceneCaptureComponent2D SceneCapture)
inlineprotectedvirtual

Reimplemented in AShaderBasedSensor, and AInstanceSegmentationCamera.

Definition at line 435 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

+ Here is the caller graph for this function:

◆ SetWhiteTemp()

void ASceneCaptureSensor::SetWhiteTemp ( float  Temp)

Definition at line 402 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ SetWhiteTint()

void ASceneCaptureSensor::SetWhiteTint ( float  Tint)

Definition at line 414 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

Referenced by UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the caller graph for this function:

◆ WaitForRenderThreadToFinish()

void ASceneCaptureSensor::WaitForRenderThreadToFinish ( )
inline

Blocks until the render thread has finished all it's tasks.

Definition at line 400 of file SceneCaptureSensor.h.

Referenced by ADVSCamera::PostPhysTick().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ACarlaGameModeBase

friend class ACarlaGameModeBase
friend

Definition at line 130 of file SceneCaptureSensor.h.

◆ FPixelReader

friend class FPixelReader
friend

Definition at line 131 of file SceneCaptureSensor.h.

◆ FPixelReader2

friend class FPixelReader2
friend

Definition at line 132 of file SceneCaptureSensor.h.

Member Data Documentation

◆ bEnable16BitFormat

bool ASceneCaptureSensor::bEnable16BitFormat = false
protected

Whether to change render target format to PF_A16B16G16R16, offering 16bit / channel.

Definition at line 462 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

◆ bEnablePostProcessingEffects

bool ASceneCaptureSensor::bEnablePostProcessingEffects = true
protected

Whether to render the post-processing effects present in the scene.

Definition at line 458 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

◆ CameraGBuffers

struct { ... } ASceneCaptureSensor::CameraGBuffers

◆ CaptureComponent2D

USceneCaptureComponent2D_CARLA* ASceneCaptureSensor::CaptureComponent2D = nullptr
protected

◆ CaptureRenderTarget

UTextureRenderTarget2D* ASceneCaptureSensor::CaptureRenderTarget = nullptr
protected

Render target necessary for scene capture.

Definition at line 439 of file SceneCaptureSensor.h.

Referenced by ASceneCaptureSensor(), BeginPlay(), and ADVSCamera::PostPhysTick().

◆ CustomDepth

FCameraGBufferUint8 ASceneCaptureSensor::CustomDepth

Definition at line 418 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ CustomStencil

FCameraGBufferUint8 ASceneCaptureSensor::CustomStencil

Definition at line 419 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferA

FCameraGBufferUint8 ASceneCaptureSensor::GBufferA

Definition at line 410 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferB

FCameraGBufferUint8 ASceneCaptureSensor::GBufferB

Definition at line 411 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferC

FCameraGBufferUint8 ASceneCaptureSensor::GBufferC

Definition at line 412 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferD

FCameraGBufferUint8 ASceneCaptureSensor::GBufferD

Definition at line 413 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferE

FCameraGBufferUint8 ASceneCaptureSensor::GBufferE

Definition at line 414 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ GBufferF

FCameraGBufferUint8 ASceneCaptureSensor::GBufferF

Definition at line 415 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ ImageHeight

uint32 ASceneCaptureSensor::ImageHeight = 600u
protected

Image height in pixels.

Definition at line 454 of file SceneCaptureSensor.h.

Referenced by BeginPlay(), and SetImageSize().

◆ ImageWidth

uint32 ASceneCaptureSensor::ImageWidth = 800u
protected

Image width in pixels.

Definition at line 450 of file SceneCaptureSensor.h.

Referenced by BeginPlay(), PrePhysTick(), and SetImageSize().

◆ SceneColor

FCameraGBufferUint8 ASceneCaptureSensor::SceneColor

Definition at line 407 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SceneDepth

FCameraGBufferUint8 ASceneCaptureSensor::SceneDepth

Definition at line 408 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SceneStencil

FCameraGBufferUint8 ASceneCaptureSensor::SceneStencil

Definition at line 409 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ SSAO

FCameraGBufferUint8 ASceneCaptureSensor::SSAO

Definition at line 417 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ TargetGamma

float ASceneCaptureSensor::TargetGamma = 2.4f
protected

Definition at line 446 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

◆ Velocity

FCameraGBufferUint8 ASceneCaptureSensor::Velocity

Definition at line 416 of file SceneCaptureSensor.h.

Referenced by FCarlaServer::FPimpl::BindActions().


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