Navigation
API > API/Plugins > API/Plugins/ModelingComponents
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
| Name | FCameraRectangle |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/RectangleMarqueeMechanic.h |
| Include Path | #include "Mechanics/RectangleMarqueeMechanic.h" |
Syntax
struct FCameraRectangle
Structs
| Name | Remarks |
|---|---|
| FRectangleInPlane |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAxisAlignedBox2 | UE::Geometry::TAxisAlignedBox2< FVector::FReal > | Mechanics/RectangleMarqueeMechanic.h | |
| FGeometrySet3 | UE::Geometry::FGeometrySet3 | Mechanics/RectangleMarqueeMechanic.h | |
| FPlane3 | UE::Geometry::TPlane3< FVector::FReal > | Mechanics/RectangleMarqueeMechanic.h | |
| FSegment2 | UE::Geometry::TSegment2< FVector::FReal > | Mechanics/RectangleMarqueeMechanic.h | |
| FVector2 | UE::Math::TVector2< FVector::FReal > | Mechanics/RectangleMarqueeMechanic.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsInitialized | bool | Mechanics/RectangleMarqueeMechanic.h | ||
| CameraState | FViewCameraState | Mechanics/RectangleMarqueeMechanic.h | ||
| RectangleEndRay | FInputDeviceRay | Mechanics/RectangleMarqueeMechanic.h | ||
| RectangleStartRay | FInputDeviceRay | Mechanics/RectangleMarqueeMechanic.h | ||
| SelectionDomain | FRectangleInPlane | Mechanics/RectangleMarqueeMechanic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConvexVolume FrustumAsConvexVolume() |
Mechanics/RectangleMarqueeMechanic.h | ||
void Initialize() |
This function must be called before other member functions whenever camera state or start/end rays are updated. | Mechanics/RectangleMarqueeMechanic.h | |
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 | Mechanics/RectangleMarqueeMechanic.h | |
bool IsProjectedSegmentIntersectingRectangle
(
const FVector& Endpoint1, |
Mechanics/RectangleMarqueeMechanic.h | ||
FVector PerspectiveProjection
(
const FPlane3& Plane, |
Return the 3D point obtained by projecting the given 3D Point onto the given projection plane Note: Assumes a perspective camera | Mechanics/RectangleMarqueeMechanic.h | |
FVector2 Point3DToPointUV
(
const FPlane3& Plane, |
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: | Mechanics/RectangleMarqueeMechanic.h | |
FVector PointUVToPoint3D
(
const FPlane3& Plane, |
Given a 2D point in the UV space of the given Plane, return the coordinates of the 3D point lying in the Plane. | Mechanics/RectangleMarqueeMechanic.h | |
FRectangleInPlane ProjectSelectionDomain
(
double OffsetFromCameraPlane |
Returns the SelectionDomain projected onto a plane offset from SelectionDomain.Plane by the given distance in the SelectionDomain.Plane.Normal direction. | Mechanics/RectangleMarqueeMechanic.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector OrthographicProjection
(
const FPlane3& Plane, |
Return the 3D point obtained by projecting the given 3D Point onto the given projection plane Note: Assumes an orthographic camera | Mechanics/RectangleMarqueeMechanic.h |