Hymn to Beauty
C++ 3D Engine
GUI::SphereShapeEditor Class Reference

Sphere shape editor for physics components. More...

#include <SphereShapeEditor.hpp>

Inheritance diagram for GUI::SphereShapeEditor:
GUI::IShapeEditor

Public Member Functions

const char * Label () const override
 
void Show (Component::Shape *comp) override
 Displays the editor. More...
 
void Apply (Component::Shape *comp) override
 Set the shape of a shape component. More...
 
bool SetFromShape (const Physics::Shape &shape) override
 
- Public Member Functions inherited from GUI::IShapeEditor
virtual ~IShapeEditor ()
 Destructor. More...
 

Detailed Description

Sphere shape editor for physics components.

Member Function Documentation

◆ Apply()

void GUI::SphereShapeEditor::Apply ( Component::Shape comp)
overridevirtual

Set the shape of a shape component.

Parameters
compThe shape component on which to set shape.

Implements GUI::IShapeEditor.

◆ Label()

const char * GUI::SphereShapeEditor::Label ( ) const
inlineoverridevirtual

Get a string with the kind of shape that's being edited. This is intended to be used as a label in the GUI.

Returns
The type of shape as a string.

Implements GUI::IShapeEditor.

◆ SetFromShape()

bool GUI::SphereShapeEditor::SetFromShape ( const Physics::Shape shape)
overridevirtual

Set internal data according to an existing shape. If the shape does not correspond to the actual editor, nothing happens.

Parameters
shapeThe Shape from which to initialize data.
Returns
True if shape matched editor type, false otherwise.

Implements GUI::IShapeEditor.

◆ Show()

void GUI::SphereShapeEditor::Show ( Component::Shape comp)
overridevirtual

Displays the editor.

Parameters
compThe shape component to edit.

Implements GUI::IShapeEditor.


The documentation for this class was generated from the following files: