|
Hymn to Beauty
C++ 3D Engine
|
Interface to editors of physics shapes. More...
#include <IShapeEditor.hpp>
Public Member Functions | |
| virtual | ~IShapeEditor () |
| Destructor. More... | |
| virtual const char * | Label () const =0 |
| virtual void | Show (Component::Shape *comp)=0 |
| Displays the editor. More... | |
| virtual void | Apply (Component::Shape *comp)=0 |
| Set the shape of a shape component. More... | |
| virtual bool | SetFromShape (const Physics::Shape &shape)=0 |
Interface to editors of physics shapes.
|
inlinevirtual |
Destructor.
|
pure virtual |
Set the shape of a shape component.
| comp | The shape component on which to set shape. |
Implemented in GUI::BoxShapeEditor, GUI::CapsuleShapeEditor, GUI::ConeShapeEditor, GUI::CylinderShapeEditor, GUI::PlaneShapeEditor, and GUI::SphereShapeEditor.
|
pure virtual |
Get a string with the kind of shape that's being edited. This is intended to be used as a label in the GUI.
Implemented in GUI::BoxShapeEditor, GUI::CapsuleShapeEditor, GUI::ConeShapeEditor, GUI::CylinderShapeEditor, GUI::PlaneShapeEditor, and GUI::SphereShapeEditor.
|
pure virtual |
Set internal data according to an existing shape. If the shape does not correspond to the actual editor, nothing happens.
| shape | The Shape from which to initialize data. |
Implemented in GUI::BoxShapeEditor, GUI::CapsuleShapeEditor, GUI::ConeShapeEditor, GUI::CylinderShapeEditor, GUI::PlaneShapeEditor, and GUI::SphereShapeEditor.
|
pure virtual |
Displays the editor.
| comp | The shape component to edit. |
Implemented in GUI::BoxShapeEditor, GUI::CapsuleShapeEditor, GUI::ConeShapeEditor, GUI::CylinderShapeEditor, GUI::PlaneShapeEditor, and GUI::SphereShapeEditor.