RuntimeMeshComponentDetails.h
Go to the documentation of this file.
1 // Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.
2 
3 #pragma once
4 #include "IDetailCustomization.h"
5 #include "DetailLayoutBuilder.h"
6 #include "RuntimeMesh.h"
7 #include "SlateEnums.h"
8 
9 class FRuntimeMeshComponentDetails : public IDetailCustomization
10 {
11 public:
13  static TSharedRef<IDetailCustomization> MakeInstance();
14 
16  virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
17 
20 
22  bool ConvertToStaticMeshEnabled() const;
23 
25  class URuntimeMeshComponent* GetFirstSelectedRuntimeMeshComp() const;
26 
28  TArray<TWeakObjectPtr<UObject>> SelectedObjectsList;
29  TArray<URuntimeMesh*> RuntimeMeshesReferenced;
30 
31  TArray<TSharedPtr<ERuntimeMeshCollisionCookingMode>> CookingModes;
32 
33  ECheckBoxState UseComplexAsSimple() const;
34  void UseComplexAsSimpleCheckedStateChanged(ECheckBoxState InCheckboxState);
35 
36  ECheckBoxState IsAsyncCollisionEnabled() const;
37  void AsyncCollisionCheckedStateChanged(ECheckBoxState InCheckboxState);
38 
39  ECheckBoxState ShouldSerializeMeshData() const;
40  void ShouldSerializeMeshDataCheckedStateChanged(ECheckBoxState InCheckboxState);
41 
42  FText GetModeText(const TSharedPtr<ERuntimeMeshCollisionCookingMode>& Mode) const;
43 
44  FText GetSelectedModeText() const
45  {
47  }
48 
49  TSharedRef<SWidget> MakeCollisionModeComboItemWidget(TSharedPtr<ERuntimeMeshCollisionCookingMode> Mode);
50 
51  TSharedPtr<ERuntimeMeshCollisionCookingMode> GetCurrentCollisionCookingMode() const;
52 
53  void CollisionCookingModeSelectionChanged(TSharedPtr<ERuntimeMeshCollisionCookingMode> NewMode, ESelectInfo::Type SelectionType);
54 
55 };
static TSharedRef< IDetailCustomization > MakeInstance()
class URuntimeMeshComponent * GetFirstSelectedRuntimeMeshComp() const
FText GetModeText(const TSharedPtr< ERuntimeMeshCollisionCookingMode > &Mode) const
void ShouldSerializeMeshDataCheckedStateChanged(ECheckBoxState InCheckboxState)
void AsyncCollisionCheckedStateChanged(ECheckBoxState InCheckboxState)
TArray< TSharedPtr< ERuntimeMeshCollisionCookingMode > > CookingModes
virtual void CustomizeDetails(IDetailLayoutBuilder &DetailBuilder) override
Mode
Definition: monitors.c:40
ECheckBoxState IsAsyncCollisionEnabled() const
ECheckBoxState ShouldSerializeMeshData() const
void UseComplexAsSimpleCheckedStateChanged(ECheckBoxState InCheckboxState)
void CollisionCookingModeSelectionChanged(TSharedPtr< ERuntimeMeshCollisionCookingMode > NewMode, ESelectInfo::Type SelectionType)
TSharedRef< SWidget > MakeCollisionModeComboItemWidget(TSharedPtr< ERuntimeMeshCollisionCookingMode > Mode)
TSharedPtr< ERuntimeMeshCollisionCookingMode > GetCurrentCollisionCookingMode() const
TArray< URuntimeMesh * > RuntimeMeshesReferenced
TArray< TWeakObjectPtr< UObject > > SelectedObjectsList


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41