You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over. #codereview Robert.Manuszewski [CL 2481343 by Jaroslaw Palczynski in Main branch]
42 lines
919 B
C++
42 lines
919 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
/**
|
|
* Revolves selected polygons around the pivot point.
|
|
*/
|
|
|
|
#pragma once
|
|
#include "GeomModifier_Lathe.generated.h"
|
|
|
|
UCLASS()
|
|
class UGeomModifier_Lathe : public UGeomModifier_Edit
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
int32 TotalSegments;
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
int32 Segments;
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
uint32 AlignToSide:1;
|
|
|
|
/** The axis of rotation to use when creating the brush. This is automatically determined from the current ortho viewport. */
|
|
UPROPERTY()
|
|
TEnumAsByte<EAxis::Type> Axis;
|
|
|
|
|
|
// Begin UGeomModifier Interface
|
|
virtual bool Supports() override;
|
|
virtual void Initialize() override;
|
|
protected:
|
|
virtual bool OnApply() override;
|
|
// End UGeomModifier Interface
|
|
private:
|
|
void Apply( int32 InTotalSegments, int32 InSegments, EAxis::Type InAxis );
|
|
};
|
|
|
|
|
|
|