JeVois  1.16
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
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/Debug/SysInfo.H>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <fstream>
#include <set>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
Include dependency graph for GUIhelper.C:

Go to the source code of this file.

Classes

struct  E
 

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){E&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 FX (ImDrawList *d, V a, V b, V, ImVec4, F t)
 

Variables

int h
 
E 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 2153 of file GUIhelper.C.

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 23 of file GUIhelper.C.

◆ J

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

Definition at line 2154 of file GUIhelper.C.

◆ L

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

Definition at line 2151 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 2155 of file GUIhelper.C.

◆ Q

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

Definition at line 2152 of file GUIhelper.C.

Typedef Documentation

◆ F

using F = float

Definition at line 2150 of file GUIhelper.C.

◆ V

using V = ImVec2

Definition at line 2150 of file GUIhelper.C.

Function Documentation

◆ FX()

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

Definition at line 2156 of file GUIhelper.C.

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

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

Variable Documentation

◆ G

E G[999]

◆ h