FEdModeGeometry

Allows for BSP geometry to be edited directly

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

GeometryMode

Header

/Engine/Plugins/Editor/GeometryMode/Source/GeometryMode/Public/GeometryEdMode.h

Include

#include "GeometryEdMode.h"

Syntax

class FEdModeGeometry : public FEdMode

Remarks

Allows for BSP geometry to be edited directly

Variables

Name Description

Protected variable

TArray< FGeomOb...

 

GeomObjects

Custom data compiled when this mode is entered, based on currently selected brushes.

Constructors

Name Description

Public function

FEdModeGeometry()

Destructors

Name Description

Public function Virtual

~FEdModeGeometry()

Functions

Name Description

Public function Const

bool

 

CacheSelectedData

(
    TArray< HGeomMidPoints >& raGeomDa...,
    const FGeomObject& rGeomObject
)

Cache all the selected geometry on the object, and add to the array if any is found

Public function Virtual

int32

 

CountObjectsSelected()

Returns the number of objects that are selected.

Public function Virtual

int32

 

CountSelectedEdges()

Returns the number of edges that are selected.

Public function Virtual

int32

 

CountSelectedPolygons()

Returns the number of polygons that are selected.

Public function Virtual

int32

 

CountSelectedVertices()

Returns the number of vertices that are selected.

Public function Static

TSharedRef< ...

 

Create()

Public function Virtual

bool

 

ExecDelete()

Public function Virtual

bool

 

FinalizeSourceData()

Public function Const

bool

 

FindFromCache

(
    TArray< HGeomMidPoints >& raGeomDa...,
    FGeomObject& rGeomObject,
    TArray< FGeomBase* >& raSelec...
)

Attempt to find all the new geometry using the cached data, and cache those new ones out

Public function Virtual

void

 

GeometrySelectNone

(
    bool bStoreSelection,
    bool bResetPivot
)

Deselects all edges, polygons, and vertices for all selected objects.

Public function Const

TGeomObjectC...

 

GeomObjectConstItor()

Public function

TGeomObjectI...

 

GeomObjectItor()

Public function Virtual

void

 

GetFromSource()

Compiles geometry mode information from the selected brushes.

Public function

FGeomObjectP...

 

GetGeomObject

(
    int32 Index
)

Public function Const

const FGeomO...

 

GetGeomObject

(
    int32 Index
)

Public function Virtual Const

void

 

GetSelectedEdges

(
    TArray< FGeomEdge* >& InEdges
)

Returns the edges that are selected.

Public function Virtual Const

void

 

GetSelectedPolygons

(
    TArray< FGeomPoly* >& InPolyg...
)

Returns the polygons that are selected.

Public function Virtual Const

void

 

GetSelectedVertices

(
    TArray< FGeomVertex* >& InVer...
)

Fills an array with all selected vertices.

Fills an array with all selected vertices.

Public function Virtual

int32

 

GetSelectionState()

Utility function that allow you to poll and see if certain sub elements are currently selected.

Public function Virtual

bool

 

HaveEdgesSelected()

Returns true if the user has edges selected.

Public function Virtual

bool

 

HavePolygonsSelected()

Returns true if the user has polygons selected.

Public function Virtual

bool

 

HaveVerticesSelected()

Returns true if the user has vertices selected.

Public function

void

 

RenderEdge

(
    const FSceneView* View,
    FPrimitiveDrawInterface* PDI
)

Public function

void

 

RenderPoly

(
    const FSceneView* View,
    FViewport* Viewport,
    FPrimitiveDrawInterface* PDI
)

Public function

void

 

RenderVertex

(
    const FSceneView* View,
    FPrimitiveDrawInterface* PDI
)

Public function Const

bool

 

SelectCachedData

(
    TArray< FGeomBase* >& raSelec...
)

Select all the verts/edges/polys that were found

Return true if successful

Public function Virtual

void

 

SendToSource()

Changes the source brushes to match the current geometry data.

Public function

void

 

ShowModifierWindow

(
    bool bShouldShow
)

Overridden from FEdMode

Name Description

Public function Virtual Const

bool

 

ComputeBoundingBoxForViewportFocus

(
    AActor* Actor,
    UPrimitiveComponent* Primitive...,
    FBox& InOutBox
)

Allows an editor mode to override the bounding box used to focus the viewport on a selection

Public function Virtual

void

 

Enter()

Public function Virtual

void

 

Exit()

Public function Virtual Const

bool

 

IsCompatibleWith

(
    FEditorModeID OtherModeID
)

Public function Virtual

void

 

MapChangeNotify()

Public function Virtual

void

 

PostUndo()

Public function Virtual

void

 

SelectionChanged()

Public function Virtual Const

bool

 

ShouldDrawBrushWireframe

(
    AActor* InActor
)

Public function Virtual

void

 

UpdateInternalData()

Public function Virtual Const

bool

 

UsesToolkits()

True if this mode uses a toolkit mode (eventually they all should)

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Overridden from FLegacyEdModeWidgetHelper

Name Description

Public function Virtual

void

 

ActorSelectionChangeNotify()

Public function Virtual

bool

 

GetCustomDrawingCoordinateSystem

(
    FMatrix& InMatrix,
    void* InData
)

Public function Virtual

bool

 

GetCustomInputCoordinateSystem

(
    FMatrix& InMatrix,
    void* InData
)

Public function Virtual Const

FVector

 

GetWidgetLocation()

Public function Virtual

void

 

Render

(
    const FSceneView* View,
    FViewport* Viewport,
    FPrimitiveDrawInterface* PDI
)

Draws translucent polygons on brushes and volumes.

Public function Virtual Const

bool

 

ShowModeWidgets()

Classes

Name

Description

Public struct

HGeomMidPoints

Struct for cacheing of selected objects components midpoints for reselection when rebuilding the BSP

Typedefs