SPModel: postProcessing/NodeHistoryViewer/NodeHistoryViewer.c File Reference
VPAC - Computational Software Development
Main | SPModel | StGermain FrameWork |
Main Page | Alphabetical List | Class List | Directories | File List | Class Members | File Members

NodeHistoryViewer.c File Reference

#include "mpi.h"
#include <math.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/resource.h>
#include <sys/errno.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <StGermain/StGermain.h>
#include <SDL/SDL.h>

Include dependency graph for NodeHistoryViewer.c:

Go to the source code of this file.

Defines

#define WIDTH   800
#define HEIGHT   600
#define BPP   16

Functions

int SetMaximumFiles (long filecount)
int GetMaximumFiles (long *filecount)
void processDumpFiles (char *path)
void clearDepthColor (void)
void mouseClick (int button, int state, int x, int y)
void mouseMotion (int x, int y)
int windowEvents ()
void drawCircle (double x, double y, double z, double radius)
void dumpNodes (double **data, int from, int to, int range)
void initializeGL (void)
void createGLWindow ()
int main (int argc, char **argv)

Variables

static int displayOn = 0
double maxX = 0
double maxY = 0
double maxH = 0
double minX = LONG_MAX
double minY = LONG_MAX
double minH = LONG_MAX
GLuint selectionBuffer [1024]
int DATA_PER_NODE = 0
int LOAD_NODES = 0
int scaled
float ratio
int oldMouseX
int oldMouseY
GLdouble xRot = 0.0
GLdouble yRot = 0.0
int motionOn = 0
int zoomOn = 0
int oldZoomY = 0
double zoomFactor = 1.0f
int showReceivers = 0
int drawingModeIndex = 0
int drawingModes [] = {GL_TRIANGLES, GL_LINE_LOOP, GL_POINTS}


Define Documentation

#define BPP   16
 

Definition at line 33 of file NodeHistoryViewer.c.

#define HEIGHT   600
 

Definition at line 32 of file NodeHistoryViewer.c.

#define WIDTH   800
 

Definition at line 31 of file NodeHistoryViewer.c.


Function Documentation

void clearDepthColor void   ) 
 

Definition at line 174 of file NodeHistoryViewer.c.

void createGLWindow  ) 
 

Definition at line 337 of file NodeHistoryViewer.c.

References BPP, displayOn, HEIGHT, initializeGL(), and WIDTH.

void drawCircle double  x,
double  y,
double  z,
double  radius
 

Definition at line 273 of file NodeHistoryViewer.c.

void dumpNodes double **  data,
int  from,
int  to,
int  range
 

Definition at line 282 of file NodeHistoryViewer.c.

References clearDepthColor(), maxH, and minH.

int GetMaximumFiles long *  filecount  ) 
 

Definition at line 61 of file NodeHistoryViewer.c.

Referenced by processDumpFiles().

void initializeGL void   ) 
 

Definition at line 317 of file NodeHistoryViewer.c.

References HEIGHT, and WIDTH.

int main int  argc,
char **  argv
 

Definition at line 397 of file NodeHistoryViewer.c.

References createGLWindow(), DATA_PER_NODE, dumpNodes(), LOAD_NODES, processDumpFiles(), and windowEvents().

void mouseClick int  button,
int  state,
int  x,
int  y
 

Definition at line 179 of file NodeHistoryViewer.c.

References motionOn, oldMouseX, oldMouseY, oldZoomY, and zoomOn.

void mouseMotion int  x,
int  y
 

Definition at line 202 of file NodeHistoryViewer.c.

References motionOn, oldMouseX, oldMouseY, oldZoomY, xRot, yRot, zoomFactor, and zoomOn.

void processDumpFiles char *  path  ) 
 

Definition at line 72 of file NodeHistoryViewer.c.

References DATA_PER_NODE, GetMaximumFiles(), and SetMaximumFiles().

Referenced by main().

int SetMaximumFiles long  filecount  ) 
 

Definition at line 51 of file NodeHistoryViewer.c.

Referenced by processDumpFiles().

int windowEvents  ) 
 

Definition at line 224 of file NodeHistoryViewer.c.

References drawingModeIndex, mouseClick(), mouseMotion(), xRot, and yRot.


Variable Documentation

int DATA_PER_NODE = 0
 

Definition at line 34 of file NodeHistoryViewer.c.

Referenced by main(), and processDumpFiles().

int displayOn = 0 [static]
 

Definition at line 25 of file NodeHistoryViewer.c.

int drawingModeIndex = 0
 

Definition at line 48 of file NodeHistoryViewer.c.

int drawingModes[] = {GL_TRIANGLES, GL_LINE_LOOP, GL_POINTS}
 

Definition at line 49 of file NodeHistoryViewer.c.

int LOAD_NODES = 0
 

Definition at line 35 of file NodeHistoryViewer.c.

Referenced by main().

double maxH = 0
 

Definition at line 27 of file NodeHistoryViewer.c.

double maxX = 0
 

Definition at line 27 of file NodeHistoryViewer.c.

double maxY = 0
 

Definition at line 27 of file NodeHistoryViewer.c.

double minH = LONG_MAX
 

Definition at line 28 of file NodeHistoryViewer.c.

double minX = LONG_MAX
 

Definition at line 28 of file NodeHistoryViewer.c.

double minY = LONG_MAX
 

Definition at line 28 of file NodeHistoryViewer.c.

int motionOn = 0
 

Definition at line 43 of file NodeHistoryViewer.c.

int oldMouseX
 

Definition at line 39 of file NodeHistoryViewer.c.

int oldMouseY
 

Definition at line 40 of file NodeHistoryViewer.c.

int oldZoomY = 0
 

Definition at line 45 of file NodeHistoryViewer.c.

float ratio
 

Definition at line 38 of file NodeHistoryViewer.c.

int scaled
 

Definition at line 37 of file NodeHistoryViewer.c.

GLuint selectionBuffer[1024]
 

Definition at line 29 of file NodeHistoryViewer.c.

int showReceivers = 0
 

Definition at line 47 of file NodeHistoryViewer.c.

GLdouble xRot = 0.0
 

Definition at line 41 of file NodeHistoryViewer.c.

GLdouble yRot = 0.0
 

Definition at line 42 of file NodeHistoryViewer.c.

double zoomFactor = 1.0f
 

Definition at line 46 of file NodeHistoryViewer.c.

int zoomOn = 0
 

Definition at line 44 of file NodeHistoryViewer.c.