Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsInitialized | ||
| FViewCameraState | CameraState | ||
| FInputDeviceRay | RectangleEndRay | ||
| FInputDeviceRay | RectangleStartRay | ||
| FRectangleInPlane | SelectionDomain |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FConvexVolume | |||
| void | Initialize () |
This function must be called before other member functions whenever camera state or start/end rays are updated. | |
| 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 | |
| bool | IsProjectedSegmentIntersectingRectangle
(
const FVector& Endpoint1, |
||
| 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 | |
| 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 | |
| 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: | |
| 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. | |
| 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. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRectangleInPlane |
Typedefs
| Name | Description |
|---|---|
| FAxisAlignedBox2 | |
| FGeometrySet3 | |
| FPlane3 | |
| FSegment2 | |
| FVector2 |