Changeset 4068 for trunk/packages
- Timestamp:
- Nov 25, 2013, 7:55:07 PM (11 years ago)
- Location:
- trunk/packages/vizservers/nanovis
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Command.cpp
r4067 r4068 53 53 #include "CmdProc.h" 54 54 #include "FlowCmd.h" 55 #ifdef USE_DX_READER 55 56 #include "dxReader.h" 57 #endif 56 58 #ifdef USE_VTK 57 59 #include "VtkDataSetReader.h" … … 1323 1325 } 1324 1326 } else { 1327 #ifdef USE_DX_READER 1325 1328 // **Deprecated** OpenDX format 1326 1329 if ((nBytes > 5) && (strncmp(bytes, "<ODX>", 5) == 0)) { … … 1340 1343 return TCL_ERROR; 1341 1344 } 1345 #else 1346 Tcl_AppendResult(interp, "Loading DX files is not supported by this server", (char*)NULL); 1347 return TCL_ERROR; 1348 #endif 1342 1349 } 1343 1350 -
trunk/packages/vizservers/nanovis/FlowCmd.cpp
r4063 r4068 182 182 Flow *flow = (Flow *)clientData; 183 183 if ((length > 4) && (strncmp(bytes, "<DX>", 4) == 0)) { 184 #ifdef USE_DX_READER 184 185 unirect = new Unirect3d(nComponents); 185 186 if (!unirect->importDx(nComponents, length - 4, bytes + 4)) { … … 188 189 return TCL_ERROR; 189 190 } 191 #else 192 Tcl_AppendResult(interp, "Loading DX files is not supported by this server", (char*)NULL); 193 return TCL_ERROR; 194 #endif 190 195 } else if ((length > 10) && (strncmp(bytes, "unirect3d ", 10) == 0)) { 191 196 unirect = new Unirect3d(nComponents); … … 223 228 } 224 229 } else { 230 #ifdef USE_DX_READER 225 231 TRACE("header is %.14s", buf.bytes()); 226 232 unirect = new Unirect3d(nComponents); … … 230 236 return TCL_ERROR; 231 237 } 238 #else 239 Tcl_AppendResult(interp, "Loading DX files is not supported by this server", (char*)NULL); 240 return TCL_ERROR; 241 #endif 232 242 } 233 243 if (unirect != NULL && unirect->nValues() == 0) { -
trunk/packages/vizservers/nanovis/Makefile.in
r4063 r4068 3 3 USE_POINTSET_RENDERER = #yes 4 4 USE_PARTICLE_SYSTEM = #yes 5 USE_DX_READER = yes 5 6 USE_VTK = yes 6 7 … … 77 78 endif 78 79 80 NEED_RAPPTURE2 = 81 ifdef USE_DX_READER 82 NEED_RAPPTURE2 = yes 83 endif 84 ifndef USE_VTK 85 NEED_RAPPTURE2 = yes 86 endif 87 79 88 EXTRA_LIBS = -lm -lpthread 80 89 RP_DIR = @RP_DIR@ 81 RP_INC_SPEC = -I$(RP_DIR)/include -I$(RP_DIR)/include/rappture2 90 RP_INC_SPEC = -I$(RP_DIR)/include 91 ifdef NEED_RAPPTURE2 92 RP_INC_SPEC += -I$(RP_DIR)/include/rappture2 93 endif 94 ifdef NEED_RAPPTURE2 82 95 RP_LIB_SPEC = -L$(RP_DIR)/lib -lrappture2 -lrappture -lexpat -lz 96 else 97 RP_LIB_SPEC = -L$(RP_DIR)/lib -lrappture -lexpat -lz 98 endif 83 99 84 100 TCL_LIB_SPEC = @TCL_LIB_SPEC@ … … 123 139 ifdef TRACE 124 140 DEFINES += -DWANT_TRACE 141 endif 142 ifdef USE_DX_READER 143 DEFINES += -DUSE_DX_READER 125 144 endif 126 145 ifdef USE_THREADS … … 182 201 ZincBlendeVolume.o \ 183 202 ZincBlendeVolumeShader.o \ 184 dxReader.o \185 203 md5.o \ 186 204 nanovis.o \ … … 208 226 $(srcdir)/shaders/vertex_std.cg \ 209 227 $(srcdir)/shaders/zincblende_volume.cg 228 229 ifdef USE_DX_READER 230 OBJS += dxReader.o 231 endif 210 232 211 233 ifdef USE_PARTICLE_SYSTEM -
trunk/packages/vizservers/nanovis/Unirect.cpp
r4063 r4068 486 486 } 487 487 488 #ifdef USE_DX_READER 488 489 bool 489 490 nv::Unirect3d::importDx(size_t nComponents, … … 630 631 return true; 631 632 } 633 #endif 632 634 633 635 void -
trunk/packages/vizservers/nanovis/Unirect.h
r4065 r4068 222 222 int parseBuffer(Tcl_Interp *interp, const char *bytes, size_t len); 223 223 224 #ifdef USE_DX_READER 224 225 bool importDx(size_t nComponents, size_t length, char *string); 226 #endif 225 227 226 228 bool convert(Unirect2d *dataPtr);
Note: See TracChangeset
for help on using the changeset viewer.