通过应用后处理材质(着色器)来生成数据的传感器。 a scene capture image. 更多...
#include <ShaderBasedSensor.h>
类 AShaderBasedSensor 继承关系图:
AShaderBasedSensor 的协作图:Public 成员函数 | |
| bool | AddPostProcessingMaterial (const FString &Path) |
| Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight. 更多... | |
| void | AddShader (const FSensorShader &Shader) |
| Add a post-processing shader. 更多... | |
| AShaderBasedSensor (const FObjectInitializer &ObjectInitializer) | |
| void | Set (const FActorDescription &ActorDescription) override |
| void | SetFloatShaderParameter (uint8_t ShaderIndex, const FName &ParameterName, float Value) |
Public 成员函数 继承自 ASceneCaptureSensor | |
| 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. 更多... | |
| 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. 更多... | |
| void | SaveCaptureToDisk (const FString &FilePath) const |
| Use for debugging purposes only. 更多... | |
| 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. 更多... | |
Public 成员函数 继承自 ASensor | |
| ASensor (const FObjectInitializer &ObjectInitializer) | |
| virtual void | BeginPlay () |
| boost::optional< FActorAttribute > | GetAttribute (const FString Name) |
| const UCarlaEpisode & | GetEpisode () const |
| URandomEngine * | GetRandomEngine () |
| int32 | GetSeed () const |
| auto | GetToken () const |
| Return the token that allows subscribing to this sensor's stream. 更多... | |
| bool | IsStreamReady () |
| FDataStream | MoveDataStream () |
| virtual void | OnFirstClientConnected () |
| virtual void | OnLastClientDisconnected () |
| virtual void | PostPhysTick (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
| void | PostPhysTickInternal (UWorld *World, ELevelTick TickType, float DeltaSeconds) |
| virtual void | PrePhysTick (float DeltaSeconds) |
| virtual void | Set (const FActorDescription &Description) |
| void | SetDataStream (FDataStream InStream) |
| Replace the FDataStream associated with this sensor. 更多... | |
| void | SetEpisode (const UCarlaEpisode &InEpisode) |
| void | SetSeed (int32 InSeed) |
| void | Tick (const float DeltaTime) final |
Protected 成员函数 | |
| void | SetUpSceneCaptureComponent (USceneCaptureComponent2D &SceneCapture) override |
Protected 成员函数 继承自 ASceneCaptureSensor | |
| 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 成员函数 继承自 ASensor | |
| void | EndPlay (EEndPlayReason::Type EndPlayReason) override |
| template<typename SensorT > | |
| FAsyncDataStream | GetDataStream (const SensorT &Self) |
| Return the FDataStream associated with this sensor. 更多... | |
| void | PostActorCreated () override |
Private 属性 | |
| TArray< FShaderFloatParameterValue > | FloatShaderParams |
| TArray< UMaterial * > | MaterialsFound |
| TArray< FSensorShader > | Shaders |
通过应用后处理材质(着色器)来生成数据的传感器。 a scene capture image.
在文件 ShaderBasedSensor.h 第 48 行定义.
|
inline |
在文件 ShaderBasedSensor.h 第 54 行定义.
| bool AShaderBasedSensor::AddPostProcessingMaterial | ( | const FString & | Path | ) |
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
在文件 ShaderBasedSensor.cpp 第 16 行定义.
引用了 MaterialsFound.
被这些函数引用 ADepthCamera::ADepthCamera(), ADVSCamera::ADVSCamera(), AInstanceSegmentationCamera::AInstanceSegmentationCamera(), ANormalsCamera::ANormalsCamera(), AOpticalFlowCamera::AOpticalFlowCamera(), ASceneCaptureCamera::ASceneCaptureCamera() , 以及 ASemanticSegmentationCamera::ASemanticSegmentationCamera().
这是这个函数的调用关系图:
|
inline |
Add a post-processing shader.
在文件 ShaderBasedSensor.h 第 72 行定义.
被这些函数引用 SetUpSceneCaptureComponent().
这是这个函数的调用关系图:
|
overridevirtual |
重载 ASceneCaptureSensor .
在文件 ShaderBasedSensor.cpp 第 53 行定义.
引用了 UActorBlueprintFunctionLibrary::SetCamera().
函数调用图:| void AShaderBasedSensor::SetFloatShaderParameter | ( | uint8_t | ShaderIndex, |
| const FName & | ParameterName, | ||
| float | Value | ||
| ) |
在文件 ShaderBasedSensor.cpp 第 61 行定义.
引用了 FloatShaderParams.
被这些函数引用 UActorBlueprintFunctionLibrary::MakeIMUDefinition().
这是这个函数的调用关系图:
|
overrideprotectedvirtual |
重载 ASceneCaptureSensor .
在文件 ShaderBasedSensor.cpp 第 29 行定义.
引用了 AddShader(), FloatShaderParams, MaterialsFound , 以及 Shaders.
函数调用图:
|
private |
在文件 ShaderBasedSensor.h 第 92 行定义.
被这些函数引用 SetFloatShaderParameter() , 以及 SetUpSceneCaptureComponent().
|
private |
在文件 ShaderBasedSensor.h 第 86 行定义.
被这些函数引用 AddPostProcessingMaterial() , 以及 SetUpSceneCaptureComponent().
|
private |
在文件 ShaderBasedSensor.h 第 89 行定义.
被这些函数引用 SetUpSceneCaptureComponent().