source: vtkvis/branches/1.7/RenderServer.h @ 4610

Last change on this file since 4610 was 4610, checked in by ldelgass, 8 years ago

add patch version: 1.7.1

  • Property svn:eol-style set to native
File size: 1.5 KB
RevLine 
[2100]1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
[3177]3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
[2100]4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
[3615]8#ifndef VTKVIS_RENDERSERVER_H
9#define VTKVIS_RENDERSERVER_H
[2100]10
[3330]11#include <sys/types.h>
12#include <sys/time.h>
13
[2100]14namespace VtkVis {
15
[2514]16class Renderer;
17
[4610]18#define VTKVIS_VERSION_STRING "1.7.1"
[3615]19
[3330]20#define MSECS_ELAPSED(t1, t2) \
21    ((t1).tv_sec == (t2).tv_sec ? (((t2).tv_usec - (t1).tv_usec)/1.0e+3) : \
22     (((t2).tv_sec - (t1).tv_sec))*1.0e+3 + (double)((t2).tv_usec - (t1).tv_usec)/1.0e+3)
23
24#define CVT2SECS(x)  ((double)(x).tv_sec) + ((double)(x).tv_usec * 1.0e-6)
25
[3410]26#ifndef STATSDIR
[3330]27#define STATSDIR        "/var/tmp/visservers"
[3451]28#endif
[3330]29
30typedef struct {
31    pid_t pid;
32    size_t nDataSets;       /**< # of data sets received */
33    size_t nDataBytes;      /**< # of bytes received as data sets */
34    size_t nFrames;         /**< # of frames sent to client. */
35    size_t nFrameBytes;     /**< # of bytes for all frames. */
36    size_t nCommands;       /**< # of commands executed */
37    double cmdTime;         /**< Elasped time spend executing commands. */
38    struct timeval start;   /**< Start of elapsed time. */
39} Stats;
40
41extern Stats g_stats;
42
[2100]43extern int g_fdIn;
44extern int g_fdOut;
45extern FILE *g_fOut;
46extern FILE *g_fLog;
47extern Renderer *g_renderer;
[2573]48extern ReadBuffer *g_inBufPtr;
[3386]49extern int g_statsFile;
[3382]50extern int writeToStatsFile(int f, const char *s, size_t length);
[3387]51extern int getStatsFile(Tcl_Interp * interp, Tcl_Obj *objPtr);
[2100]52
53}
54
55#endif
Note: See TracBrowser for help on using the repository browser.