Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CElementsGraphics.hpp
Go to the documentation of this file.
1#ifndef LIBS_SHAPES_CELEMENTSGRAPHICS_HPP_
2#define LIBS_SHAPES_CELEMENTSGRAPHICS_HPP_
3
5#include "ui/cad/CDxf.hpp"
7
8#include <string>
9
11{
12public:
13 static CRectangleGraphics *createRectangleGradientInCenterSolid(double sizeX, double sizeY,
14 iv::types::color colorGradient);
15 static CRectangleGraphics *createRectangleGradientRoundedInCenterSolid(double sizeX, double sizeY,
16 double radiusRoundCorner,
17 iv::types::color colorGradient);
18 static CRectangleGraphics *createRectangleInCenterSolid(double sizeX, double sizeY);
19 static CRectangleGraphics *createRectangleInCenterPaddingWithTexture(double sizeX, double sizeY, double padding);
20 static CRectangleGraphics *createRectangleInCenterWithTexture(double sizeX, double sizeY);
21 static CRectangleGraphics *createRectangleRoundedInCenterSolid(double sizeX, double sizeY,
22 double radiusRoundCorner);
23 static CRectangleGraphics *createRectangleRoundedInCenterWithTexture(double sizeX, double sizeY,
24 double radiusCorner);
25 static CRectangleGraphics *createRectangleSolid(double sizeX, double sizeY, double x, double y);
26 static CRectangleGraphics *createRectangleWithTexture(double sizeX, double sizeY, double x, double y);
27
28 static void defineMaterialIfNotExist(IGraphics *graphics, const std::string &nameMaterial, iv::types::color color);
29
30 static void drawArrowRight(IGraphics *graphics, double sizeArrow);
31 static void drawArrowRight(IGraphics *graphics, double triangleHeight, double triangleWidth, double rectangleHeight,
32 double rectangleWidth);
33 static void drawArrowTriangle(IGraphics *graphics, double sizeTriangle);
34 static void drawBreakerClosed(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
35 static void drawBreakerNoValue(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
36 static void drawBreakerOpen(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
37 static void drawButton(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
38 static void drawDigital(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
39 static void drawDoubleArrow(IGraphics *graphics, double sizeArrow);
40 static void drawDoubleArrowLeft(IGraphics *graphics, double size);
41 static void drawDoubleArrowRight(IGraphics *graphics, double size);
42 static void drawFan(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
43 static void drawFanRunning(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
44 static void drawFanRunningExhaust(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
45 static void drawGenerator(const CRectangleGraphics *rectangle, iv::types::color colorStateGenerator,
46 iv::types::color colorStateRun, IGraphics *graphics);
47 static void drawLomHorizontal(bool hasID, const CRectangleGraphics *rectangle, IGraphics *graphics);
48 static void drawLomVerticalLeft(bool hasID, const CRectangleGraphics *rectangle, class IGraphics *graphics);
49 static void drawLomVerticalRight(bool hasID, const CRectangleGraphics *rectangle, IGraphics *graphics);
50 static void drawMLim(const CRectangleGraphics *rectangle, IGraphics *graphics);
51 static void drawMotor(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
52 static void drawPropeller(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
53 static void drawRtu(iv::types::color colorRtu, const CRectangleGraphics *rectangle, IGraphics *graphics);
54 static void drawShaft(const CRectangleGraphics *rectangle, iv::types::color colorState, iv::types::color colorStateUpper,
55 IGraphics *graphics);
56 static void drawTank(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics);
57 static void drawThermostatic(double sizeX, double sizeY, iv::types::color colorState, IGraphics *graphics);
58 static void drawValve(double sizeX, double sizeY, iv::types::color colorState, IGraphics *graphics);
59
60 static CDxf *readDXFResource(const std::string &nameResource);
61};
62
63#endif /* LIBS_SHAPES_CELEMENTSGRAPHICS_HPP_ */
Definition CDxf.hpp:299
Definition CElementsGraphics.hpp:11
static CRectangleGraphics * createRectangleGradientInCenterSolid(double sizeX, double sizeY, iv::types::color colorGradient)
Definition CElementsGraphics.cpp:34
static void drawLomVerticalLeft(bool hasID, const CRectangleGraphics *rectangle, class IGraphics *graphics)
Definition CElementsGraphics.cpp:463
static void drawFan(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:409
static void drawLomHorizontal(bool hasID, const CRectangleGraphics *rectangle, IGraphics *graphics)
Definition CElementsGraphics.cpp:448
static void drawBreakerNoValue(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:258
static CRectangleGraphics * createRectangleInCenterSolid(double sizeX, double sizeY)
Definition CElementsGraphics.cpp:48
static void drawArrowTriangle(IGraphics *graphics, double sizeTriangle)
Definition CElementsGraphics.cpp:226
static void drawBreakerOpen(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:289
static CRectangleGraphics * createRectangleInCenterWithTexture(double sizeX, double sizeY)
Definition CElementsGraphics.cpp:59
static CRectangleGraphics * createRectangleWithTexture(double sizeX, double sizeY, double x, double y)
Definition CElementsGraphics.cpp:83
static void drawDoubleArrow(IGraphics *graphics, double sizeArrow)
Definition CElementsGraphics.cpp:388
static void drawFanRunningExhaust(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:426
static void drawPropeller(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:509
static void defineMaterialIfNotExist(IGraphics *graphics, const std::string &nameMaterial, iv::types::color color)
Definition CElementsGraphics.cpp:88
static void drawRtu(iv::types::color colorRtu, const CRectangleGraphics *rectangle, IGraphics *graphics)
Definition CElementsGraphics.cpp:517
static void drawButton(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:309
static CRectangleGraphics * createRectangleInCenterPaddingWithTexture(double sizeX, double sizeY, double padding)
Definition CElementsGraphics.cpp:53
static void drawShaft(const CRectangleGraphics *rectangle, iv::types::color colorState, iv::types::color colorStateUpper, IGraphics *graphics)
Definition CElementsGraphics.cpp:540
static void drawValve(double sizeX, double sizeY, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:581
static void drawDigital(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:317
static void drawLomVerticalRight(bool hasID, const CRectangleGraphics *rectangle, IGraphics *graphics)
Definition CElementsGraphics.cpp:478
static CRectangleGraphics * createRectangleRoundedInCenterSolid(double sizeX, double sizeY, double radiusRoundCorner)
Definition CElementsGraphics.cpp:64
static void drawArrowRight(IGraphics *graphics, double sizeArrow)
Definition CElementsGraphics.cpp:157
static void drawGenerator(const CRectangleGraphics *rectangle, iv::types::color colorStateGenerator, iv::types::color colorStateRun, IGraphics *graphics)
Definition CElementsGraphics.cpp:436
static void drawThermostatic(double sizeX, double sizeY, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:560
static CDxf * readDXFResource(const std::string &nameResource)
Definition CElementsGraphics.cpp:598
static CRectangleGraphics * createRectangleRoundedInCenterWithTexture(double sizeX, double sizeY, double radiusCorner)
Definition CElementsGraphics.cpp:71
static void drawMotor(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:501
static void drawBreakerClosed(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:239
static CRectangleGraphics * createRectangleGradientRoundedInCenterSolid(double sizeX, double sizeY, double radiusRoundCorner, iv::types::color colorGradient)
Definition CElementsGraphics.cpp:40
static CRectangleGraphics * createRectangleSolid(double sizeX, double sizeY, double x, double y)
Definition CElementsGraphics.cpp:78
static void drawDoubleArrowRight(IGraphics *graphics, double size)
Definition CElementsGraphics.cpp:402
static void drawFanRunning(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:417
static void drawDoubleArrowLeft(IGraphics *graphics, double size)
Definition CElementsGraphics.cpp:395
static void drawMLim(const CRectangleGraphics *rectangle, IGraphics *graphics)
Definition CElementsGraphics.cpp:493
static void drawTank(const CRectangleGraphics *rectangle, iv::types::color colorState, IGraphics *graphics)
Definition CElementsGraphics.cpp:552
Definition CRectangleGraphics.hpp:10
Definition IGraphics.hpp:20
uint32_t color
Definition types.hpp:12