|
Krita Source Code Documentation
|
#include <phong_pixel_processor.h>
Public Member Functions | |
| QVector< quint16 > | IlluminatePixel () |
| QVector< quint16 > | IlluminatePixelFromHeightmap (quint32 posup, quint32 posdown, quint32 posleft, quint32 posright) |
| QVector< quint16 > | IlluminatePixelFromNormalmap (qreal r, qreal g, qreal b) |
| void | initialize (const KisPropertiesConfigurationSP config) |
| void | normalizeHeightmap () |
| PhongPixelProcessor (quint32 pixelArea, const KisPropertiesConfigurationSP config) | |
| void | setLightVector (QVector3D light_vector) |
| ~PhongPixelProcessor () | |
Public Attributes | |
| bool | diffuseLightIsEnabled |
| Illuminant | fastLight |
| Illuminant | fastLight2 |
| qreal | Ia |
| Total ambient light. | |
| qreal | Id |
| Total diffuse light. | |
| qreal | Is |
| Total specular light. | |
| qreal | Ka |
| Ambient light coefficient. | |
| qreal | Kd |
| Diffuse light coefficient. | |
| qreal | Ks |
| Specular light coefficient. | |
| QVector3D | light_vector |
| QList< Illuminant > | lightSources |
| Light sources to use (those disabled in the GUI are not present here) | |
| QVector3D | normal_vector |
| QVector< double > | realheightmap |
| QVector3D | reflection_vector |
| qreal | shiny_exp |
| Shinyness exponent. | |
| quint8 | size |
| Size of this stuff. | |
| bool | specularLightIsEnabled |
| QVector3D | vision_vector |
| QVector3D | x_vector |
| QVector3D | y_vector |
Private Attributes | |
| quint32 | m_pixelArea |
Definition at line 25 of file phong_pixel_processor.h.
| PhongPixelProcessor::PhongPixelProcessor | ( | quint32 | pixelArea, |
| const KisPropertiesConfigurationSP | config ) |
Definition at line 12 of file phong_pixel_processor.cpp.
References initialize(), and m_pixelArea.
| PhongPixelProcessor::~PhongPixelProcessor | ( | ) |
Definition at line 83 of file phong_pixel_processor.cpp.
| QVector< quint16 > PhongPixelProcessor::IlluminatePixel | ( | ) |
Definition at line 115 of file phong_pixel_processor.cpp.
References diffuseLightIsEnabled, Ia, Id, Is, Ka, Kd, Ks, light_vector, lightSources, normal_vector, reflection_vector, shiny_exp, size, specularLightIsEnabled, and vision_vector.
| QVector< quint16 > PhongPixelProcessor::IlluminatePixelFromHeightmap | ( | quint32 | posup, |
| quint32 | posdown, | ||
| quint32 | posleft, | ||
| quint32 | posright ) |
Definition at line 95 of file phong_pixel_processor.cpp.
References IlluminatePixel(), lightSources, normal_vector, and realheightmap.
| QVector< quint16 > PhongPixelProcessor::IlluminatePixelFromNormalmap | ( | qreal | r, |
| qreal | g, | ||
| qreal | b ) |
Definition at line 172 of file phong_pixel_processor.cpp.
References IlluminatePixel(), lightSources, and normal_vector.
| void PhongPixelProcessor::initialize | ( | const KisPropertiesConfigurationSP | config | ) |
Definition at line 18 of file phong_pixel_processor.cpp.
References diffuseLightIsEnabled, fastLight, fastLight2, Ia, Id, Is, Ka, Kd, Ks, light_vector, lightSources, Illuminant::lightVector, M_PI, m_pixelArea, normal_vector, PHONG_AMBIENT_REFLECTIVITY, PHONG_DIFFUSE_REFLECTIVITY, PHONG_DIFFUSE_REFLECTIVITY_IS_ENABLED, PHONG_ILLUMINANT_AZIMUTH, PHONG_ILLUMINANT_COLOR, PHONG_ILLUMINANT_INCLINATION, PHONG_ILLUMINANT_IS_ENABLED, PHONG_SHINYNESS_EXPONENT, PHONG_SPECULAR_REFLECTIVITY, PHONG_SPECULAR_REFLECTIVITY_IS_ENABLED, PHONG_TOTAL_ILLUMINANTS, realheightmap, reflection_vector, Illuminant::RGBvalue, shiny_exp, size, specularLightIsEnabled, vision_vector, x_vector, and y_vector.
| void PhongPixelProcessor::normalizeHeightmap | ( | ) |
| void PhongPixelProcessor::setLightVector | ( | QVector3D | light_vector | ) |
Definition at line 89 of file phong_pixel_processor.cpp.
References light_vector.
| bool PhongPixelProcessor::diffuseLightIsEnabled |
Definition at line 80 of file phong_pixel_processor.h.
| Illuminant PhongPixelProcessor::fastLight |
Definition at line 77 of file phong_pixel_processor.h.
| Illuminant PhongPixelProcessor::fastLight2 |
Definition at line 78 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Ia |
Total ambient light.
Definition at line 57 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Id |
Total diffuse light.
Definition at line 60 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Is |
Total specular light.
Definition at line 63 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Ka |
Ambient light coefficient.
Definition at line 45 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Kd |
Diffuse light coefficient.
Definition at line 48 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::Ks |
Specular light coefficient.
Definition at line 51 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::light_vector |
Definition at line 39 of file phong_pixel_processor.h.
| QList<Illuminant> PhongPixelProcessor::lightSources |
Light sources to use (those disabled in the GUI are not present here)
Definition at line 72 of file phong_pixel_processor.h.
|
private |
Definition at line 84 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::normal_vector |
Definition at line 36 of file phong_pixel_processor.h.
| QVector<double> PhongPixelProcessor::realheightmap |
Definition at line 42 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::reflection_vector |
Definition at line 35 of file phong_pixel_processor.h.
| qreal PhongPixelProcessor::shiny_exp |
Shinyness exponent.
Definition at line 54 of file phong_pixel_processor.h.
| quint8 PhongPixelProcessor::size |
Size of this stuff.
Definition at line 75 of file phong_pixel_processor.h.
| bool PhongPixelProcessor::specularLightIsEnabled |
Definition at line 81 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::vision_vector |
Definition at line 40 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::x_vector |
Definition at line 37 of file phong_pixel_processor.h.
| QVector3D PhongPixelProcessor::y_vector |
Definition at line 38 of file phong_pixel_processor.h.