GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Typedefs | Functions | Variables
glvis.cpp File Reference

Go to the source code of this file.

Typedefs

using StreamCollection = vector< unique_ptr< istream >>
 

Functions

void PrintSampleUsage (ostream &out)
 
void ReadSerial (StreamState &state)
 
void SetGridFunction (StreamState &state)
 
void ReadParallel (int np, StreamState &state)
 
int ReadParMeshAndGridFunction (int np, const char *mesh_prefix, const char *sol_prefix, StreamState &state, int keep_attr)
 
int ReadInputStreams (StreamState &state, const StreamCollection &input_streams)
 
bool GLVisInitVis (int field_type, StreamCollection input_streams)
 
void GLVisStartVis ()
 
int ScriptReadSolution (istream &scr, StreamState &state)
 
int ScriptReadParSolution (istream &scr, StreamState &state)
 
int ScriptReadDisplMesh (istream &scr, StreamState &state)
 
void ExecuteScriptCommand ()
 
void ScriptControl ()
 
void ScriptIdleFunc ()
 
void PlayScript (istream &scr)
 
void GLVisServer (int portnum, bool save_stream, bool fix_elem_orient, bool save_coloring)
 
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 pad_digits = 6
 
int gf_component = -1
 
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
 
thread_local string plot_caption
 
thread_local string extra_caption
 
bool secure = socketstream::secure_default
 
int input = 1
 
thread_local StreamState stream_state
 
thread_local
VisualizationSceneScalarData
vs = NULL
 
thread_local GLVisCommandglvis_command
 
thread_local communication_threadcomm_thread = NULL
 
thread_local 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
 
char ** environ
 

Typedef Documentation

using StreamCollection = vector<unique_ptr<istream>>

Definition at line 84 of file glvis.cpp.

Function Documentation

void ExecuteScriptCommand ( )

Definition at line 404 of file glvis.cpp.

bool GLVisInitVis ( int  field_type,
StreamCollection  input_streams 
)

Definition at line 105 of file glvis.cpp.

void GLVisServer ( int  portnum,
bool  save_stream,
bool  fix_elem_orient,
bool  save_coloring 
)

Definition at line 944 of file glvis.cpp.

void GLVisStartVis ( )

Definition at line 255 of file glvis.cpp.

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

Definition at line 1140 of file glvis.cpp.

void PlayScript ( istream &  scr)

Definition at line 783 of file glvis.cpp.

void PrintSampleUsage ( ostream &  out)

Definition at line 1402 of file glvis.cpp.

int ReadInputStreams ( StreamState state,
const StreamCollection input_streams 
)

Definition at line 1639 of file glvis.cpp.

void ReadParallel ( int  np,
StreamState state 
)

Definition at line 1517 of file glvis.cpp.

int ReadParMeshAndGridFunction ( int  np,
const char *  mesh_prefix,
const char *  sol_prefix,
StreamState state,
int  keep_attr 
)

Definition at line 1548 of file glvis.cpp.

void ReadSerial ( StreamState state)

Definition at line 1417 of file glvis.cpp.

void ScriptControl ( )

Definition at line 769 of file glvis.cpp.

void ScriptIdleFunc ( )

Definition at line 760 of file glvis.cpp.

int ScriptReadDisplMesh ( istream &  scr,
StreamState state 
)

Definition at line 343 of file glvis.cpp.

int ScriptReadParSolution ( istream &  scr,
StreamState state 
)

Definition at line 309 of file glvis.cpp.

int ScriptReadSolution ( istream &  scr,
StreamState state 
)

Definition at line 269 of file glvis.cpp.

void SetGridFunction ( StreamState state)

Definition at line 1484 of file glvis.cpp.

Variable Documentation

const char* arg_keys = string_none

Definition at line 50 of file glvis.cpp.

const char* c_plot_caption = string_none

Definition at line 59 of file glvis.cpp.

thread_local communication_thread* comm_thread = NULL

Definition at line 69 of file glvis.cpp.

char** environ
thread_local string extra_caption

Definition at line 61 of file glvis.cpp.

int gf_component = -1

Definition at line 52 of file glvis.cpp.

const char* gfunc_file = string_none

Definition at line 49 of file glvis.cpp.

thread_local GLVisCommand* glvis_command

Definition at line 39 of file aux_vis.cpp.

thread_local GeometryRefiner GLVisGeometryRefiner

Definition at line 71 of file glvis.cpp.

Vector* init_nodes = NULL

Definition at line 79 of file glvis.cpp.

int input = 1

Definition at line 65 of file glvis.cpp.

bool keep_attr = false

Definition at line 53 of file glvis.cpp.

const char* mesh_file = string_none

Definition at line 46 of file glvis.cpp.

int pad_digits = 6

Definition at line 51 of file glvis.cpp.

thread_local string plot_caption

Definition at line 60 of file glvis.cpp.

int scr_level = 0

Definition at line 78 of file glvis.cpp.

double scr_max_val

Definition at line 80 of file glvis.cpp.

double scr_min_val

Definition at line 80 of file glvis.cpp.

int scr_running = 0

Definition at line 77 of file glvis.cpp.

istream* script = NULL

Definition at line 76 of file glvis.cpp.

bool secure = socketstream::secure_default

Definition at line 62 of file glvis.cpp.

const char* sol_file = string_none

Definition at line 47 of file glvis.cpp.

thread_local StreamState stream_state

Definition at line 66 of file glvis.cpp.

const char* string_default = "(default)"

Definition at line 43 of file glvis.cpp.

const char* string_none = "(none)"

Definition at line 42 of file glvis.cpp.

const char* vec_sol_file = string_none

Definition at line 48 of file glvis.cpp.

thread_local VisualizationSceneScalarData* vs = NULL

Definition at line 67 of file glvis.cpp.

int window_h = 350

Definition at line 57 of file glvis.cpp.

const char* window_title = string_default

Definition at line 58 of file glvis.cpp.

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

Definition at line 73 of file glvis.cpp.

int window_w = 400

Definition at line 56 of file glvis.cpp.

int window_x = 0

Definition at line 54 of file glvis.cpp.

int window_y = 0

Definition at line 55 of file glvis.cpp.