CARLA
Public Member Functions | Protected Member Functions | Protected Attributes | 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
 
USceneCaptureComponent2D * GetCaptureComponent2D ()
 
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)
 
URandomEngineGetRandomEngine ()
 
int32 GetSeed () const
 
auto GetToken () const
 Return the token that allows subscribing to this sensor's stream. More...
 
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
 

Protected Member Functions

virtual void BeginPlay () override
 
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 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...
 
const UCarlaEpisodeGetEpisode () const
 
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 * CaptureComponent2D = 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...
 
FRenderCommandFence RenderFence
 
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...
 

Friends

class ACarlaGameModeBase
 
class FPixelReader
 

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 29 of file SceneCaptureSensor.h.

Constructor & Destructor Documentation

◆ ASceneCaptureSensor()

ASceneCaptureSensor::ASceneCaptureSensor ( const FObjectInitializer &  ObjectInitializer)

Definition at line 50 of file SceneCaptureSensor.cpp.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ ArePostProcessingEffectsEnabled()

bool ASceneCaptureSensor::ArePostProcessingEffectsEnabled ( ) const
inline

Definition at line 61 of file SceneCaptureSensor.h.

◆ BeginPlay()

void ASceneCaptureSensor::BeginPlay ( )
overrideprotectedvirtual

Reimplemented from ASensor.

Reimplemented in ASceneCaptureCamera.

Definition at line 463 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:

◆ Enable16BitFormat()

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

Definition at line 67 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 55 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 523 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 457 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 163 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetBladeCount()

int ASceneCaptureSensor::GetBladeCount ( ) const

Definition at line 223 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetBloomIntensity()

float ASceneCaptureSensor::GetBloomIntensity ( ) const

Definition at line 403 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetCaptureComponent2D()

USceneCaptureComponent2D* ASceneCaptureSensor::GetCaptureComponent2D ( )
inline

Definition at line 287 of file SceneCaptureSensor.h.

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

+ Here is the caller graph for this function:

◆ GetCaptureRenderTarget()

UTextureRenderTarget2D* ASceneCaptureSensor::GetCaptureRenderTarget ( )
inline

Definition at line 293 of file SceneCaptureSensor.h.

◆ GetChromAberrIntensity()

float ASceneCaptureSensor::GetChromAberrIntensity ( ) const

Definition at line 439 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetChromAberrOffset()

float ASceneCaptureSensor::GetChromAberrOffset ( ) const

Definition at line 451 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthBlurAmount()

float ASceneCaptureSensor::GetDepthBlurAmount ( ) const

Definition at line 187 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthBlurRadius()

float ASceneCaptureSensor::GetDepthBlurRadius ( ) const

Definition at line 199 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetDepthOfFieldMinFstop()

float ASceneCaptureSensor::GetDepthOfFieldMinFstop ( ) const

Definition at line 211 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureCalibrationConstant()

float ASceneCaptureSensor::GetExposureCalibrationConstant ( ) const

Definition at line 343 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureCompensation()

float ASceneCaptureSensor::GetExposureCompensation ( ) const

Definition at line 127 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMaxBrightness()

float ASceneCaptureSensor::GetExposureMaxBrightness ( ) const

Definition at line 307 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMethod()

EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod ( ) const

Definition at line 109 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureMinBrightness()

float ASceneCaptureSensor::GetExposureMinBrightness ( ) const

Definition at line 295 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureSpeedDown()

float ASceneCaptureSensor::GetExposureSpeedDown ( ) const

Definition at line 319 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetExposureSpeedUp()

float ASceneCaptureSensor::GetExposureSpeedUp ( ) const

Definition at line 331 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmBlackClip()

float ASceneCaptureSensor::GetFilmBlackClip ( ) const

Definition at line 271 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmShoulder()

float ASceneCaptureSensor::GetFilmShoulder ( ) const

Definition at line 259 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmSlope()

float ASceneCaptureSensor::GetFilmSlope ( ) const

Definition at line 235 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmToe()

float ASceneCaptureSensor::GetFilmToe ( ) const

Definition at line 247 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFilmWhiteClip()

float ASceneCaptureSensor::GetFilmWhiteClip ( ) const

Definition at line 283 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFocalDistance()

float ASceneCaptureSensor::GetFocalDistance ( ) const

Definition at line 175 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetFOVAngle()

float ASceneCaptureSensor::GetFOVAngle ( ) const

Definition at line 97 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetImageHeight()

uint32 ASceneCaptureSensor::GetImageHeight ( ) const
inline

Definition at line 49 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 44 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 151 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetLensFlareIntensity()

float ASceneCaptureSensor::GetLensFlareIntensity ( ) const

Definition at line 391 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurIntensity()

float ASceneCaptureSensor::GetMotionBlurIntensity ( ) const

Definition at line 355 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurMaxDistortion()

float ASceneCaptureSensor::GetMotionBlurMaxDistortion ( ) const

Definition at line 367 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetMotionBlurMinObjectScreenSize()

float ASceneCaptureSensor::GetMotionBlurMinObjectScreenSize ( ) const

Definition at line 379 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetShutterSpeed()

float ASceneCaptureSensor::GetShutterSpeed ( ) const

Definition at line 139 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetTargetGamma()

float ASceneCaptureSensor::GetTargetGamma ( ) const
inline

Definition at line 91 of file SceneCaptureSensor.h.

◆ GetWhiteTemp()

float ASceneCaptureSensor::GetWhiteTemp ( ) const

Definition at line 415 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ GetWhiteTint()

float ASceneCaptureSensor::GetWhiteTint ( ) const

Definition at line 427 of file SceneCaptureSensor.cpp.

References CaptureComponent2D.

◆ Is16BitFormatEnabled()

bool ASceneCaptureSensor::Is16BitFormatEnabled ( ) const
inline

Definition at line 73 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 506 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 272 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 280 of file SceneCaptureSensor.h.

References FPixelReader::SavePixelsToDisk().

+ Here is the call graph for this function:

◆ Set()

void ASceneCaptureSensor::Set ( const FActorDescription ActorDescription)
overridevirtual

Reimplemented from ASensor.

Reimplemented in AShaderBasedSensor.

Definition at line 79 of file SceneCaptureSensor.cpp.

References UActorBlueprintFunctionLibrary::SetCamera().

+ Here is the call graph for this function:

◆ SetAperture()

void ASceneCaptureSensor::SetAperture ( float  Aperture)

Definition at line 157 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 217 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 397 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 433 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 445 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 181 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 193 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 205 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 337 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 115 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 301 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 103 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 289 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 313 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 325 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 265 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 253 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 229 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 241 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 277 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 169 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 91 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 85 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 145 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 385 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 349 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 361 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 373 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 133 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 85 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 316 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

+ Here is the caller graph for this function:

◆ SetWhiteTemp()

void ASceneCaptureSensor::SetWhiteTemp ( float  Temp)

Definition at line 409 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 421 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 302 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 33 of file SceneCaptureSensor.h.

◆ FPixelReader

friend class FPixelReader
friend

Definition at line 34 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 343 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 339 of file SceneCaptureSensor.h.

Referenced by BeginPlay().

◆ CaptureComponent2D

USceneCaptureComponent2D* ASceneCaptureSensor::CaptureComponent2D = nullptr
protected

◆ CaptureRenderTarget

UTextureRenderTarget2D* ASceneCaptureSensor::CaptureRenderTarget = nullptr
protected

Render target necessary for scene capture.

Definition at line 320 of file SceneCaptureSensor.h.

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

◆ ImageHeight

uint32 ASceneCaptureSensor::ImageHeight = 600u
protected

Image height in pixels.

Definition at line 335 of file SceneCaptureSensor.h.

Referenced by BeginPlay(), and SetImageSize().

◆ ImageWidth

uint32 ASceneCaptureSensor::ImageWidth = 800u
protected

Image width in pixels.

Definition at line 331 of file SceneCaptureSensor.h.

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

◆ RenderFence

FRenderCommandFence ASceneCaptureSensor::RenderFence
protected

Definition at line 345 of file SceneCaptureSensor.h.

◆ TargetGamma

float ASceneCaptureSensor::TargetGamma = 2.4f
protected

Definition at line 327 of file SceneCaptureSensor.h.

Referenced by BeginPlay().


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