Hymn to Beauty
C++ 3D Engine
PlaneShapeEditor.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 PlaneShapeEditor() = default;
15
16 const char* Label() const override {
17 return "Plane";
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 normal[3] = {0.0f, 1.0f, 0.0f};
25 float planeCoeff = 0.0f;
26};
27} // namespace GUI
Definition: Shape.hpp:15
Interface to editors of physics shapes.
Definition: IShapeEditor.hpp:14
Plane shape editor for physics components.
Definition: PlaneShapeEditor.hpp:11
PlaneShapeEditor()=default
Constructor.
const char * Label() const override
Definition: PlaneShapeEditor.hpp:16
void Show(Component::Shape *comp) override
Displays the editor.
Definition: PlaneShapeEditor.cpp:11
void Apply(Component::Shape *comp) override
Set the shape of a shape component.
Definition: PlaneShapeEditor.cpp:23
bool SetFromShape(const Physics::Shape &shape) override
Definition: PlaneShapeEditor.cpp:27
Definition: Shape.hpp:18
Definition: BoxShapeEditor.hpp:5
Definition: AssetEditor.hpp:9