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

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

#include <Triangle.hpp>

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

Public Member Functions

 Triangle (const Vector3 &positionA, const Vector3 &positionB, const Vector3 &positionC, const Color &color)
 Triangle constructor. More...
 
 Triangle (const Triangle &)=default
 A default copy constructor. More...
 
Triangleoperator= (const Triangle &)=default
 A Triangle is assignable. More...
 
 ~Triangle () override=default
 A default destructor. More...
 
const Vector3getPositionA (void) const
 
const Vector3getPositionB (void) const
 
const Vector3getPositionC (void) const
 
TrianglesetPositionA (const Vector3 &)
 the position of A of the Triangle More...
 
TrianglesetPositionB (const Vector3 &)
 the position of B of the Triangle More...
 
TrianglesetPositionC (const Vector3 &)
 the position of C of the Triangle More...
 
void drawOn (RAY::Window &) override
 Draw point 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...
 
virtual void drawWiresOn (RAY::Window &)
 Draw drawble's wires on window. 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 _posB
 Position of B. More...
 
Vector3 _posC
 Position of C. 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

Triangle in a three-dimensionnal space.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

RAY::Drawables::Drawables3D::Triangle::Triangle ( const Vector3 positionA,
const Vector3 positionB,
const Vector3 positionC,
const Color color 
)

Triangle constructor.

Parameters
positionAposition of A point
positionBposition of B point
positionCposition of C point
ColorColor of the circle

◆ Triangle() [2/2]

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

A default copy constructor.

◆ ~Triangle()

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

A default destructor.

Member Function Documentation

◆ drawOn()

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

Draw point on window.

Implements RAY::Drawables::ADrawable3D.

◆ getPositionA()

const RAY::Vector3 & RAY::Drawables::Drawables3D::Triangle::getPositionA ( void  ) const
Returns
the position of A of the Triangle

◆ getPositionB()

const RAY::Vector3 & RAY::Drawables::Drawables3D::Triangle::getPositionB ( void  ) const
Returns
the position of B of the Triangle

◆ getPositionC()

const RAY::Vector3 & RAY::Drawables::Drawables3D::Triangle::getPositionC ( void  ) const
Returns
the position of C of the Triangle

◆ operator=()

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

A Triangle is assignable.

◆ setPositionA()

Triangle & RAY::Drawables::Drawables3D::Triangle::setPositionA ( const Vector3 position)

the position of A of the Triangle

◆ setPositionB()

Triangle & RAY::Drawables::Drawables3D::Triangle::setPositionB ( const Vector3 position)

the position of B of the Triangle

◆ setPositionC()

Triangle & RAY::Drawables::Drawables3D::Triangle::setPositionC ( const Vector3 position)

the position of C of the Triangle

Member Data Documentation

◆ _posB

Vector3 RAY::Drawables::Drawables3D::Triangle::_posB
private

Position of B.

◆ _posC

Vector3 RAY::Drawables::Drawables3D::Triangle::_posC
private

Position of C.


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