Shiokaze Framework
A research-oriented fluid solver for computer graphics
graphics_utility Class Reference

Class that provides various utility functions for graphics. More...

#include <graphics_utility.h>

Static Public Member Functions

template<class T >
static void draw_circle (graphics_engine &g, const T *p, double r, ge::MODE mode, unsigned num_v=20)
 Draw a circle. More...
 
template<class T >
static void draw_arrow (graphics_engine &g, const T *p0, const T *p1)
 Draw an arrow. More...
 
static void draw_wired_box (graphics_engine &g, double scale=1.0)
 Draw a wired box of a unit size. More...
 
template<class T >
static void draw_wired_box (graphics_engine &g, const T *p0, const T *p1)
 Draw a wired box. More...
 

Detailed Description

Class that provides various utility functions for graphics.

Member Function Documentation

◆ draw_arrow()

template<class T >
static void graphics_utility::draw_arrow ( graphics_engine g,
const T *  p0,
const T *  p1 
)
inlinestatic

Draw an arrow.

Parameters
[in]gGraphics engine.
[in]p0Starting point.
[in]p1End point.

◆ draw_circle()

template<class T >
static void graphics_utility::draw_circle ( graphics_engine g,
const T *  p,
double  r,
ge::MODE  mode,
unsigned  num_v = 20 
)
inlinestatic

Draw a circle.

Parameters
[in]gGraphics engine.
[in]pPointer to position.
[in]rRadius.
[in]modeDrawing mode.
[in]num_vNumber of vertices.

◆ draw_wired_box() [1/2]

template<class T >
static void graphics_utility::draw_wired_box ( graphics_engine g,
const T *  p0,
const T *  p1 
)
inlinestatic

Draw a wired box.

Parameters
[in]gGraphics engine.
[in]p0Starting point.
[in]p1End point.

◆ draw_wired_box() [2/2]

static void graphics_utility::draw_wired_box ( graphics_engine g,
double  scale = 1.0 
)
inlinestatic

Draw a wired box of a unit size.

Parameters
[in]gGraphics engine.

The documentation for this class was generated from the following file: