KolibriLib
Loading...
Searching...
No Matches
KolibriLib::graphic Namespace Reference

различные графические примитивы More...

Functions

template<class POINTTYPE >
void DrawLine (const point< POINTTYPE > &a, const point< POINTTYPE > &b, const ksys_color_t color=OS::sys_color_table.work_graph)
 Нарисовать линию
 
template<class POINTTYPE >
void DrawPixel (const point< POINTTYPE > &position, const ksys_color_t color=OS::sys_color_table.work_text)
 Закрасить пиксель точку
 
void DrawCircle (const point< int > &coord, const unsigned &Radius, const unsigned &detalization=36, ksys_color_t color=OS::sys_color_table.work_graph)
 Нарисовать окружность
 
template<class POINTTYPE >
void DrawRectangleFill (const point< POINTTYPE > &position, const point< POINTTYPE > &size, const ksys_color_t &color=OS::sys_color_table.work_graph)
 Нарисовать закрашенный прямоугольник
 
void DrawCircleFill (const point< int > &coord, const unsigned &Radius, const unsigned &detalization=36, const ksys_color_t &color=OS::sys_color_table.work_graph)
 Нарисовать круг(закрашенный)
 
void DrawPoint (const point< unsigned > &position, const unsigned &Radius, const ksys_color_t &color=OS::sys_color_table.work_graph, bool fill=false)
 Нарисовать точку
 
void DrawRectangleLines (point< unsigned > a, point< unsigned > b, ksys_color_t color=OS::sys_color_table.work_graph)
 Нарисовать прямоугольник
 
void DrawTriangle (point< unsigned > a, point< unsigned > b, point< unsigned > c, ksys_color_t color=OS::sys_color_table.work_graph)
 Нарисовать треугольник
 
void DrawPoint (const point< int > &position, const unsigned &Radius, const ksys_color_t &color, bool fill)
 

Detailed Description

различные графические примитивы

Function Documentation

◆ DrawCircle()

void KolibriLib::graphic::DrawCircle ( const point< int > & coord,
const unsigned & Radius,
const unsigned & detalization = 36,
ksys_color_t color = OS::sys_color_table.work_graph )

Нарисовать окружность

Parameters
coordКоординаты центра
Radiusрадиус окружности
detalizationДетализация прорисовки окружности, кол-во отрезков состовляющих окружность

рисуется с помошью линий

Parameters
colorЦвет

◆ DrawCircleFill()

void KolibriLib::graphic::DrawCircleFill ( const point< int > & coord,
const unsigned & Radius,
const unsigned & detalization = 36,
const ksys_color_t & color = OS::sys_color_table.work_graph )

Нарисовать круг(закрашенный)

Parameters
coordКоординаты центра
RadiusРадиус круга
colorЦвет

◆ DrawLine()

template<class POINTTYPE >
void KolibriLib::graphic::DrawLine ( const point< POINTTYPE > & a,
const point< POINTTYPE > & b,
const ksys_color_t color = OS::sys_color_table.work_graph )
inline

Нарисовать линию

Parameters
aточка первая
bточка вторая

◆ DrawPixel()

template<class POINTTYPE >
void KolibriLib::graphic::DrawPixel ( const point< POINTTYPE > & position,
const ksys_color_t color = OS::sys_color_table.work_text )
inline

Закрасить пиксель точку

Parameters
positionкоординаты
colorЦвет

◆ DrawPoint()

void KolibriLib::graphic::DrawPoint ( const point< unsigned > & position,
const unsigned & Radius,
const ksys_color_t & color = OS::sys_color_table.work_graph,
bool fill = false )

Нарисовать точку

Parameters
positionКоординаты
sizeРадиус точки в рx
colorЦвет
fillЗакрашенная/Выколотая точка

изменяет переменную sys_color_table

◆ DrawRectangleFill()

template<class POINTTYPE >
void KolibriLib::graphic::DrawRectangleFill ( const point< POINTTYPE > & position,
const point< POINTTYPE > & size,
const ksys_color_t & color = OS::sys_color_table.work_graph )

Нарисовать закрашенный прямоугольник

Parameters
positionпозиция левого верхнего угла
sizeРазмеры
colorЦвет

◆ DrawRectangleLines()

void KolibriLib::graphic::DrawRectangleLines ( point< unsigned > a,
point< unsigned > b,
ksys_color_t color = OS::sys_color_table.work_graph )

Нарисовать прямоугольник

Parameters
aТочка в левом верхнем углу
bТочка в правом нижнем углу

◆ DrawTriangle()

void KolibriLib::graphic::DrawTriangle ( point< unsigned > a,
point< unsigned > b,
point< unsigned > c,
ksys_color_t color = OS::sys_color_table.work_graph )
inline

Нарисовать треугольник

Parameters
aпервая точка
bвторая точка
cтретья точка
colorцвет линий