ihhub / penguinV

Computer vision library with focus on heterogeneous systems
Other
118 stars 90 forks source link

Add text display in Ui Window classes #313

Open ihhub opened 5 years ago

ihhub commented 5 years ago

We have 3 classes for UI Window: src/ui/ui.h - base class src/ui/qt/qt_ui.h - QT API based class src/ui/win/win_ui.h - Win32 API based class

Currently classes support drawings of points and lines, we need to add functions to support drawings of text as well. The font could be fixed.

This issue relates to #104

fullset commented 4 years ago

@ihhub, tell please, what is your vision.

There are could be function like drawText( std::string & text );

Do we need something else? We could have possibilities to specify position, color and so on: drawText( std::string & text, int x, int y, const PaintColor& color );

ihhub commented 4 years ago

Hi @fullset , we have to have position of text and optionally color. Your second suggestion is correct. I'll soon take a look into your pending pull request. I was very busy these days but I'm trying to clear everything very soon.

fullset commented 4 years ago

@ihhub, no problem.

I'm going to take this issue but I have no possibility to make Win32 implementation so I think I'll make a work in progress PR during this week.

ihhub commented 4 years ago

It's okay to do not implement win32. I can do it in my free time. I have Windows machine.