RayTracer 1.0
Ray tracing is a technique used to generate realistic digital images by simulating the inverse path of light. Our goal is to create a program able to generate an image from a file describing the scene.
 
Loading...
Searching...
No Matches
RayTracer::FlatColor Class Reference

#include <IMaterial.hpp>

Inheritance diagram for RayTracer::FlatColor:
RayTracer::IMaterial

Public Member Functions

 FlatColor (const Color &c)
 
 ~FlatColor () override=default
 
Color getBaseColor () const override
 
Color shade (const Color &, const Color &light, const Math::Point3D &) const override
 
- Public Member Functions inherited from RayTracer::IMaterial
virtual ~IMaterial ()=default
 

Private Attributes

Color _color
 

Detailed Description

Definition at line 20 of file IMaterial.hpp.

Constructor & Destructor Documentation

◆ FlatColor()

RayTracer::FlatColor::FlatColor ( const Color & c)
inlineexplicit

Definition at line 22 of file IMaterial.hpp.

22: _color(c) {}

References _color.

◆ ~FlatColor()

RayTracer::FlatColor::~FlatColor ( )
overridedefault

Member Function Documentation

◆ getBaseColor()

Color RayTracer::FlatColor::getBaseColor ( ) const
inlineoverridevirtual

Implements RayTracer::IMaterial.

Definition at line 25 of file IMaterial.hpp.

25{ return _color; }

References _color.

◆ shade()

Color RayTracer::FlatColor::shade ( const Color & ,
const Color & light,
const Math::Point3D &  ) const
inlineoverridevirtual

Implements RayTracer::IMaterial.

Definition at line 26 of file IMaterial.hpp.

26{ return light; }

Member Data Documentation

◆ _color

Color RayTracer::FlatColor::_color
private

Definition at line 29 of file IMaterial.hpp.


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