OpenCVGUI
Classes | Descriptions |
---|---|
class OpenCVGUI::OGUI3D |
|
class OpenCVGUI::OGUI3DCamera |
|
class OpenCVGUI::OGUIArea |
|
class OpenCVGUI::OGUIButton |
|
class OpenCVGUI::OGUICheckBox |
|
class OpenCVGUI::OGUICVWindow |
|
class OpenCVGUI::OGUIFile |
|
class OpenCVGUI::OGUIFileBrowser |
|
class OpenCVGUI::OGUIFormArea |
|
class OpenCVGUI::OGUIImage |
|
class OpenCVGUI::OGUIImageArea |
|
class OpenCVGUI::OGUILayout |
|
class OpenCVGUI::OGUIPlotArea |
|
class OpenCVGUI::OGUIRadioButtons |
|
class OpenCVGUI::OGUISlider |
|
class OpenCVGUI::OGUITextInput |
|
class OpenCVGUI::OGUITitle |
|
class OpenCVGUI::OGUIWidget |
|
class OpenCVGUI::OGUIWindow |
Members | Descriptions |
---|---|
public OGUICVWindow * namedWindow(const char * title,int width,int height) |
|
public void app_run(std::function< void()> process_function) |
|
public int init() |
public
OGUICVWindow
* namedWindow(const char * title,int width,int height)
Create new Computer Vision Template Window with lateral form and stacked areas
{const
char*} title of window to create
{int}
width of window, 1024 by default
{int}
height of window, 768 by default
{OGUICVWindow*} OGUICVWindow created
public void app_run(std::function< void()> process_function)
Start main loop of UI and processing stuff as new thread.
process_function
function for processing computer vision thread.public int init()
OpenCVGUI::OGUI3D
class OpenCVGUI::OGUI3D
: public OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public GLuint vao |
|
public GLuint vbo |
|
public GLuint ibo |
|
public GLuint shaderProgram |
|
public GLuint MatrixID |
|
public GLuint position_attribute |
|
public glm::mat4 MVP |
|
public Mat data |
|
public int dataLength |
|
public int dataLengthIBO |
|
public OGUI3DCamera camera |
|
public int lastMouseX |
|
public int lastMouseY |
|
public bool isBufferCreated |
|
public virtual void draw(int x,int y,int width,int height) |
|
public virtual void draw3d(int x,int y,int width,int height) |
|
public virtual void updateScrollStatus(double xoffset,double yoffset) |
|
public void replot(void * data) |
|
public OGUI3D( OGUIWindow * window,std::string title,void * data) |
|
public void CreateVertexBuffer() |
public GLuint vao
public GLuint vbo
public GLuint ibo
public GLuint shaderProgram
public GLuint MatrixID
public GLuint position_attribute
public glm::mat4 MVP
public Mat data
public int dataLength
public int dataLengthIBO
public
OGUI3DCamera
camera
public int lastMouseX
public int lastMouseY
public bool isBufferCreated
public virtual void draw(int x,int y,int width,int height)
public virtual void draw3d(int x,int y,int width,int height)
public virtual void updateScrollStatus(double xoffset,double yoffset)
public void replot(void * data)
public OGUI3D(
OGUIWindow
* window,std::string title,void * data)
public void CreateVertexBuffer()
OpenCVGUI::OGUI3DCamera
Members | Descriptions |
---|---|
public glm::mat4 Projection |
|
public glm::mat4 View |
|
public glm::mat4 Model |
|
public glm::mat4 MVP |
|
public float x |
|
public float y |
|
public float z |
|
public float phi |
|
public float theta |
|
public float radius |
|
public OGUI3DCamera() |
|
public glm::mat4 mouseEvent(int dx,int dy) |
|
public glm::mat4 getMVP() |
|
public glm::mat4 setRadius(float r) |
public glm::mat4 Projection
public glm::mat4 View
public glm::mat4 Model
public glm::mat4 MVP
public float x
public float y
public float z
public float phi
public float theta
public float radius
public OGUI3DCamera()
public glm::mat4 mouseEvent(int dx,int dy)
public glm::mat4 getMVP()
public glm::mat4 setRadius(float r)
OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public int x |
|
public int y |
|
public int width |
|
public int height |
|
public int r |
|
public int g |
|
public int b |
|
public std::string title |
|
public int type |
|
public bool isMaximized |
|
public bool _show_title_bar |
|
public OGUIWindow * window |
|
public OGUILayout * layout |
|
public OGUIArea( OGUIWindow * window) |
|
public virtual void draw(int x,int y,int width,int height) |
|
public virtual void draw3d(int x,int y,int width,int height) |
|
public virtual void updateScrollStatus(double xoffset,double yoffset) |
|
public void drawTitle() |
|
public bool isMouseIn() |
public int x
public int y
public int width
public int height
public int r
public int g
public int b
public std::string title
public int type
public bool isMaximized
public bool _show_title_bar
public
OGUIWindow
* window
public
OGUILayout
* layout
-type OGUILayout
public OGUIArea(
OGUIWindow
* window)
public virtual void draw(int x,int y,int width,int height)
public virtual void draw3d(int x,int y,int width,int height)
public virtual void updateScrollStatus(double xoffset,double yoffset)
public void drawTitle()
public bool isMouseIn()
OpenCVGUI::OGUIButton
class OpenCVGUI::OGUIButton
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw(int x,int y,int width) |
|
public OGUIButton(const char * title) |
|
public void setCallBack(std::function< void()> func) |
|
public void changeTitle(const char * title) |
public virtual void draw(int x,int y,int width)
public OGUIButton(const char * title)
public void setCallBack(std::function< void()> func)
public void changeTitle(const char * title)
OpenCVGUI::OGUICheckBox
class OpenCVGUI::OGUICheckBox
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw() |
|
public OGUICheckBox() |
public virtual void draw()
public OGUICheckBox()
OpenCVGUI::OGUICVWindow
class OpenCVGUI::OGUICVWindow
: public OpenCVGUI::OGUIWindow
Comptuer Vision template window
Members | Descriptions |
---|---|
public std::vector< OGUIArea * > areas_showing |
|
public std::vector< OGUILayout * > layout |
|
public OGUIFormArea * formArea |
|
public OGUICVWindow(int width,int height,const char * title,int layoutOrientation) |
Create new Computer Vision Template Window with lateral form and stacked areas. |
public void imshow(string area_title,void * img) |
|
public bool setImShowMouseClickCallBack(string area_title,std::function< void(int, int)> func) |
|
public OGUIArea * findAreaByTitle(string title) |
|
public void addFormWidget( OGUIWidget * widget) |
|
public void plot3D(string area_title,void * data) |
|
public void plot2D(string area_title,void * data,std::vector< string > labels,float xstep,int plot_type) |
public std::vector<
OGUIArea
* > areas_showing
public std::vector<
OGUILayout
* > layout
public
OGUIFormArea
* formArea
public OGUICVWindow(int width,int height,const char * title,int layoutOrientation)
Create new Computer Vision Template Window with lateral form and stacked areas.
This class allow create easy computer vision purposes windows where each new area created is stacked. There are similar functions than OpenCV to show images (imshow) and more missing areas for plotting and forms.
{const
char*} title of window to create
{int}
width of window, 1024 by default
{int}
height of window, 768 by default
{OGUICVWindow*} OGUICVWindow created
public void imshow(string area_title,void * img)
Add new image to window with title
{string}
area_title image are title
{Mat}
image opencv mat
public bool setImShowMouseClickCallBack(string area_title,std::function< void(int, int)> func)
Add callback for mouse interaction to specific image area
{string}
area title identifier
{function(int
int)}
callback function
{bool} true if setup correctly
public
OGUIArea
* findAreaByTitle(string title)
Find an area by a specific title
{string}
title of area to search{OGUIArea*} pointer to area that is found. Null in other case
public void addFormWidget(
OGUIWidget
* widget)
public void plot3D(string area_title,void * data)
public void plot2D(string area_title,void * data,std::vector< string > labels,float xstep,int plot_type)
OpenCVGUI::OGUIFile
Members | Descriptions |
---|---|
public string _file_name |
|
public string _path |
|
public string _ext |
|
public int _is_dir |
|
public double _size |
|
public void * _window |
|
public OGUIFile(void * window,const char * file_name,const char * path,int isdir,const char * ext,double size) |
|
public bool draw(void * vvg,int x,int y,int mouse_x,int mouse_y) |
|
public bool isImage() |
|
public unsigned char * getPreview() |
public string _file_name
public string _path
public string _ext
public int _is_dir
public double _size
public void * _window
public OGUIFile(void * window,const char * file_name,const char * path,int isdir,const char * ext,double size)
public bool draw(void * vvg,int x,int y,int mouse_x,int mouse_y)
public bool isImage()
public unsigned char * getPreview()
OpenCVGUI::OGUIFileBrowser
Members | Descriptions |
---|---|
public OGUIFileBrowser( OGUIWindow * window) |
|
public string open(string path,std::vector< string > filter) |
|
public void draw() |
public OGUIFileBrowser(
OGUIWindow
* window)
public string open(string path,std::vector< string > filter)
public void draw()
OpenCVGUI::OGUIFormArea
class OpenCVGUI::OGUIFormArea
: public OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public std::vector< OGUIWidget * > widgets |
|
public virtual void draw(int x,int y,int width,int height) |
|
public OGUIFormArea( OGUIWindow * window) |
|
public void addWidget( OGUIWidget * widget) |
public std::vector<
OGUIWidget
* > widgets
-type OGUIWidget
public virtual void draw(int x,int y,int width,int height)
public OGUIFormArea(
OGUIWindow
* window)
public void addWidget(
OGUIWidget
* widget)
OpenCVGUI::OGUIImage
class OpenCVGUI::OGUIImage
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw() |
|
public OGUIImage() |
public virtual void draw()
public OGUIImage()
OpenCVGUI::OGUIImageArea
class OpenCVGUI::OGUIImageArea
: public OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public virtual void draw(int x,int y,int width,int height) |
|
public virtual void updateScrollStatus(double xoffset,double yoffset) |
|
public OGUIImageArea( OGUIWindow * window,string title) |
|
public void setImage(Mat * img) |
|
public void setMouseClickCallBack(std::function< void(int, int)> func) |
|
public void calcHistogram() |
public virtual void draw(int x,int y,int width,int height)
public virtual void updateScrollStatus(double xoffset,double yoffset)
public OGUIImageArea(
OGUIWindow
* window,string title)
public void setImage(Mat * img)
public void setMouseClickCallBack(std::function< void(int, int)> func)
public void calcHistogram()
OpenCVGUI::OGUILayout
class OpenCVGUI::OGUILayout
: public OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public std::vector< OGUIArea * > areas |
|
public virtual void draw(int x,int y,int width,int height) |
|
public virtual void draw3d(int x,int y,int width,int height) |
|
public virtual void updateScrollStatus(double xoffset,double yoffset) |
|
public OGUILayout( OGUIWindow * window,int orientation) |
|
public void addArea( OGUIArea * area) |
|
public void setLayoutSizes(std::vector< float > sizes) |
public std::vector<
OGUIArea
* > areas
-type OGUIArea
public virtual void draw(int x,int y,int width,int height)
public virtual void draw3d(int x,int y,int width,int height)
public virtual void updateScrollStatus(double xoffset,double yoffset)
public OGUILayout(
OGUIWindow
* window,int orientation)
public void addArea(
OGUIArea
* area)
public void setLayoutSizes(std::vector< float > sizes)
OpenCVGUI::OGUIPlotArea
class OpenCVGUI::OGUIPlotArea
: public OpenCVGUI::OGUIArea
Members | Descriptions |
---|---|
public std::vector< int > color_scheme |
|
public virtual void draw(int x,int y,int width,int height) |
|
public OGUIPlotArea( OGUIWindow * window,std::string title,void * data,std::vector< std::string > labels,float xstep,int plot_type) |
|
public void replot(void * data,std::vector< std::string > labels,float xstep) |
|
public void setYScale(bool auto_scale,double min_value,double max_value) |
public std::vector< int > color_scheme
public virtual void draw(int x,int y,int width,int height)
public OGUIPlotArea(
OGUIWindow
* window,std::string title,void * data,std::vector< std::string > labels,float xstep,int plot_type)
public void replot(void * data,std::vector< std::string > labels,float xstep)
public void setYScale(bool auto_scale,double min_value,double max_value)
OpenCVGUI::OGUIRadioButtons
class OpenCVGUI::OGUIRadioButtons
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw(int x,int y,int width) |
|
public OGUIRadioButtons(const char * title,std::vector< std::string > options,int default_selected) |
|
public void setCallBack(std::function< void(int)> func) |
public virtual void draw(int x,int y,int width)
public OGUIRadioButtons(const char * title,std::vector< std::string > options,int default_selected)
public void setCallBack(std::function< void(int)> func)
OpenCVGUI::OGUISlider
class OpenCVGUI::OGUISlider
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw(int x,int y,int width) |
|
public OGUISlider(const char * title,double min,double max,double value) |
|
public void setCallBack(std::function< void(double)> func) |
|
public void setValue(double v) |
public virtual void draw(int x,int y,int width)
public OGUISlider(const char * title,double min,double max,double value)
public void setCallBack(std::function< void(double)> func)
public void setValue(double v)
OpenCVGUI::OGUITextInput
class OpenCVGUI::OGUITextInput
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public string value |
|
public bool is_focus_ |
|
public int animation_alpha_ |
|
public const char * label |
|
public virtual void draw(int x,int y,int w) |
|
public virtual void characterCallback(unsigned int key) |
|
public virtual void keyCallback(int key,int scancode,int action,int mods) |
|
public OGUITextInput(const char * label) |
public string value
public bool is_focus_
public int animation_alpha_
public const char * label
public virtual void draw(int x,int y,int w)
public virtual void characterCallback(unsigned int key)
public virtual void keyCallback(int key,int scancode,int action,int mods)
public OGUITextInput(const char * label)
OpenCVGUI::OGUITitle
class OpenCVGUI::OGUITitle
: public OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public virtual void draw() |
|
public OGUITitle() |
public virtual void draw()
public OGUITitle()
OpenCVGUI::OGUIWidget
Members | Descriptions |
---|---|
public OGUIFormArea * area |
|
public int height |
|
public virtual void draw(int x,int y,int widht) |
|
public virtual void characterCallback(unsigned int key) |
|
public virtual void keyCallback(int key,int scancode,int action,int mods) |
public
OGUIFormArea
* area
public int height
public virtual void draw(int x,int y,int widht)
public virtual void characterCallback(unsigned int key)
public virtual void keyCallback(int key,int scancode,int action,int mods)
OpenCVGUI::OGUIWindow
Members | Descriptions |
---|---|
public void * glfw_window |
|
public void * vg |
|
public double mouse_x |
|
public double mouse_y |
|
public int mouse_state |
|
public int key_pressed |
|
public int actual_cursor_type |
|
public int mouse_left_state |
|
public std::vector< void * > mouse_cursors_ |
|
public OGUIWindow(int width,int height,const char * title,int layoutOrientation,bool fullScreen) |
|
public ~OGUIWindow() |
|
public void draw() |
|
public bool update() |
|
public int init(bool fullScreen) |
|
public void addArea( OGUIArea * area) |
|
public void setCursor(int cursor_type) |
|
public void drawCursor() |
|
public OGUILayout * getMainLayout() |
|
public void setKeyFocus( OGUIWidget * widget) |
|
public OGUIWidget * getKeyFocusWidget() |
|
public int getWindowHeight() |
|
public int getWindowWidth() |
|
public void updatePerfGraph() |
|
public void showPerfGraph(bool show) |
|
public void setExternal2DDraw(std::function< void(void *context)> func) |
|
public int popup(string title,string text,int type) |
Popups. |
public string openFileBrowser(string path,std::vector< string > filter) |
File browser. |
public void close() |
|
public int getStatus() |
|
public void maximizeArea( OGUIArea * area) |
public void * glfw_window
public void * vg
public double mouse_x
public double mouse_y
public int mouse_state
public int key_pressed
public int actual_cursor_type
public int mouse_left_state
public std::vector< void * > mouse_cursors_
public OGUIWindow(int width,int height,const char * title,int layoutOrientation,bool fullScreen)
public ~OGUIWindow()
public void draw()
public bool update()
public int init(bool fullScreen)
public void addArea(
OGUIArea
* area)
public void setCursor(int cursor_type)
public void drawCursor()
public
OGUILayout
* getMainLayout()
public void setKeyFocus(
OGUIWidget
* widget)
public
OGUIWidget
* getKeyFocusWidget()
public int getWindowHeight()
public int getWindowWidth()
public void updatePerfGraph()
public void showPerfGraph(bool show)
public void setExternal2DDraw(std::function< void(void *context)> func)
public int popup(string title,string text,int type)
Popups.
public string openFileBrowser(string path,std::vector< string > filter)
File browser.
public void close()
public int getStatus()
public void maximizeArea(
OGUIArea
* area)
GPUtimer
Members | Descriptions |
---|---|
public int supported |
|
public int cur |
|
public int ret |
|
public unsigned int queries |
public int supported
public int cur
public int ret
public unsigned int queries
PerfGraph
Members | Descriptions |
---|---|
public int style |
|
public char name |
|
public float values |
|
public int head |
public int style
public char name
public float values
public int head