galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::components::Ellipse Class Referencefinal

2D shape. More...

#include <Ellipse.hpp>

+ Inheritance diagram for galaxy::components::Ellipse:
+ Collaboration diagram for galaxy::components::Ellipse:

Public Member Functions

 Ellipse ()
 Constructor.
 
 Ellipse (const nlohmann::json &json)
 JSON constructor.
 
 Ellipse (Ellipse &&)
 Move constructor.
 
Ellipseoperator= (Ellipse &&)
 Move assignment operator.
 
virtual ~Ellipse ()
 Destructor.
 
nlohmann::json serialize () override
 Serializes object.
 
void deserialize (const nlohmann::json &json) override
 Deserializes from object.
 
- Public Member Functions inherited from galaxy::fs::Serializable
virtual ~Serializable ()
 Destructor.
 
virtual Serializableoperator= (Serializable &&)=default
 Move assignment operator.
 
virtual Serializableoperator= (const Serializable &)=default
 Copy assignment operator.
 

Public Attributes

graphics::Ellipse m_shape
 Shape.
 

Private Member Functions

Ellipseoperator= (const Ellipse &)=delete
 Copy assignment operator.
 
 Ellipse (const Ellipse &)=delete
 Copy constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from galaxy::fs::Serializable
 Serializable ()
 Constructor.
 

Detailed Description

2D shape.

Definition at line 21 of file Ellipse.hpp.

Constructor & Destructor Documentation

◆ Ellipse() [1/4]

galaxy::components::Ellipse::Ellipse ( )

Constructor.

Definition at line 16 of file Ellipse.cpp.

◆ Ellipse() [2/4]

galaxy::components::Ellipse::Ellipse ( const nlohmann::json & json)

JSON constructor.

Parameters
jsonJSON defining object.

Definition at line 21 of file Ellipse.cpp.

+ Here is the call graph for this function:

◆ Ellipse() [3/4]

galaxy::components::Ellipse::Ellipse ( Ellipse && e)

Move constructor.

Definition at line 27 of file Ellipse.cpp.

◆ ~Ellipse()

galaxy::components::Ellipse::~Ellipse ( )
virtual

Destructor.

Definition at line 43 of file Ellipse.cpp.

◆ Ellipse() [4/4]

galaxy::components::Ellipse::Ellipse ( const Ellipse & )
privatedelete

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

Ellipse & galaxy::components::Ellipse::operator= ( Ellipse && e)

Move assignment operator.

Definition at line 33 of file Ellipse.cpp.

◆ serialize()

nlohmann::json galaxy::components::Ellipse::serialize ( )
nodiscardoverridevirtual

Serializes object.

Returns
JSON object containing data to be serialized.

Implements galaxy::fs::Serializable.

Definition at line 47 of file Ellipse.cpp.

◆ deserialize()

void galaxy::components::Ellipse::deserialize ( const nlohmann::json & json)
overridevirtual

Deserializes from object.

Parameters
jsonJson object to retrieve data from.

Implements galaxy::fs::Serializable.

Definition at line 62 of file Ellipse.cpp.

+ Here is the caller graph for this function:

◆ operator=() [2/2]

Ellipse & galaxy::components::Ellipse::operator= ( const Ellipse & )
privatedelete

Copy assignment operator.

Member Data Documentation

◆ m_shape

graphics::Ellipse galaxy::components::Ellipse::m_shape

Shape.

Definition at line 81 of file Ellipse.hpp.


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