Hymn to Beauty
C++ 3D Engine
SphereShapeEditor.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:
13 const char* Label() const override {
14 return "Sphere";
15 }
16 void Show(Component::Shape* comp) override;
17 void Apply(Component::Shape* comp) override;
18 bool SetFromShape(const Physics::Shape& shape) override;
19
20 private:
21 float radius = 1.0f;
22};
23} // namespace GUI
Definition: Shape.hpp:15
Interface to editors of physics shapes.
Definition: IShapeEditor.hpp:14
Sphere shape editor for physics components.
Definition: SphereShapeEditor.hpp:11
bool SetFromShape(const Physics::Shape &shape) override
Definition: SphereShapeEditor.cpp:27
const char * Label() const override
Definition: SphereShapeEditor.hpp:13
void Show(Component::Shape *comp) override
Displays the editor.
Definition: SphereShapeEditor.cpp:10
void Apply(Component::Shape *comp) override
Set the shape of a shape component.
Definition: SphereShapeEditor.cpp:23
Definition: Shape.hpp:18
Definition: BoxShapeEditor.hpp:5
Definition: AssetEditor.hpp:9