Hymn to Beauty
C++ 3D Engine
CapsuleShapeEditor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IShapeEditor.hpp"
4
5namespace Component {
6class Shape;
7}
8
9namespace GUI {
12 public:
14 CapsuleShapeEditor() = default;
15
16 const char* Label() const override {
17 return "Capsule";
18 }
19 void Show(Component::Shape* comp) override;
20 void Apply(Component::Shape* comp) override;
21 bool SetFromShape(const Physics::Shape& shape) override;
22
23 private:
24 float radius = 1.0f;
25 float height = 1.0f;
26};
27} // namespace GUI
Definition: Shape.hpp:15
Capsule shape editor for physics components.
Definition: CapsuleShapeEditor.hpp:11
void Show(Component::Shape *comp) override
Displays the editor.
Definition: CapsuleShapeEditor.cpp:10
const char * Label() const override
Definition: CapsuleShapeEditor.hpp:16
void Apply(Component::Shape *comp) override
Set the shape of a shape component.
Definition: CapsuleShapeEditor.cpp:30
CapsuleShapeEditor()=default
Constructor.
bool SetFromShape(const Physics::Shape &shape) override
Definition: CapsuleShapeEditor.cpp:34
Interface to editors of physics shapes.
Definition: IShapeEditor.hpp:14
Definition: Shape.hpp:18
Definition: BoxShapeEditor.hpp:5
Definition: AssetEditor.hpp:9