Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CGraphicsCairo.hpp>
Classes | |
struct | SCairoImageLoaded |
struct | SPrvBlockText |
struct | SPrvCairoLayer |
Public Types | |
enum class | EDashedLineType { Continuous , Dashed4_2 } |
enum class | EDetailLevel { Low , Normal , High , VeryHigh } |
enum class | EDrawSolidType { Smooth , Solid , Wire } |
enum class | ELight { General , Light0 } |
enum class | ELightType { Ambient , Diffuse , Specular } |
enum class | EMatrixModel { ModelView , Projection } |
Public Member Functions | |
CGraphicsCairo () | |
CGraphicsCairo (const CGraphicsCairo &other)=delete | |
CGraphicsCairo (CGraphicsCairo &&other)=delete | |
~CGraphicsCairo () override | |
CGraphicsCairo & | operator= (const CGraphicsCairo &other)=delete |
CGraphicsCairo & | operator= (CGraphicsCairo &&other)=delete |
bool | operator== (const CGraphicsCairo &b) const |
void | beginDraw (double sizeX, double sizeY) |
void | endDraw () |
void | update () |
iv::ui::graphics::Image * | getImage () |
_cairo_surface * | getSurface () const |
bool | isUpdate () const |
Static Public Member Functions | |
static CGraphicsCairo * | createImageData (uint64_t sizeX, uint64_t sizeY) |
static CGraphicsCairo * | createImageForMotion () |
static CGraphicsCairo * | createImageForScreen (iv::types::color colorRGBBackground) |
static CGraphicsCairo * | createWithSurface (_cairo_surface *surface, _cairo *cairo, iv::types::color colorBackground) |
Public Attributes | |
float | epsilon = static_cast<float>(0.000001) |
Static Public Attributes | |
static constexpr uint32_t | BlockNull = UINT_MAX |
Private Types | |
enum class | EPrvCairoType { Image , ForMotion , Screen } |
Private Member Functions | |
CGraphicsCairo (CGraphicsCairo::EPrvCairoType cairoType, iv::types::color colorRGBBackground, bool isCairoRef, cairo_t *cairoOpt, cairo_surface_t *cairoSurfaceOpt) | |
void | setBackGroundColor (iv::types::color rgb) override |
void | setClearColor () override |
void | initDevice () override |
void | initLight () override |
void | clear () override |
void | defineMaterial (const iv::ui::graphics::Material *material, const bool &isChanged) override |
bool | isDefinedMaterial (const std::string &materialName) override |
void | pushMaterial () override |
void | setMaterial (const std::string &materialName) override |
void | popMaterial () override |
void | setColorRGB (iv::types::color rgb) override |
void | setColorARGB (iv::types::color argb) override |
void | setLineWidth (float width) override |
void | setAlpha (float alpha) override |
void | resetAlpha () override |
void | setOnTexture (bool enableTexture) override |
std::shared_ptr< iv::ui::graphics::Image > | loadImage (const iv::ui::resources::ImageResource &resource) override |
void | appendMatrix (const CMatrix4x4 &matrix) override |
void | setModelMatrix (IGraphics::EMatrixModel matrixModel) override |
void | popTransformation () override |
void | pushTransformation () override |
void | resetTransformation () override |
void | defineLight (IGraphics::ELight light, IGraphics::ELightType lightType, double rColor, double gColor, double bColor) override |
void | positionLight (IGraphics::ELight light, double x, double y, double z) override |
void | viewport (int32_t x, int32_t y, uint64_t sizeX, uint64_t sizeY) override |
void | definePerspective (double fovY, double ratioXForY, double zNear, double zFar) override |
void | defineOrthogonal (double xOrg, double yOrg, double zOrg, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax) override |
void | positionCamera (double eyeX, double eyeY, double eyeZ, double pointReferenceX, double pointReferenceY, double pointReferenceZ, double upX, double upY, double upZ) override |
void | rotation (double angleDegrees, double Ux, double Uy, double Uz) override |
void | scale (double sx, double sy, double sz) override |
void | setNormal (double Nx, double Ny, double Nz) override |
void | translation (double tx, double ty, double tz) override |
void | drawContours (const std::vector< std::shared_ptr< std::vector< iv::math::geometry::Point3d > > > &contours) override |
void | drawFanTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override |
void | drawImage (double x, double y, double width, double height, const iv::ui::resources::ImageResource &resource) override |
void | drawImageRawSize (double x, double y, const iv::ui::resources::ImageResource &resource) override |
void | drawImageWithColor (double x, double y, iv::types::color colorRGB, double width, double height, const iv::ui::resources::ImageResource &resourceName) override |
void | drawLine (double x1, double y1, double z1, double x2, double y2, double z2) override |
void | drawLineWithStyle (double x1, double y1, double z1, double x2, double y2, double z2, IGraphics::EDashedLineType dashedLineType) override |
void | drawArc (double radiusMark, iv::types::radian angleInitial, iv::types::radian angleFinal, float thickness, uint64_t kPrvNumPoints) override |
void | drawPolyline (const float *vertex, uint64_t numVertex) override |
void | drawPolylineFilled (const float *vertex, uint64_t numVertex) override |
void | drawPolylinesWithColors (const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &points, const std::vector< iv::math::geometry::Point3d > &rgb) override |
void | drawQuads (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4) override |
void | drawRect (double x1, double y1, double x2, double y2) override |
void | drawRectFilled (double x1, double y1, double x2, double y2) override |
void | drawStripTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override |
void | drawText (const std::string &text, double x, double y, double height, unsigned char justify) override |
void | drawTextWithDeviceHeight (const std::string &text, double x, double y, double height, unsigned char justify) override |
void | drawTriangle (double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3) override |
void | drawTriangles (const float *points, const float *normals, const float *textureOpt, const float *rgbaOpt, uint64_t numPoints, const uint32_t *indVertex, uint64_t numVertex) override |
void | drawUnitCone (IGraphics::EDetailLevel detailLevel) override |
void | drawUnitCube () override |
void | drawUnitCylinder (IGraphics::EDetailLevel detailLevel) override |
void | drawUnitDisk (IGraphics::EDetailLevel detailLevel) override |
void | drawUnitSphere (IGraphics::EDetailLevel detailLevel) override |
bool | hasDrawPolylineFilled () const override |
void | setModeDraw (IGraphics::EDrawSolidType drawSolidType) override |
uint32_t | blockTextWithModifiers (const std::string &text, const iv::ui::TextModifier &textModifier, double *widthText, double *heightTextOut) override |
void | drawBlockText (uint32_t idBlockText, double x, double y, double widthText, double heightText, unsigned char justify) override |
void | endBlockText (uint32_t *idBlockText) override |
bool | hasBlockText () const override |
uint32_t | beginBlock () override |
void | drawBlock (uint32_t idBlock) override |
void | endBlock (uint32_t idBlock) override |
bool | hasManagerBlocks () const override |
void | removeBlock (uint32_t *idBlock) override |
void | beginStencilBuffer () override |
void | endStencilBuffer () override |
void | offStencilBuffer () override |
void | onStencilBuffer () override |
void | getCoordTextCornerLeftDown (const std::string &text, double x, double y, double heightCharacter, unsigned char justify, double *xCornerLeftDown, double *yCornerLeftDown, double *widthTextOpt, double *heightTextOpt) override |
void | getSizePixelToWorld (double sizePixelX, double sizePixelY, double *sizeWorldXOpt, double *sizeWorldYOpt) override |
void | getSizeText (const std::string &text, double heightCharacter, double *widthText, double *heightText) override |
void | setBlend (bool isEnable) override |
void | setTestDepth (bool isEnable) override |
void | prvIntegrityGraphicsCairo () const |
void | prvIntegrityGraphicsCairoWithSurface () const |
Private Attributes | |
EPrvCairoType | m_cairoType |
double | m_rBackground |
double | m_gBackground |
double | m_bBackground |
std::vector< SPrvCairoLayer > | m_layers |
std::unordered_map< std::string, SCairoImageLoaded > | m_imageLoaded |
double | m_alpha |
uint64_t | m_idNewBlock |
std::vector< SPrvBlockText > | m_blockTexts |
bool | m_isCairoRef |
cairo_t * | m_cairoOpt |
PangoLayout * | m_pangoLayoutOpt |
bool | m_isStencilBufferActive |
CFontManagerCairo * | m_managerFontOpt |
bool | m_isUpdated |
cairo_surface_t * | m_cairoSurfaceOpt |
CStackTransformation * | m_transformation |
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
strongprivate |
CGraphicsCairo::CGraphicsCairo | ( | ) |
|
delete |
|
delete |
|
override |
|
private |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
void CGraphicsCairo::beginDraw | ( | double | sizeX, |
double | sizeY ) |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
static |
|
static |
|
static |
|
static |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
void CGraphicsCairo::endDraw | ( | ) |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
iv::ui::graphics::Image * CGraphicsCairo::getImage | ( | ) |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
_cairo_surface * CGraphicsCairo::getSurface | ( | ) | const |
|
nodiscardoverrideprivatevirtual |
Implements IGraphics.
|
nodiscardoverrideprivatevirtual |
Implements IGraphics.
|
nodiscardoverrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
nodiscard |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
delete |
|
delete |
bool CGraphicsCairo::operator== | ( | const CGraphicsCairo & | b | ) | const |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
private |
|
private |
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
inlineoverrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
|
overrideprivatevirtual |
Implements IGraphics.
void CGraphicsCairo::update | ( | ) |
|
overrideprivatevirtual |
Implements IGraphics.
|
staticconstexprinherited |
float CGraphicsCairo::epsilon = static_cast<float>(0.000001) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |