GLVis  v3.4
Accurate and flexible finite element visualization
Functions | Variables
glvis.cpp File Reference

Go to the source code of this file.

Functions

void Set_Palette (int)
 
void PrintSampleUsage (ostream &out)
 
void ReadSerial ()
 
void SetGridFunction ()
 
void SetMeshSolution (Mesh *mesh, GridFunction *&grid_f, bool save_coloring)
 
void ReadParallel ()
 
int ReadParMeshAndGridFunction (int np, const char *mesh_prefix, const char *sol_prefix, Mesh **mesh_p, GridFunction **sol_p, int keep_attr)
 
int ReadInputStreams ()
 
void CloseInputStreams (bool)
 
GridFunction * ProjectVectorFEGridFunction (GridFunction *)
 
void Extrude1DMeshAndSolution (Mesh **mesh_p, GridFunction **grid_f_p, Vector *sol)
 
int ReadStream (istream &is, const string &data_type)
 
int InitVis (int t)
 
void StartVisualization (int field_type)
 
int ScriptReadSolution (istream &scr, Mesh **mp, GridFunction **sp)
 
int ScriptReadParSolution (istream &scr, Mesh **mp, GridFunction **sp)
 
int ScriptReadDisplMesh (istream &scr, Mesh **mp, GridFunction **sp)
 
void ExecuteScriptCommand ()
 
void ScriptControl ()
 
void ScriptIdleFunc ()
 
void PlayScript (istream &scr)
 
int main (int argc, char *argv[])
 

Variables

const char * string_none = "(none)"
 
const char * string_default = "(default)"
 
const char * mesh_file = string_none
 
const char * sol_file = string_none
 
const char * vec_sol_file = string_none
 
const char * gfunc_file = string_none
 
const char * arg_keys = string_none
 
int np = 0
 
int pad_digits = 6
 
int gf_component = -1
 
bool fix_elem_orient = false
 
bool save_coloring = false
 
bool keep_attr = false
 
int window_x = 0
 
int window_y = 0
 
int window_w = 400
 
int window_h = 350
 
const char * window_title = string_default
 
const char * c_plot_caption = string_none
 
string plot_caption
 
string extra_caption
 
int input = 1
 
Mesh * mesh = NULL
 
Vector sol
 
Vector solu
 
Vector solv
 
Vector solw
 
Vector normals
 
GridFunction * grid_f = NULL
 
int is_gf = 0
 
string keys
 
VisualizationSceneScalarDatavs = NULL
 
GeometryRefiner GLVisGeometryRefiner
 
const char * window_titles []
 
istream * script = NULL
 
int scr_running = 0
 
int scr_level = 0
 
Vector * init_nodes = NULL
 
double scr_min_val
 
double scr_max_val
 
Array< istream * > input_streams
 
char ** environ
 

Function Documentation

void CloseInputStreams ( bool  parent)

Definition at line 2097 of file glvis.cpp.

void ExecuteScriptCommand ( )

Definition at line 641 of file glvis.cpp.

void Extrude1DMeshAndSolution ( Mesh **  mesh_p,
GridFunction **  grid_f_p,
Vector *  sol 
)

Definition at line 2134 of file glvis.cpp.

int InitVis ( int  t)

Definition at line 340 of file glvis.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 1134 of file glvis.cpp.

void PlayScript ( istream &  scr)

Definition at line 1055 of file glvis.cpp.

void PrintSampleUsage ( ostream &  out)

Definition at line 1731 of file glvis.cpp.

GridFunction * ProjectVectorFEGridFunction ( GridFunction *  gf)

Definition at line 2114 of file glvis.cpp.

int ReadInputStreams ( )

Definition at line 2024 of file glvis.cpp.

void ReadParallel ( )

Definition at line 1900 of file glvis.cpp.

int ReadParMeshAndGridFunction ( int  np,
const char *  mesh_prefix,
const char *  sol_prefix,
Mesh **  mesh_p,
GridFunction **  sol_p,
int  keep_attr 
)

Definition at line 1931 of file glvis.cpp.

void ReadSerial ( )

Definition at line 1746 of file glvis.cpp.

int ReadStream ( istream &  is,
const string &  data_type 
)

Definition at line 112 of file glvis.cpp.

void ScriptControl ( )

Definition at line 1041 of file glvis.cpp.

void ScriptIdleFunc ( )

Definition at line 1032 of file glvis.cpp.

int ScriptReadDisplMesh ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 581 of file glvis.cpp.

int ScriptReadParSolution ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 547 of file glvis.cpp.

int ScriptReadSolution ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 506 of file glvis.cpp.

void Set_Palette ( int  )

Definition at line 4627 of file palettes.hpp.

void SetGridFunction ( )

Definition at line 1813 of file glvis.cpp.

void SetMeshSolution ( Mesh *  mesh,
GridFunction *&  grid_f,
bool  save_coloring 
)

Definition at line 1847 of file glvis.cpp.

void StartVisualization ( int  field_type)

Definition at line 350 of file glvis.cpp.

Variable Documentation

const char* arg_keys = string_none

Definition at line 42 of file glvis.cpp.

const char* c_plot_caption = string_none

Definition at line 54 of file glvis.cpp.

char** environ
string extra_caption

Definition at line 56 of file glvis.cpp.

bool fix_elem_orient = false

Definition at line 46 of file glvis.cpp.

int gf_component = -1

Definition at line 45 of file glvis.cpp.

const char* gfunc_file = string_none

Definition at line 41 of file glvis.cpp.

GeometryRefiner GLVisGeometryRefiner

Definition at line 67 of file glvis.cpp.

GridFunction* grid_f = NULL

Definition at line 62 of file glvis.cpp.

Vector* init_nodes = NULL

Definition at line 75 of file glvis.cpp.

int input = 1

Definition at line 59 of file glvis.cpp.

Array<istream *> input_streams

Definition at line 78 of file glvis.cpp.

int is_gf = 0

Definition at line 63 of file glvis.cpp.

bool keep_attr = false

Definition at line 48 of file glvis.cpp.

string keys

Definition at line 64 of file glvis.cpp.

Mesh* mesh = NULL

Definition at line 60 of file glvis.cpp.

const char* mesh_file = string_none

Definition at line 38 of file glvis.cpp.

Vector normals

Definition at line 61 of file glvis.cpp.

int np = 0

Definition at line 43 of file glvis.cpp.

int pad_digits = 6

Definition at line 44 of file glvis.cpp.

string plot_caption

Definition at line 55 of file glvis.cpp.

bool save_coloring = false

Definition at line 47 of file glvis.cpp.

int scr_level = 0

Definition at line 74 of file glvis.cpp.

double scr_max_val

Definition at line 76 of file glvis.cpp.

double scr_min_val

Definition at line 76 of file glvis.cpp.

int scr_running = 0

Definition at line 73 of file glvis.cpp.

istream* script = NULL

Definition at line 72 of file glvis.cpp.

Vector sol

Definition at line 61 of file glvis.cpp.

const char* sol_file = string_none

Definition at line 39 of file glvis.cpp.

Vector solu

Definition at line 61 of file glvis.cpp.

Vector solv

Definition at line 61 of file glvis.cpp.

Vector solw

Definition at line 61 of file glvis.cpp.

const char* string_default = "(default)"

Definition at line 35 of file glvis.cpp.

const char* string_none = "(none)"

Definition at line 34 of file glvis.cpp.

const char* vec_sol_file = string_none

Definition at line 40 of file glvis.cpp.

Definition at line 65 of file glvis.cpp.

int window_h = 350

Definition at line 52 of file glvis.cpp.

const char* window_title = string_default

Definition at line 53 of file glvis.cpp.

const char* window_titles[]
Initial value:
= { "GLVis [scalar data]",
"GLVis [vector data]", "GLVis [mesh]"
}

Definition at line 69 of file glvis.cpp.

int window_w = 400

Definition at line 51 of file glvis.cpp.

int window_x = 0

Definition at line 49 of file glvis.cpp.

int window_y = 0

Definition at line 50 of file glvis.cpp.