Hymn to Beauty
C++ 3D Engine
IShapeEditor.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Component {
4class Shape;
5}
6
7namespace Physics {
8class Shape;
9}
10
11namespace GUI {
12
15 public:
17 virtual ~IShapeEditor() {}
18
21
24 virtual const char* Label() const = 0;
25
27
30 virtual void Show(Component::Shape* comp) = 0;
31
33
36 virtual void Apply(Component::Shape* comp) = 0;
37
40
44 virtual bool SetFromShape(const Physics::Shape& shape) = 0;
45};
46
47} // namespace GUI
Definition: Shape.hpp:15
Interface to editors of physics shapes.
Definition: IShapeEditor.hpp:14
virtual ~IShapeEditor()
Destructor.
Definition: IShapeEditor.hpp:17
virtual void Show(Component::Shape *comp)=0
Displays the editor.
virtual const char * Label() const =0
virtual void Apply(Component::Shape *comp)=0
Set the shape of a shape component.
virtual bool SetFromShape(const Physics::Shape &shape)=0
Definition: Shape.hpp:18
Definition: BoxShapeEditor.hpp:5
Definition: AssetEditor.hpp:9
Definition: IShapeEditor.hpp:7