FCameraRectangle

Struct containing:

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/RectangleMarqueeMechanic.h

Include

#include "Mechanics/RectangleMarqueeMechanic.h"

Syntax

struct FCameraRectangle

Remarks

Struct containing:

  • camera information,

  • input device rays used to define the corners of a rectangle contained in a selection plane, the device ray screen positions could be used to change the selection behavior when dragging from the top right to bottom left or vice-versa

Variables

Name Description

Public variable

bool

 

bIsInitialized

Public variable

FViewCameraStat...

 

CameraState

Public variable

FInputDeviceRay

 

RectangleEndRay

FInputDeviceRay represents a 3D ray created based on an input device.

Public variable

FInputDeviceRay

 

RectangleStartRay

Public variable

FRectangleInPla...

 

SelectionDomain

Functions

Name Description

Public function Const

FConvexVolum...

 

FrustumAsConvexVolume()

Public function

void

 

Initialize()

This function must be called before other member functions whenever camera state or start/end rays are updated.

Public function Const

bool

 

IsProjectedPointInRectangle

(
    const FVector& Point
)

Return true if the given 3D geometry projected to the camera plane is inside or intersecting the rectangle, and false otherwise

Public function Const

bool

 

IsProjectedSegmentIntersectingRectangle

(
    const FVector& Endpoint1,
    const FVector& Endpoint2
)

Public function Static

FVector

 

OrthographicProjection

(
    const FPlane3& Plane,
    const FVector& Point
)

Return the 3D point obtained by projecting the given 3D Point onto the given projection plane.

Public function Const

FVector

 

PerspectiveProjection

(
    const FPlane3& Plane,
    const FVector& Point
)

Return the 3D point obtained by projecting the given 3D Point onto the given projection plane.

Public function Const

FVector2

 

Point3DToPointUV

(
    const FPlane3& Plane,
    const FVector& Point3DInPlane
)

Given a 3D point lying in the given Plane, return the UV coordinates of the point expressed in the following a two dimensional parameterization of the given Plane:

Public function Const

FVector

 

PointUVToPoint3D

(
    const FPlane3& Plane,
    const FVector2& PointUV
)

Given a 2D point in the UV space of the given Plane, return the coordinates of the 3D point lying in the Plane.

Public function Const

FRectangleIn...

 

ProjectSelectionDomain

(
    double OffsetFromCameraPlane
)

The XY plane in front of the camera (so point projection/camera plane clipping is unnecessary)

Classes

Name

Description

Public struct

FRectangleInPlane

Typedefs