Ignore:
Timestamp:
Jun 8, 2009, 8:31:59 AM (15 years ago)
Author:
gah
Message:

Changed vector id to name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/nanovis.h

    r1484 r1493  
    4343#include "global.h"
    4444#include "socket/Socket.h"
     45#include "rappture.h"
    4546#include "NvCamera.h"
    4647#include "ConvexPolygon.h"
     
    131132    static vector<HeightMap*> heightMap;
    132133    static unsigned char* screen_buffer;
    133     static vector<Volume *> volumes;
     134    static Tcl_HashTable volumeTable;
    134135    static vector<NvVectorField*> flow;
    135136    static Grid* grid;
    136137    static R2Fonts* fonts;
    137     static int n_volumes;
    138138    static int updir;
    139139    static NvCamera *cam;
     
    155155    static Tcl_DString cmdbuffer;
    156156
    157     static int _last_data_id;
    158157public :
    159158    static TransferFunction* get_transfunc(const char *name);
     
    184183    static int render_legend(TransferFunction *tf, double min, double max,
    185184        int width, int height, const char* volArg);
    186     static Volume *load_volume(int volDataID, int width, int height, int depth,
    187         int n, float* data, double vmin, double vmax, double nzero_min);
     185    static Volume *load_volume(const char *tag, int width, int height,
     186                int depth, int n, float* data, double vmin, double vmax,
     187                double nzero_min);
    188188    static void xinetd_listen(void);
    189189    static int render_2d_contour(HeightMap* heightmap, int width, int height);
     
    233233    };
    234234    static void EventuallyRedraw(unsigned int flag = 0);
    235     static void remove_volume(size_t index);
    236     static int generate_data_identifier();
     235    static void remove_volume(Volume *volPtr);
     236    static Tcl_HashTable tfTable;
    237237};
    238238
     239extern Volume *load_volume_stream(Rappture::Outcome &status, const char *tag,
     240                        std::iostream& fin);
     241extern Volume *load_volume_stream_odx(Rappture::Outcome &status,
     242        const char *tag, const char *buf, int nBytes);
     243extern Volume *load_volume_stream2(Rappture::Outcome &status, const char *tag,
     244        std::iostream& fin);
     245
     246extern Volume *load_vector_stream(Rappture::Outcome &result, const char *tag,
     247        size_t length, char *bytes);
     248extern Volume *load_vector_stream2(Rappture::Outcome &result, const char *tag,
     249        size_t length, char *bytes);
     250
    239251
    240252#endif  /* __NANOVIS_H__ */
Note: See TracChangeset for help on using the changeset viewer.