dune-grid  2.4.1
Macros | Functions | Variables
partitiondisplay.cc File Reference
#include <cassert>
#include "grapewrapper.hh"

Macros

#define __GRAPE_PARTITIONDISPLAY_HH_
 
#define NUM_OF_COLORS   32
 

Functions

static int hm3_partition_draw_element (HELEMENT3D *, HM3_GENERAL *, void *, void *)
 
static int hm3_simpl_projection (HELEMENT3D *, HM3_GENERAL *, void *, void *)
 
static int hm3_simpl_test_if_proceed (HELEMENT3D *, HM3_GENERAL *, void *)
 
GENMESHnD * genmesh3d_switch_part_light_model_on_off ()
 
GENMESHnD * genmesh3d_switch_part_diagnostic_on_off ()
 
GENMESHnD * genmesh3d_switch_part_displaybar_on_off ()
 
static void set_colors (int currProcs)
 
static void get_graphicdevice ()
 
static void setThread (int t)
 
void initColorBarDisp ()
 
static void colorbar_display (int nProcs)
 
static void hsv_to_rgb (VEC3 rgb, VEC3 hsv)
 
GENMESHnD * genmesh3d_partition_disp ()
 
void initPartitionDisp (int mp)
 

Variables

static double shrink_size = 0.8
 
static double color_intensity = .6
 
static int light_on = TRUE
 
static int bar_on = TRUE
 
static int diag_on = FALSE
 
static VEC3 color [NUM_OF_COLORS]
 
static BUTTON * light_ctl = NULL
 
static BUTTON * bar_ctl = NULL
 
static BUTTON * diagnostic_ctl = NULL
 
static int last_element
 
static int last_partition
 
static int max_partition = 1
 
static int thread = 0
 
static SUPROP_DEV suprop
 
static int * globalNumberOfElements = 0
 
static double globalTime = 0.0
 
static double maxnoElements = 8000000
 
static double maxTime = 200
 
static int * globalLastStep = 0
 
static GRAPHICDEVICE * dev = 0
 
static double colorbarHeight = 1.8
 
static double colorbarWidth = 0.07
 
static double colorbarBoundingScale = 0.1
 
static double colorbarX = -0.75
 
static double colorbarY = -0.9
 
static double colorbarZ = 0.9
 
static void(* patch_normal )(const double *)
 
static void(*)(*) patch_color (const double *)
 
static void(*)(*)(*) patch_vertex (const double *)
 
static void(*)(*)(*)(*) begin_patch ()
 
static void(*)(*)(*)(*)(*) end_patch ()
 
static void(*)(*)(*)(*)(*)(*) move (const double *)
 
static void(*)(*)(*)(*)(*)(*)(*) draw (const double *)
 
static void(*)(*)(*)(*)(*)(*)(*)(*) text (const double *, const char *)
 
static int initColorBarDone = 0
 
static int initialized = 0
 

Macro Definition Documentation

#define __GRAPE_PARTITIONDISPLAY_HH_
#define NUM_OF_COLORS   32

Referenced by colorbar_display(), and set_colors().

Function Documentation

static void colorbar_display ( int  nProcs)
inlinestatic
GENMESHnD* genmesh3d_partition_disp ( )
inline
GENMESHnD* genmesh3d_switch_part_diagnostic_on_off ( )
inline

References diag_on, and diagnostic_ctl.

Referenced by initPartitionDisp().

GENMESHnD* genmesh3d_switch_part_displaybar_on_off ( )
inline

References bar_ctl, and bar_on.

Referenced by initPartitionDisp().

GENMESHnD* genmesh3d_switch_part_light_model_on_off ( )
inline

References light_ctl, and light_on.

Referenced by initPartitionDisp().

static void get_graphicdevice ( )
inlinestatic
static int hm3_partition_draw_element ( HELEMENT3D *  helement,
HM3_GENERAL *  general,
void *  el_data,
void *  action_arg 
)
inlinestatic
int hm3_simpl_projection ( HELEMENT3D *  helement,
HM3_GENERAL *  general,
void *  el_data,
void *  pa_data 
)
inlinestatic
int hm3_simpl_test_if_proceed ( HELEMENT3D *  helement,
HM3_GENERAL *  general,
void *  el_data 
)
inlinestatic
static void hsv_to_rgb ( VEC3  rgb,
VEC3  hsv 
)
inlinestatic

Referenced by set_colors().

void initColorBarDisp ( )
inline
void initPartitionDisp ( int  mp)
inline
static void set_colors ( int  currProcs)
inlinestatic
static void setThread ( int  t)
static

Variable Documentation

BUTTON* bar_ctl = NULL
static
int bar_on = TRUE
static
void(*)(*)(*)(*) begin_patch()
VEC3 color[NUM_OF_COLORS]
static
double color_intensity = .6
static
double colorbarBoundingScale = 0.1
static

Referenced by colorbar_display().

double colorbarHeight = 1.8
static

Referenced by colorbar_display().

double colorbarWidth = 0.07
static

Referenced by colorbar_display().

double colorbarX = -0.75
static

Referenced by colorbar_display().

double colorbarY = -0.9
static

Referenced by colorbar_display().

double colorbarZ = 0.9
static

Referenced by colorbar_display().

GRAPHICDEVICE* dev = 0
static
int diag_on = FALSE
static
BUTTON* diagnostic_ctl = NULL
static
void(*)(*)(*)(*)(*)(*)(*) draw(const double *)

Referenced by get_graphicdevice().

void(*)(*)(*)(*)(*) end_patch()
int* globalLastStep = 0
static

Referenced by initColorBarDisp().

int* globalNumberOfElements = 0
static
double globalTime = 0.0
static

Referenced by colorbar_display().

int initColorBarDone = 0
static
int initialized = 0
static
int last_element
static
int last_partition
static
BUTTON* light_ctl = NULL
static
int light_on = TRUE
static
int max_partition = 1
static
double maxnoElements = 8000000
static

Referenced by colorbar_display().

double maxTime = 200
static

Referenced by colorbar_display().

void(*)(*)(*)(*)(*)(*) move(const double *)
void(*)(*) patch_color(const double *)
void(* patch_normal) (const double *)
static

Referenced by get_graphicdevice().

void(*)(*)(*) patch_vertex(const double *)
double shrink_size = 0.8
static
SUPROP_DEV suprop
static
void(*)(*)(*)(*)(*)(*)(*)(*) text(const double *, const char *)

Referenced by get_graphicdevice().

int thread = 0
static