Navigation
Unreal Engine C++ API Reference > Plugins > ModelingComponents > Drawing
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPreviewGeometry
- UMeshElementsVisualizer
- UUVEditorBackgroundPreview
References
Module | ModelingComponents |
Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/PreviewGeometryActor.h |
Include | #include "Drawing/PreviewGeometryActor.h" |
Syntax
UCLASS&40;Transient&41;
class UPreviewGeometry : public UObject
Remarks
UPreviewGeometry creates and manages an APreviewGeometryActor and a set of preview geometry Components. Preview geometry Components are identified by strings.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TMap< FString, TObjectPtr< ULineSetComponent > > | LineSets | LineSetComponents created and owned by the UPreviewGeometry, and added as child components of the ParentActor |
![]() ![]() |
TObjectPtr< APreviewGeometryActor > | ParentActor | Actor created and managed by the UPreviewGeometry |
![]() ![]() |
TMap< FString, TObjectPtr< UPointSetComponent > > | PointSets | PointSetComponents created and owned by the UPreviewGeometry, and added as child components of the ParentActor |
![]() ![]() |
TMap< FString, TObjectPtr< UTriangleSetComponent > > | TriangleSets | TriangleSetComponents created and owned by the UPreviewGeometry, and added as child components of the ParentActor |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
ULineSetComponent * | AddLineSet
(
const FString& LineSetIdentifier |
Line SetsCreate a new line set with the given LineSetIdentifier and return it |
![]() ![]() |
UPointSetComponent * | AddPointSet
(
const FString& PointSetIdentifier |
Point SetsCreate a new point set with the given PointSetIdentifier and return it |
![]() ![]() |
UTriangleSetComponent * | AddTriangleSet
(
const FString& TriangleSetIdentifier |
Triangle SetsCreate a new triangle set with the given TriangleSetIdentifier and return it |
![]() ![]() |
void | CreateInWorld
(
UWorld* World, |
Create preview mesh in the World with the given transform |
![]() |
void | CreateOrUpdateLineSet
(
const FString& LineSetIdentifier, |
Add a set of lines produced by calling LineGenFunc for each index in range [0,NumIndices) |
![]() |
void | CreateOrUpdatePointSet
(
const FString& PointSetIdentifier, |
Add a set of points produced by calling PointGenFunc for each index in range [0,NumIndices) |
![]() |
void | CreateOrUpdateTriangleSet
(
const FString& TriangleSetIdentifier, |
Add a set of triangles produced by calling TriangleGenFunc for each index in range [0,NumIndices) |
![]() ![]() |
void | Disconnect () |
Remove and destroy preview mesh |
![]() ![]() |
ULineSetComponent * | FindLineSet
(
const FString& LineSetIdentifier |
|
![]() ![]() |
UPointSetComponent * | FindPointSet
(
const FString& PointSetIdentifier |
|
![]() ![]() |
UTriangleSetComponent * | FindTriangleSet
(
const FString& TriangleSetIdentifier |
|
![]() ![]() ![]() |
APreviewGeometryActor * | GetActor () |
|
![]() ![]() |
FTransform | GetTransform () |
Get the current transform on the preview |
![]() ![]() |
void | OnCreated () |
Called at the end of CreateInWorld() to allow subclasses to add additional setup |
![]() ![]() |
void | Called at the beginning of Disconnect() to allow subclasses to perform additional cleanup | |
![]() ![]() |
void | RemoveAllLineSets
(
bool bDestroy |
Remove all LineSetComponents |
![]() ![]() |
void | RemoveAllPointSets
(
bool bDestroy |
Remove all PointSetComponents |
![]() ![]() |
bool | RemoveLineSet
(
const FString& LineSetIdentifier, |
Remove the LineSetComponent with the given LineSetIdentifier |
![]() ![]() |
bool | RemovePointSet
(
const FString& PointSetIdentifier, |
Remove the PointSetComponent with the given PointSetIdentifier |
![]() ![]() |
void | SetAllLineSetsMaterial
(
UMaterialInterface* Material |
Set the Material of all LineSetComponents |
![]() ![]() |
void | SetAllPointSetsMaterial
(
UMaterialInterface* Material |
Set the Material of all PointSetComponents |
![]() |
void | SetAllVisible
(
bool bVisible |
Set visibility state of the preview mesh |
![]() ![]() |
bool | SetLineSetMaterial
(
const FString& LineSetIdentifier, |
Set the Material of the LineSetComponent with the given LineSetIdentifier |
![]() ![]() |
bool | SetLineSetVisibility
(
const FString& LineSetIdentifier, |
Set the visibility of the LineSetComponent with the given LineSetIdentifier |
![]() ![]() |
bool | SetPointSetMaterial
(
const FString& PointSetIdentifier, |
Set the Material of the PointSetComponent with the given PointSetIdentifier |
![]() ![]() |
bool | SetPointSetVisibility
(
const FString& PointSetIdentifier, |
Set the visibility of the PointSetComponent with the given PointSetIdentifier |
![]() |
void | SetTransform
(
const FTransform& UseTransform |
Set the transform on the preview mesh |
![]() |
void | UpdateAllLineSets
(
UpdateFuncType UpdateFunc |
Call UpdateFuncType(ULineSetComponent*) for all existing Line Sets |
![]() |
void | UpdateAllPointSets
(
UpdateFuncType UpdateFunc |
Call UpdateFuncType(UPointSetComponent*) for all existing Point Sets |
![]() |
void | UpdateLineSet
(
const FString& LineSetIdentifier, |
Line Set Utilities Find the identified line set and call UpdateFuncType(ULineSetComponent*) |
![]() |
void | UpdatePointSet
(
const FString& PointSetIdentifier, |
Point Set Utilities Find the identified point set and call UpdateFuncType(UPointSetComponent*) |
![]() |
void | UpdateTriangleSet
(
const FString& TriangleSetIdentifier, |
Triangle Set Utilities Find the identified triangle set and call UpdateFuncType(UTriangleSetComponent*) |