You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Some P4V problem with backing out large changelist missed some files. #codereview Robert.Manuszewski [CL 2481366 by Jaroslaw Palczynski in Main branch]
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
/**
|
|
* Allows clipping of BSP brushes against a plane.
|
|
*/
|
|
|
|
#pragma once
|
|
#include "GeomModifier_Clip.generated.h"
|
|
|
|
UCLASS()
|
|
class UGeomModifier_Clip : public UGeomModifier_Edit
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
uint32 bFlipNormal:1;
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
uint32 bSplit:1;
|
|
|
|
/** The clip markers that the user has dropped down in the world so far. */
|
|
UPROPERTY()
|
|
TArray<FVector> ClipMarkers;
|
|
|
|
/** The mouse position, in world space, where the user currently is hovering. */
|
|
UPROPERTY()
|
|
FVector SnappedMouseWorldSpacePos;
|
|
|
|
|
|
// Begin UGeomModifier Interface
|
|
virtual bool Supports() override;
|
|
virtual bool InputKey(class FEditorViewportClient* ViewportClient, FViewport* Viewport, FKey Key, EInputEvent Event) override;
|
|
virtual void Render(const FSceneView* View,FViewport* Viewport,FPrimitiveDrawInterface* PDI) override;
|
|
virtual void DrawHUD(FEditorViewportClient* ViewportClient,FViewport* Viewport,const FSceneView* View,FCanvas* Canvas) override;
|
|
virtual void Tick(FEditorViewportClient* ViewportClient,float DeltaTime) override;
|
|
virtual void WasActivated() override;
|
|
protected:
|
|
virtual bool OnApply() override;
|
|
// End UGeomModifier Interface
|
|
|
|
private:
|
|
// @todo document
|
|
void ApplyClip( bool InSplit, bool InFlipNormal );
|
|
};
|
|
|
|
|
|
|