mod_fem_viewer/FemViewer/src/fv_txt_utls.cpp File Reference

#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cstring>
#include <string>
#include <fstream>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include "Enums.h"
#include "fv_exception.h"
#include "fv_txt_utls.h"
#include "Log.h"
Include dependency graph for fv_txt_utls.cpp:

Namespaces

namespace  FemViewer

Defines

#define GL_SHADING_LANGUAGE_VERSION   0x8B8C

Functions

bool initGLEW (const bool bFlag)
bool FemViewer::initGLLists (const GLsizei size)
bool loadFile (const char *path, std::string &source)
GLuint initShaders (const char *path_to_vertex_shader, const char *path_to_fragment_shader)
GLuint createBuffer (const void *data, unsigned int dataSize, GLenum target, GLenum usage)
GLuint createTextureBuffer (const int width, const int height, const int format, const void *data, const unsigned buffer)
GLuint createPixelBuffer (const int width, const int height, GLuint *pboId)
float getTextWidthOnScreen (const std::string &pText, void *pCurrentFont)
void drawText (const std::string &pText, float pXMin, float pYMin, float pXMax, float pYMax, int pFontSize, void *pCurrentFont, bool pAutoLineBreak, bool pFlagCentered)
void drawText3D (const std::string &pText, float pX, float pY, float pZ, void *pCurrentFont)
void drawString (const char *str, int x, int y, float color[4], void *font)
void drawPlane (const float *points, const float *scale, unsigned int size)
GLuint createQuadGrid (const double orig[], double dims[], double density[], GLuint *nvertces)
GLuint createGrid3D (const float minb[], const float maxb[], const grid_t *grid, GLuint outBuff[])
void drawGrid (const GLuint params[2], const float color[3], const float line_width)
void drawLabels (const std::vector< FemViewer::label_t > &labels, void *font, const float color[4])
GLuint createColorBar (const FemViewer::colorbar_config_t *cfg, GLuint *bufferID)

Define Documentation

#define GL_SHADING_LANGUAGE_VERSION   0x8B8C

Function Documentation

GLuint createBuffer ( const void data,
unsigned int  dataSize,
GLenum  target,
GLenum  usage 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createColorBar ( const FemViewer::colorbar_config_t cfg,
GLuint *  bufferID 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createGrid3D ( const float  minb[],
const float  maxb[],
const grid_t grid,
GLuint  outBuff[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createPixelBuffer ( const int  width,
const int  height,
GLuint *  pboId 
)

Here is the call graph for this function:

GLuint createQuadGrid ( const double  orig[],
double  dims[],
double  density[],
GLuint *  nvertces 
)

Here is the call graph for this function:

Here is the caller graph for this function:

GLuint createTextureBuffer ( const int  width,
const int  height,
const int  format,
const void data,
const unsigned  buffer 
)

Here is the call graph for this function:

void drawGrid ( const GLuint  params[2],
const float  color[3],
const float  line_width 
)
void drawLabels ( const std::vector< FemViewer::label_t > &  labels,
void font,
const float  color[4] 
)

Here is the caller graph for this function:

void drawPlane ( const float *  points,
const float *  scale,
unsigned int  size 
)

Here is the caller graph for this function:

void drawString ( const char *  str,
int  x,
int  y,
float  color[4],
void font 
)
void drawText ( const std::string &  pText,
float  pXMin,
float  pYMin,
float  pXMax,
float  pYMax,
int  pFontSize,
void pCurrentFont,
bool  pAutoLineBreak,
bool  pFlagCentered 
)
void drawText3D ( const std::string &  pText,
float  pX,
float  pY,
float  pZ,
void pCurrentFont 
)
float getTextWidthOnScreen ( const std::string &  pText,
void pCurrentFont 
)

Here is the caller graph for this function:

bool initGLEW ( const bool  bFlag  ) 

Here is the caller graph for this function:

GLuint initShaders ( const char *  path_to_vertex_shader,
const char *  path_to_fragment_shader 
)

Here is the call graph for this function:

bool loadFile ( const char *  path,
std::string &  source 
)

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1