Navigation
API > API/Plugins > API/Plugins/DisplayClusterScenePreview
References
| Module | DisplayClusterScenePreview |
| Header | /Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterScenePreview/Public/DisplayClusterLightCardEditorHelper.h |
| Include | #include "DisplayClusterLightCardEditorHelper.h" |
Syntax
struct FDisplayClusterLightCardEditorHelper
Remarks
Helper class for moving lightcards in an nDisplay cluster in various projection modes. Contains functions to perform coordinate conversion, scene setup, and lightcard movement, and manages the normal maps needed to convert from projected to world coordinates.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Create a projection helper that automatically creates its own preview renderer for normal map generation. | |||
FDisplayClusterLightCardEditorHelper
(
int32 RendererId |
Create a projection helper that uses an existing preview renderer for normal map generation. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Clean up the projection renderer and any data used by the helper. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddLightCardsToRootActor
(
const TArray< ADisplayClusterLightCardActor* >& LightCards, |
Adds the given Light Card to the root actor | |
| bool | CalculateNormalAndPositionInDirection
(
const FVector& InViewOrigin, |
Calculates the relative normal vector and world position in the specified direction from the given view origin. | |
| bool | CalculateOriginAndDirectionFromPixelPosition
(
const FIntPoint& InPixelPos, |
Calculates the desired direction from the view origin given a pixel position within the view. | |
| void | ConfigureRenderProjectionSettings
(
FDisplayClusterMeshProjectionRenderSettings& OutRenderSettings, |
Sets up projection-related settings of a preview render in a consistent way. | |
| FDisplayClusterMeshProjectionPrimitiveFilter::FPrimitiveFilter | Creates the default ShouldApplyProjectionToPrimitive filter that most FDisplayClusterMeshProjectionRenderSettings will use. | ||
| FDisplayClusterMeshProjectionPrimitiveFilter::FPrimitiveFilter | Creates the default ShouldRenderPrimitive filter that most FDisplayClusterMeshProjectionRenderSettings will use. | ||
| void | DragActors
(
const TArray< FDisplayClusterWeakStageActorPtr >& Actors, |
Moves specified cards to a coordinate in viewport space as if dragged by a translate widget. | |
| void | DragUVActors
(
const TArray< FDisplayClusterWeakStageActorPtr >& Actors, |
Moves specified UV actors to a coordinate in viewport space as if dragged by a translate widget. | |
| FSphericalCoordinates | GetActorCoordinates
(
const FDisplayClusterWeakStageActorPtr& Actor |
Gets the spherical coordinates of the specified actor. | |
| bool | Get whether this is using an orthographic projection. | ||
| EDisplayClusterMeshProjectionType | Get the projection mode to use. | ||
| void | GetSceneViewInitOptions
(
FSceneViewInitOptions& OutViewInitOptions, |
Sets up FSceneViewInitOptions' basic settings in a consistent way for preview renders. | |
| void | MoveActorsTo
(
const TArray< FDisplayClusterWeakStageActorPtr >& Actors, |
Moves specified actors to desired coordinates. | |
| void | MoveActorsToPixel
(
const TArray< FDisplayClusterWeakStageActorPtr >& Actors, |
Moves the given light cards to the specified pixel position within the provided scene view. | |
| void | PixelToWorld
(
const FSceneView& View, |
Converts a pixel coordinate into a point and direction vector in world space | |
| void | SetEditorViewportClient
(
TWeakPtr< FEditorViewportClient > InViewportClient |
Set the viewport client for which this is handling rendering. | |
| void | SetIsOrthographic
(
bool bValue |
Set whether to use an orthographic projection. | |
| void | SetLevelInstanceRootActor
(
ADisplayClusterRootActor& NewRootActor |
If the root actor is a proxy, use this to set the corresponding level instance that is being proxied. | |
| void | Set the projection mode to use. | ||
| void | SetRootActor
(
ADisplayClusterRootActor& NewRootActor |
Set the root actor of the DisplayCluster being controlled. | |
| AActor * | SpawnStageActor
(
const FSpawnActorArgs& InSpawnArgs |
Spawns a new actor for stage use and adds it to the root actor if it is a light card | |
| void | VerifyAndFixActorOrigin
(
const FDisplayClusterWeakStageActorPtr& Actor |
Ensures that the actor root component is at the same location as the projection/view origin | |
| bool | WorldToPixel
(
const FSceneView& View, |
Converts a world coordinate into a point in screen space, and returns true if the world position is on the screen. | |
| bool | WorldToPixel
(
const FSceneView& View, |
Converts a world coordinate into a point in screen space using a specific projection mode, and returns true if the world position is on the screen. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAddLightCardArgs | |||
| FSpawnActorArgs | |||
| FSphericalCoordinates |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ECoordinateSystem |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| const UTexture2D * | GetNormalMapTexture
(
bool bShowNorthMap |
The raw stage geoemetry normal maps are no longer exposed by the stage geometry component |