Changeset 3605 for trunk/packages/vizservers/nanovis/nanovis.h
- Timestamp:
- Apr 2, 2013 1:31:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/nanovis.h
r3597 r3605 17 17 #define NANOVIS_H 18 18 19 #include <tcl.h>20 #include <md5.h>21 #include <GL/glew.h>22 23 19 #include <math.h> 24 20 #include <stddef.h> // For size_t 25 21 #include <stdio.h> 22 #include <sys/time.h> 23 #include <sys/types.h> // For pid_t 24 25 #include <tcl.h> 26 27 #include <GL/glew.h> 26 28 27 29 #include <vector> … … 32 34 33 35 #include "config.h" 36 #include "md5.h" 34 37 35 #define NANOVIS_VERSION "1. 1"38 #define NANOVIS_VERSION "1.2" 36 39 37 40 //defines for the image based flow visualization … … 46 49 class Fonts; 47 50 } 51 class OrientationIndicator; 48 52 } 49 53 50 54 class VolumeRenderer; 51 class PointSetRenderer;52 55 class NvParticleRenderer; 53 class PlaneRenderer;54 56 class VelocityArrowsSlice; 55 57 class NvLIC; 56 class P ointSet;58 class PlaneRenderer; 57 59 class Texture2D; 58 60 class HeightMap; … … 89 91 typedef std::tr1::unordered_map<HeightMapId, HeightMap *> HeightMapHashmap; 90 92 91 static void processCommands(); 92 static void init(const char *path); 93 static void initGL(); 94 static void initOffscreenBuffer(); 95 static void resizeOffscreenBuffer(int w, int h); 93 static bool init(const char *path); 94 static bool initGL(); 95 static bool initOffscreenBuffer(); 96 static bool resizeOffscreenBuffer(int w, int h); 96 97 static void setBgColor(float color[3]); 97 98 static void render(); 98 99 static void draw3dAxis(); 99 static void idle();100 100 static void update(); 101 101 static void removeAllData(); … … 113 113 static void setVolumeRanges(); 114 114 static void setHeightmapRanges(); 115 116 #ifdef KEEPSTATS117 static int getStatsFile(Tcl_Obj *objPtr);118 static int writeToStatsFile(int f, const char *s, size_t length);119 #endif120 static void ppmWrite(const char *prefix);121 static void sendDataToClient(const char *command, const char *data,122 size_t dlen);123 static void bmpWrite(const char *prefix);124 static void bmpWriteToFile(int frame_number, const char* directory_name);125 115 126 116 static TransferFunction *getTransferFunction(const TransferFunctionId& id); … … 139 129 static void readScreen() 140 130 { 131 glPixelStorei(GL_PACK_ALIGNMENT, 1); 141 132 glReadPixels(0, 0, winWidth, winHeight, GL_RGB, GL_UNSIGNED_BYTE, 142 133 screenBuffer); … … 149 140 static Flow *getFlow(const char *name); 150 141 static Flow *createFlow(Tcl_Interp *interp, const char *name); 142 static void deleteFlows(Tcl_Interp *interp); 151 143 static void deleteFlow(const char *name); 152 static void deleteFlows(Tcl_Interp *interp);153 144 static bool mapFlows(); 154 145 static void getFlowBounds(vrmath::Vector3f& min, … … 160 151 static void advectFlows(); 161 152 162 static FILE *stdin, *logfile, *recfile;163 static int statsFile; 153 static Tcl_Interp *interp; 154 164 155 static unsigned int flags; 165 156 static bool debugFlag; 166 static bool axisOn;167 static struct timeval startTime; ///< Start of elapsed time.168 157 169 158 static int winWidth; ///< Width of the render window … … 172 161 static unsigned char *screenBuffer; 173 162 static Texture2D *legendTexture; 174 static Grid *grid;175 163 static nv::util::Fonts *fonts; 176 164 static int updir; … … 191 179 static NvLIC *licRenderer; 192 180 static PlaneRenderer *planeRenderer; 193 194 #ifdef USE_POINTSET_RENDERER 195 static PointSetRenderer *pointSetRenderer; 196 static std::vector<PointSet *> pointSet; 197 #endif 198 199 static Tcl_Interp *interp; 181 static nv::OrientationIndicator *orientationIndicator; 182 static Grid *grid; 200 183 201 184 private:
Note: See TracChangeset
for help on using the changeset viewer.