Bomberman
Public Member Functions | Private Attributes | List of all members
RAY::Drawables::Drawables3D::Cube Class Reference

Cube in a three-dimensionnal space. More...

#include <Cube.hpp>

Inheritance diagram for RAY::Drawables::Drawables3D::Cube:
Collaboration diagram for RAY::Drawables::Drawables3D::Cube:

Public Member Functions

 Cube (const Vector3 &position, const Vector3 &dimensions, const Color &color)
 Cube constructor. More...
 
 Cube (const Cube &)=default
 A default copy constructor. More...
 
Cubeoperator= (const Cube &)=default
 A circle is assignable. More...
 
 ~Cube () override=default
 A default destructor. More...
 
const Vector3getDimensions (void) const
 
CubesetDimensions (const Vector3 &dimensions)
 set the dimensions of the cube More...
 
void drawOn (RAY::Window &) override
 Draw circle on window. More...
 
void drawWiresOn (RAY::Window &) override
 Draw cube's wires on window. More...
 
- Public Member Functions inherited from RAY::Drawables::ADrawable3D
 ADrawable3D (const RAY::Vector3 &position, const RAY::Color &color)
 
 ADrawable3D (const ADrawable3D &)=default
 A default copy constructor. More...
 
 ~ADrawable3D () override=default
 A default destructor. More...
 
const RAY::ColorgetColor (void) const
 
ADrawable3DsetColor (const RAY::Color &color)
 set color More...
 
const RAY::ColorgetDebugColor (void) const
 
ADrawable3DsetDebugColor (const RAY::Color &debugColor)
 set the debug color More...
 
virtual const RAY::Vector3getPosition (void) const
 
virtual ADrawable3DsetPosition (const Vector3 &position)
 set position More...
 
- Public Member Functions inherited from RAY::Drawables::IDrawable
virtual ~IDrawable ()=default
 

Private Attributes

Vector3 _dimensions
 Dimensions of the cube. More...
 

Additional Inherited Members

- Protected Attributes inherited from RAY::Drawables::ADrawable3D
Vector3 _position
 Position of the ADrawable. More...
 
Color _color
 Color of the ADrawable. More...
 
Color _debugColor = GREEN
 Color of the ADrawable's Debug. More...
 

Detailed Description

Cube in a three-dimensionnal space.

Constructor & Destructor Documentation

◆ Cube() [1/2]

RAY::Drawables::Drawables3D::Cube::Cube ( const Vector3 position,
const Vector3 dimensions,
const Color color 
)

Cube constructor.

Parameters
positionposition of the cube
dimensionsdimensions of the cube
ColorColor of the cube

◆ Cube() [2/2]

RAY::Drawables::Drawables3D::Cube::Cube ( const Cube )
default

A default copy constructor.

◆ ~Cube()

RAY::Drawables::Drawables3D::Cube::~Cube ( )
overridedefault

A default destructor.

Member Function Documentation

◆ drawOn()

void RAY::Drawables::Drawables3D::Cube::drawOn ( RAY::Window )
overridevirtual

Draw circle on window.

Implements RAY::Drawables::ADrawable3D.

◆ drawWiresOn()

void RAY::Drawables::Drawables3D::Cube::drawWiresOn ( RAY::Window )
overridevirtual

Draw cube's wires on window.

Reimplemented from RAY::Drawables::ADrawable3D.

◆ getDimensions()

const RAY::Vector3 & RAY::Drawables::Drawables3D::Cube::getDimensions ( void  ) const
Returns
the dimensions of the cube

◆ operator=()

Cube& RAY::Drawables::Drawables3D::Cube::operator= ( const Cube )
default

A circle is assignable.

◆ setDimensions()

Cube & RAY::Drawables::Drawables3D::Cube::setDimensions ( const Vector3 dimensions)

set the dimensions of the cube

Member Data Documentation

◆ _dimensions

Vector3 RAY::Drawables::Drawables3D::Cube::_dimensions
private

Dimensions of the cube.


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