JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
GUIhelper.C File Reference
#include <math.h>
#include <imgui.h>
#include <imgui_internal.h>
#include <algorithm>
#include <jevois/GPU/GUIhelper.H>
#include <jevois/GPU/GUIconsole.H>
#include <jevois/GPU/GPUimage.H>
#include <jevois/Core/Module.H>
#include <jevois/GPU/GUIeditor.H>
#include <jevois/GPU/GUIserial.H>
#include <jevois/Debug/SysInfo.H>
#include <jevois/Util/Utils.H>
#include <jevois/DNN/Utils.H>
#include <jevois/Debug/PythonException.H>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <fstream>
#include <set>
Include dependency graph for GUIhelper.C:

Go to the source code of this file.

Classes

struct  TinyImGUIdemo
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define L(i, x, y, z)   for(F i=x;i<y;i+=z)
 
#define Q(y)   sin((y+t)*.03)*(1-sin(t*3)*cos(y/99+t))*9
 
#define H(p, w)   L(k,0,5,1)d->AddCircleFilled(p+V(1,-1)*w*k/8,w*(1-k/5),k<4?0xff000000+k*0x554400:-1);
 
#define J(b)   L(i,0,h,1){TinyImGUIdemo&o=G[int(i)];if(b*o.z>0)H(o.p,(o.z*.3+4)*o.w)}
 
#define O(b)   i=t+1.6+j/99;if(b*sin(i)>0)H(c+v*j+u*(cos(i)*40+Q(j)),30)
 

Typedefs

using V = ImVec2
 
using F = float
 

Functions

void drawTinyImGUIdemo (ImDrawList *d, V a, V b, V, ImVec4, F t)
 

Variables

int h
 
TinyImGUIdemo G [999]
 

Macro Definition Documentation

◆ H

#define H (   p,
 
)    L(k,0,5,1)d->AddCircleFilled(p+V(1,-1)*w*k/8,w*(1-k/5),k<4?0xff000000+k*0x554400:-1);

Definition at line 2523 of file GUIhelper.C.

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 22 of file GUIhelper.C.

◆ J

#define J (   b)    L(i,0,h,1){TinyImGUIdemo&o=G[int(i)];if(b*o.z>0)H(o.p,(o.z*.3+4)*o.w)}

Definition at line 2524 of file GUIhelper.C.

◆ L

#define L (   i,
  x,
  y,
 
)    for(F i=x;i<y;i+=z)

Definition at line 2521 of file GUIhelper.C.

◆ O

#define O (   b)    i=t+1.6+j/99;if(b*sin(i)>0)H(c+v*j+u*(cos(i)*40+Q(j)),30)

Definition at line 2525 of file GUIhelper.C.

◆ Q

#define Q (   y)    sin((y+t)*.03)*(1-sin(t*3)*cos(y/99+t))*9

Definition at line 2522 of file GUIhelper.C.

Typedef Documentation

◆ F

using F = float

Definition at line 2520 of file GUIhelper.C.

◆ V

using V = ImVec2

Definition at line 2520 of file GUIhelper.C.

Function Documentation

◆ drawTinyImGUIdemo()

void drawTinyImGUIdemo ( ImDrawList *  d,
V  a,
V  b,
V  ,
ImVec4  ,
F  t 
)

Definition at line 2526 of file GUIhelper.C.

References G, h, J, L, O, and Q.

Referenced by jevois::GUIhelper::drawTweaks().

Variable Documentation

◆ G

◆ h