Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CDrawShapes.cpp File Reference
#include "CDrawShapes.hpp"
#include "containers/utils.hpp"
#include "core/CStringTools.hpp"
#include "core/Timestamp.hpp"
#include "core/color.hpp"
#include "math/CGeometry.hpp"
#include "math/CPolylines.hpp"
#include "math/utils.hpp"
#include "ui/graphics/CGraphicsRect.hpp"
#include "ui/shapes/CShapesTools.hpp"
#include "utils/Calendar.hpp"
#include <cmath>
Include dependency graph for CDrawShapes.cpp:

Functions

static void prvCircleFilled (double radius, iv::types::color rgbCenter, iv::types::color rgbPerimeter, std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &pointsCircle, std::vector< iv::math::geometry::Point3d > &colorsOut)
 
static void prvDrawFanFilled (const std::vector< iv::math::geometry::Point2d > &points, const std::vector< iv::math::geometry::Point3d > &colorsOpt, IGraphics *graphics)
 
static void prvDrawPolylinesWithInterpolation (const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &points, const CInterpolationColor &interpolationColors, IGraphics *graphics)
 
static void prvDrawRectangleFilledCentredInOrigin (double sizeX, double sizeY, iv::types::color rgbFilled, class IGraphics *graphics)
 
static void prvDrawBorderLeftTop (double width, double height, class IGraphics *graphics)
 
static std::vector< iv::math::geometry::Point2dprvMixToStripTriangle (const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &pointsInteriors, uint32_t rgbColorInterior, const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > &pointsExteriors, uint32_t rgbColorExterior, std::vector< iv::math::geometry::Point3d > &rgbOut)
 
static void prvDrawStripFilled (const std::vector< iv::math::geometry::Point2d > &points, const std::vector< iv::math::geometry::Point3d > &colors, class IGraphics *graphics)
 
static void prvDrawLegend (const std::vector< std::string > &names, const std::vector< uint32_t > &colors, double squareSize, double marginBetweenText, IGraphics *graphics)
 
static void prvGetLimitsLegend (const std::vector< std::string > &names, const std::vector< uint32_t > &colors, double squareSize, double marginBetweenText, double *xMaxLegend, double *yMaxLegend, double *xMinLegend, double *yMinLegend, IGraphics *graphics)
 
static void prvDrawLineRef (double sizeLineRef, bool isGridHorizontalActivated, double ref, double min, double axis, double max, bool isVertical, iv::types::color color, class IGraphics *graphics)
 
static void prvDrawReferenceLines (double valueMin, bool isGridActivated, double multiple, double valueMaxMin, double min, double axis, double max, bool isVertical, double sizeLineRef, iv::types::color color, class IGraphics *graphics)
 
static void prvDrawReferenceLinesX (bool isGridVerticalActivated, double multipleX, double xMin, double xAxis, double xMax, double yMin, double yAxis, double yMax, bool isVertical, double sizeLineRefX, double sizeLineRefY, IGraphics *graphics)
 
static void prvDrawNumberRef (const std::string &valueText, double textHeight, double sizeLineRef, double ref, double axis, bool isVertical, unsigned char justify, iv::types::color textColor, class IGraphics *graphics)
 
static void prvDrawReferenceNumbers (double valueMin, double axis, double otherAxis, uint16_t numDecimals, double multiple, double valueMaxMin, double multiplier, double textHeight, bool isVertical, double sizeLineRef, unsigned char justify, enum CDrawShapes::EValueAxisType typeValueAxis, uint64_t moveText, iv::types::color textColor, class IGraphics *graphics)
 
static void prvDrawTextsReferenceX (const std::string &nameUnitX, uint16_t numDecimalsX, double multipleX, double xMin, double xAxis, double xMax, double yAxis, double textHeight, bool isVertical, double sizeLineRefX, double sizeLineRefY, enum CDrawShapes::EValueAxisType valueAxisX, uint64_t moveText, class IGraphics *graphics)
 
static void prvDrawReferenceLinesY (bool isGridHorizontalActivated, double multipleY, double xMin, double xAxis, double xMax, double yMin, double yAxis, double yMax, bool isVertical, double sizeLineRefX, double sizeLineRefY, iv::types::color color, class IGraphics *graphics, double moveAxisY)
 
static void prvDrawTextsReferenceY (bool isDigital, const std::string &nameUnitY, uint16_t numDecimalsY, double multipleY, double xAxis, double yMin, double yAxis, double yMax, double multiplier, double textHeight, bool isVertical, double sizeLineRefX, double sizeLineRefY, double moveTextY, iv::types::color textColor, class IGraphics *graphics, double moveAxisY, bool multipleCurves)
 

Variables

static constexpr uint64_t kPrvNumPoints {64}
 
static constexpr uint64_t kPrvNumPointsInCircle {64}
 
static constexpr float kPrvGridWidth {0.05}
 
static constexpr float kPrvAxisWidth {2.5}
 

Function Documentation

◆ prvCircleFilled()

static void prvCircleFilled ( double radius,
iv::types::color rgbCenter,
iv::types::color rgbPerimeter,
std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & pointsCircle,
std::vector< iv::math::geometry::Point3d > & colorsOut )
static

◆ prvDrawBorderLeftTop()

static void prvDrawBorderLeftTop ( double width,
double height,
class IGraphics * graphics )
static

◆ prvDrawFanFilled()

static void prvDrawFanFilled ( const std::vector< iv::math::geometry::Point2d > & points,
const std::vector< iv::math::geometry::Point3d > & colorsOpt,
IGraphics * graphics )
static

◆ prvDrawLegend()

static void prvDrawLegend ( const std::vector< std::string > & names,
const std::vector< uint32_t > & colors,
double squareSize,
double marginBetweenText,
IGraphics * graphics )
static

◆ prvDrawLineRef()

static void prvDrawLineRef ( double sizeLineRef,
bool isGridHorizontalActivated,
double ref,
double min,
double axis,
double max,
bool isVertical,
iv::types::color color,
class IGraphics * graphics )
static

◆ prvDrawNumberRef()

static void prvDrawNumberRef ( const std::string & valueText,
double textHeight,
double sizeLineRef,
double ref,
double axis,
bool isVertical,
unsigned char justify,
iv::types::color textColor,
class IGraphics * graphics )
static

◆ prvDrawPolylinesWithInterpolation()

static void prvDrawPolylinesWithInterpolation ( const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & points,
const CInterpolationColor & interpolationColors,
IGraphics * graphics )
static

◆ prvDrawRectangleFilledCentredInOrigin()

static void prvDrawRectangleFilledCentredInOrigin ( double sizeX,
double sizeY,
iv::types::color rgbFilled,
class IGraphics * graphics )
static

◆ prvDrawReferenceLines()

static void prvDrawReferenceLines ( double valueMin,
bool isGridActivated,
double multiple,
double valueMaxMin,
double min,
double axis,
double max,
bool isVertical,
double sizeLineRef,
iv::types::color color,
class IGraphics * graphics )
static

◆ prvDrawReferenceLinesX()

static void prvDrawReferenceLinesX ( bool isGridVerticalActivated,
double multipleX,
double xMin,
double xAxis,
double xMax,
double yMin,
double yAxis,
double yMax,
bool isVertical,
double sizeLineRefX,
double sizeLineRefY,
IGraphics * graphics )
static

◆ prvDrawReferenceLinesY()

static void prvDrawReferenceLinesY ( bool isGridHorizontalActivated,
double multipleY,
double xMin,
double xAxis,
double xMax,
double yMin,
double yAxis,
double yMax,
bool isVertical,
double sizeLineRefX,
double sizeLineRefY,
iv::types::color color,
class IGraphics * graphics,
double moveAxisY )
static

◆ prvDrawReferenceNumbers()

static void prvDrawReferenceNumbers ( double valueMin,
double axis,
double otherAxis,
uint16_t numDecimals,
double multiple,
double valueMaxMin,
double multiplier,
double textHeight,
bool isVertical,
double sizeLineRef,
unsigned char justify,
enum CDrawShapes::EValueAxisType typeValueAxis,
uint64_t moveText,
iv::types::color textColor,
class IGraphics * graphics )
static

◆ prvDrawStripFilled()

static void prvDrawStripFilled ( const std::vector< iv::math::geometry::Point2d > & points,
const std::vector< iv::math::geometry::Point3d > & colors,
class IGraphics * graphics )
static

◆ prvDrawTextsReferenceX()

static void prvDrawTextsReferenceX ( const std::string & nameUnitX,
uint16_t numDecimalsX,
double multipleX,
double xMin,
double xAxis,
double xMax,
double yAxis,
double textHeight,
bool isVertical,
double sizeLineRefX,
double sizeLineRefY,
enum CDrawShapes::EValueAxisType valueAxisX,
uint64_t moveText,
class IGraphics * graphics )
static

◆ prvDrawTextsReferenceY()

static void prvDrawTextsReferenceY ( bool isDigital,
const std::string & nameUnitY,
uint16_t numDecimalsY,
double multipleY,
double xAxis,
double yMin,
double yAxis,
double yMax,
double multiplier,
double textHeight,
bool isVertical,
double sizeLineRefX,
double sizeLineRefY,
double moveTextY,
iv::types::color textColor,
class IGraphics * graphics,
double moveAxisY,
bool multipleCurves )
static

◆ prvGetLimitsLegend()

static void prvGetLimitsLegend ( const std::vector< std::string > & names,
const std::vector< uint32_t > & colors,
double squareSize,
double marginBetweenText,
double * xMaxLegend,
double * yMaxLegend,
double * xMinLegend,
double * yMinLegend,
IGraphics * graphics )
static

◆ prvMixToStripTriangle()

static std::vector< iv::math::geometry::Point2d > prvMixToStripTriangle ( const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & pointsInteriors,
uint32_t rgbColorInterior,
const std::shared_ptr< std::vector< iv::math::geometry::Point2d > > & pointsExteriors,
uint32_t rgbColorExterior,
std::vector< iv::math::geometry::Point3d > & rgbOut )
static

Variable Documentation

◆ kPrvAxisWidth

float kPrvAxisWidth {2.5}
staticconstexpr

◆ kPrvGridWidth

float kPrvGridWidth {0.05}
staticconstexpr

◆ kPrvNumPoints

uint64_t kPrvNumPoints {64}
staticconstexpr

◆ kPrvNumPointsInCircle

uint64_t kPrvNumPointsInCircle {64}
staticconstexpr