A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UVRRenderTargetManager Class ReferenceBlueprintable

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin)) More...

#include <VRRenderTargetManager.h>

Inheritance diagram for UVRRenderTargetManager:
[legend]

Public Member Functions

 UVRRenderTargetManager (const FObjectInitializer &ObjectInitializer)
 
void AddLineDrawOperation (FVector2D Point1, FVector2D Point2, FColor Color, int32 Thickness)
 UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")
 
void AddMaterialTrianglesDrawOperation (TArray< FCanvasUVTri > Tris, UMaterial *Material)
 UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")
 
void AddTextureDrawOperation (FVector2D Position, UTexture2D *TextureToDisplay)
 UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")
 
virtual void BeginPlay () override
 
bool DeCompressRenderTarget2D ()
 
void DrawOperation (UCanvas *Canvas, const FRenderManagerOperation &Operation)
 
void DrawOperations ()
 
void DrawPoll ()
 UFUNCTION()
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
bool GenerateTrisFromBoxPlaneIntersection (UPrimitiveComponent *PrimToBoxCheck, FTransform WorldTransformOfPlane, const FPlane &LocalProjectionPlane, FVector2D PlaneSize, FColor UVColor, TArray< FCanvasUVTri > &OutTris)
 UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|UtilityFunctions")
 
void InitRenderTarget ()
 
void QueueImageStore ()
 
void SendDrawOperations (const TArray< FRenderManagerOperation > &RenderOperationStoreList)
 UFUNCTION(Reliable, NetMultiCast, WithValidation)
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 
void UpdateRelevancyMap ()
 

Public Attributes

bool bInitiallyReplicateTexture
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
bool bIsLoadingTextureBuffer
 UPROPERTY(Transient)
 
bool bIsStoringImage
 UPROPERTY(Transient)
 
FColor ClearColor
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
FTimerHandle DrawHandle
 UPROPERTY()
 
float DrawRate
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
TWeakObjectPtr< ARenderTargetReplicationProxyLocalProxy
 UPROPERTY(Transient)
 
TArray< FRenderManagerOperationLocalRenderOperationStore
 
int32 MaxBytesPerSecondRate
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
TArray< FClientRepDataNetRelevancyLog
 UPROPERTY(Transient)
 
FTimerHandle NetRelevancyTimer_Handle
 
uint32 OwnerIDCounter
 
float PollRelevancyTime
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
TArray< FRenderManagerOperationRenderOperationStore
 
UCanvasRenderTarget2D * RenderTarget
 UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = "RenderTargetManager")
 
int32 RenderTargetHeight
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
FBPVRReplicatedTextureStore RenderTargetStore
 UPROPERTY(Transient)
 
int32 RenderTargetWidth
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 
int32 TextureBlobSize
 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")
 

Protected Attributes

TQueue< FRenderDataStore * > RenderDataQueue
 

Private Member Functions

 GENERATED_BODY ()
 

Detailed Description

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin))

This class stores reading requests for rendertargets and iterates over them It returns the pixel data at the end of processing It references code from: https://github.com/TimmHess/UnrealImageCapture

Definition at line 396 of file VRRenderTargetManager.h.

Constructor & Destructor Documentation

◆ UVRRenderTargetManager()

UVRRenderTargetManager::UVRRenderTargetManager ( const FObjectInitializer & ObjectInitializer)

Definition at line 43 of file VRRenderTargetManager.cpp.

Member Function Documentation

◆ AddLineDrawOperation()

void UVRRenderTargetManager::AddLineDrawOperation ( FVector2D Point1,
FVector2D Point2,
FColor Color,
int32 Thickness )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")

Definition at line 84 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ AddMaterialTrianglesDrawOperation()

void UVRRenderTargetManager::AddMaterialTrianglesDrawOperation ( TArray< FCanvasUVTri > Tris,
UMaterial * Material )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")

Definition at line 126 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ AddTextureDrawOperation()

void UVRRenderTargetManager::AddTextureDrawOperation ( FVector2D Position,
UTexture2D * TextureToDisplay )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|DrawingFunctions")

Definition at line 104 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ BeginPlay()

void UVRRenderTargetManager::BeginPlay ( )
overridevirtual

Definition at line 867 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ DeCompressRenderTarget2D()

bool UVRRenderTargetManager::DeCompressRenderTarget2D ( )

Definition at line 627 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ DrawOperation()

void UVRRenderTargetManager::DrawOperation ( UCanvas * Canvas,
const FRenderManagerOperation & Operation )

Definition at line 160 of file VRRenderTargetManager.cpp.

Here is the caller graph for this function:

◆ DrawOperations()

void UVRRenderTargetManager::DrawOperations ( )

Definition at line 248 of file VRRenderTargetManager.cpp.

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

◆ DrawPoll()

void UVRRenderTargetManager::DrawPoll ( )

UFUNCTION()

Definition at line 218 of file VRRenderTargetManager.cpp.

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

◆ EndPlay()

void UVRRenderTargetManager::EndPlay ( const EEndPlayReason::Type EndPlayReason)
overridevirtual

Definition at line 877 of file VRRenderTargetManager.cpp.

◆ GENERATED_BODY()

UVRRenderTargetManager::GENERATED_BODY ( )
private

◆ GenerateTrisFromBoxPlaneIntersection()

bool UVRRenderTargetManager::GenerateTrisFromBoxPlaneIntersection ( UPrimitiveComponent * PrimToBoxCheck,
FTransform WorldTransformOfPlane,
const FPlane & LocalProjectionPlane,
FVector2D PlaneSize,
FColor UVColor,
TArray< FCanvasUVTri > & OutTris )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRRenderTargetManager|UtilityFunctions")

Definition at line 950 of file VRRenderTargetManager.cpp.

◆ InitRenderTarget()

void UVRRenderTargetManager::InitRenderTarget ( )

Definition at line 918 of file VRRenderTargetManager.cpp.

Here is the caller graph for this function:

◆ QueueImageStore()

void UVRRenderTargetManager::QueueImageStore ( )

Definition at line 738 of file VRRenderTargetManager.cpp.

Here is the caller graph for this function:

◆ SendDrawOperations()

void UVRRenderTargetManager::SendDrawOperations ( const TArray< FRenderManagerOperation > & RenderOperationStoreList)
WithValidationReliableNetMultiCast

UFUNCTION(Reliable, NetMultiCast, WithValidation)

Here is the caller graph for this function:

◆ TickComponent()

void UVRRenderTargetManager::TickComponent ( float DeltaTime,
enum ELevelTick TickType,
FActorComponentTickFunction * ThisTickFunction )
overridevirtual

Definition at line 795 of file VRRenderTargetManager.cpp.

Here is the call graph for this function:

◆ UpdateRelevancyMap()

void UVRRenderTargetManager::UpdateRelevancyMap ( )

Definition at line 529 of file VRRenderTargetManager.cpp.

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

Member Data Documentation

◆ bInitiallyReplicateTexture

bool UVRRenderTargetManager::bInitiallyReplicateTexture
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 475 of file VRRenderTargetManager.h.

◆ bIsLoadingTextureBuffer

bool UVRRenderTargetManager::bIsLoadingTextureBuffer
Transient

UPROPERTY(Transient)

Definition at line 481 of file VRRenderTargetManager.h.

◆ bIsStoringImage

bool UVRRenderTargetManager::bIsStoringImage
Transient

UPROPERTY(Transient)

Definition at line 468 of file VRRenderTargetManager.h.

◆ ClearColor

FColor UVRRenderTargetManager::ClearColor
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 528 of file VRRenderTargetManager.h.

◆ DrawHandle

FTimerHandle UVRRenderTargetManager::DrawHandle

UPROPERTY()

Definition at line 462 of file VRRenderTargetManager.h.

◆ DrawRate

float UVRRenderTargetManager::DrawRate
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 421 of file VRRenderTargetManager.h.

◆ LocalProxy

TWeakObjectPtr<ARenderTargetReplicationProxy> UVRRenderTargetManager::LocalProxy
Transient

UPROPERTY(Transient)

Definition at line 410 of file VRRenderTargetManager.h.

◆ LocalRenderOperationStore

TArray<FRenderManagerOperation> UVRRenderTargetManager::LocalRenderOperationStore

Definition at line 413 of file VRRenderTargetManager.h.

◆ MaxBytesPerSecondRate

int32 UVRRenderTargetManager::MaxBytesPerSecondRate
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 500 of file VRRenderTargetManager.h.

◆ NetRelevancyLog

TArray<FClientRepData> UVRRenderTargetManager::NetRelevancyLog
Transient

UPROPERTY(Transient)

Definition at line 534 of file VRRenderTargetManager.h.

◆ NetRelevancyTimer_Handle

FTimerHandle UVRRenderTargetManager::NetRelevancyTimer_Handle

Definition at line 544 of file VRRenderTargetManager.h.

◆ OwnerIDCounter

uint32 UVRRenderTargetManager::OwnerIDCounter

Definition at line 404 of file VRRenderTargetManager.h.

◆ PollRelevancyTime

float UVRRenderTargetManager::PollRelevancyTime
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 542 of file VRRenderTargetManager.h.

◆ RenderDataQueue

TQueue<FRenderDataStore*> UVRRenderTargetManager::RenderDataQueue
protected

Definition at line 575 of file VRRenderTargetManager.h.

◆ RenderOperationStore

TArray<FRenderManagerOperation> UVRRenderTargetManager::RenderOperationStore

Definition at line 412 of file VRRenderTargetManager.h.

◆ RenderTarget

UCanvasRenderTarget2D* UVRRenderTargetManager::RenderTarget
VisibleAnywhereBlueprintReadOnly

UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = "RenderTargetManager")

Definition at line 507 of file VRRenderTargetManager.h.

◆ RenderTargetHeight

int32 UVRRenderTargetManager::RenderTargetHeight
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 521 of file VRRenderTargetManager.h.

◆ RenderTargetStore

FBPVRReplicatedTextureStore UVRRenderTargetManager::RenderTargetStore
Transient

UPROPERTY(Transient)

Definition at line 550 of file VRRenderTargetManager.h.

◆ RenderTargetWidth

int32 UVRRenderTargetManager::RenderTargetWidth
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 514 of file VRRenderTargetManager.h.

◆ TextureBlobSize

int32 UVRRenderTargetManager::TextureBlobSize
BlueprintReadWriteEditAnywhere

UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "RenderTargetManager")

Definition at line 489 of file VRRenderTargetManager.h.


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