NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
NVCoordinateComponent.h
1 /*
2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 */
10 
11 #pragma once
12 
13 #include "NVSceneCapturerUtils.h"
14 #include "Components/PrimitiveComponent.h"
15 #include "NVCoordinateComponent.generated.h"
16 
17 /**
18  * The new actor which get annotated and have its info captured and exported
19  */
20 /// @cond DOXYGEN_SUPPRESSED_CODE
21 UCLASS(Blueprintable, ClassGroup = (NVIDIA), Config = Engine, HideCategories = (Replication, Tick, Tags, Input))
22 /// @endcond DOXYGEN_SUPPRESSED_CODE
23 class NVSCENECAPTURER_API UNVCoordinateComponent : public UPrimitiveComponent
24 {
25  GENERATED_BODY()
26 
27 public:
28  UNVCoordinateComponent(const FObjectInitializer& ObjectInitializer);
29 
30  void SetSize(const FVector& NewAxisSize);
31 
32 protected:
33  virtual void PostLoad() override;
34  virtual void BeginPlay() override;
35  virtual void OnVisibilityChanged() override;
36 #if WITH_EDITORONLY_DATA
37  void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent);
38 #endif // WITH_EDITORONLY_DATA
39 
40  void UpdateArrowSize();
41 
42 public: // Editor properties
43  UPROPERTY(EditAnywhere, BlueprintReadOnly)
44  float ArrowThickness;
45 
46  UPROPERTY(EditAnywhere, BlueprintReadOnly)
47  FVector AxisSize;
48 };