Hymn to Beauty
C++ 3D Engine
ConeShapeEditor.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 ConeShapeEditor() = default;
15
16 const char* Label() const override {
17 return "Cone";
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
Cone shape editor for physics components.
Definition: ConeShapeEditor.hpp:11
ConeShapeEditor()=default
Constructor.
bool SetFromShape(const Physics::Shape &shape) override
Definition: ConeShapeEditor.cpp:34
void Show(Component::Shape *comp) override
Displays the editor.
Definition: ConeShapeEditor.cpp:10
void Apply(Component::Shape *comp) override
Set the shape of a shape component.
Definition: ConeShapeEditor.cpp:30
const char * Label() const override
Definition: ConeShapeEditor.hpp:16
Interface to editors of physics shapes.
Definition: IShapeEditor.hpp:14
Definition: Shape.hpp:18
Definition: BoxShapeEditor.hpp:5
Definition: AssetEditor.hpp:9