Changeset 3870
- Timestamp:
- Aug 16, 2013 2:17:25 AM (11 years ago)
- Location:
- trunk/packages/vizservers/nanovis
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Command.cpp
r3630 r3870 55 55 #include "FlowCmd.h" 56 56 #include "dxReader.h" 57 #ifdef USE_VTK 58 #include "VtkDataSetReader.h" 59 #endif 57 60 #include "VtkReader.h" 58 61 #include "BMPWriter.h" … … 1273 1276 } else if ((nBytes > 14) && (strncmp(bytes, "# vtk DataFile", 14) == 0)) { 1274 1277 TRACE("VTK loading..."); 1275 std::stringstream fdata;1276 fdata.write(bytes, nBytes);1277 1278 if (nBytes <= 0) { 1278 1279 ERROR("data buffer is empty"); … … 1280 1281 } 1281 1282 Rappture::Outcome context; 1283 #ifdef USE_VTK 1284 volume = load_vtk_volume_stream(context, tag, bytes, nBytes); 1285 #else 1286 std::stringstream fdata; 1287 fdata.write(bytes, nBytes); 1282 1288 volume = load_vtk_volume_stream(context, tag, fdata); 1289 #endif 1283 1290 if (volume == NULL) { 1284 1291 Tcl_AppendResult(interp, context.remark(), (char*)NULL); … … 1292 1299 } 1293 1300 TRACE("DX loading..."); 1294 std::stringstream fdata;1295 fdata.write(bytes, nBytes);1296 1301 if (nBytes <= 0) { 1297 1302 ERROR("data buffer is empty"); 1298 1303 abort(); 1299 1304 } 1305 std::stringstream fdata; 1306 fdata.write(bytes, nBytes); 1300 1307 Rappture::Outcome context; 1301 1308 volume = load_dx_volume_stream(context, tag, fdata); -
trunk/packages/vizservers/nanovis/Makefile.in
r3630 r3870 3 3 USE_POINTSET_RENDERER = #yes 4 4 USE_PARTICLE_SYSTEM = #yes 5 USE_VTK = yes 5 6 6 7 SHELL = /bin/sh … … 53 54 VRMATH_LIB_SPEC = $(VRMATH_LIB) 54 55 56 VTK_LIB_DIR = @VTK_LIB_DIR@ 57 VTK_INC_SPEC = @VTK_INC_SPEC@ 58 VTK_LIB_SPEC = \ 59 -lvtkIOCore-6.0 \ 60 -lvtkIOLegacy-6.0 \ 61 -lvtkFiltersCore-6.0 \ 62 -lvtkImagingHybrid-6.0 \ 63 -lvtkImagingCore-6.0 \ 64 -lvtkCommonCore-6.0 \ 65 -lvtkCommonDataModel-6.0 \ 66 -lvtkCommonExecutionModel-6.0 \ 67 -lvtkCommonMisc-6.0 \ 68 -lvtkCommonSystem-6.0 \ 69 -lvtkCommonTransforms-6.0 \ 70 -lvtkCommonMath-6.0 71 55 72 EXTRA_LIBS = -lm -lpthread 56 73 RP_DIR = @RP_DIR@ … … 73 90 $(UTIL_LIB_SPEC) \ 74 91 $(VRMATH_LIB_SPEC) \ 92 $(VTK_LIB_SPEC) \ 75 93 $(TCL_LIB_SPEC) \ 76 94 $(CG_LIB_SPEC) \ … … 85 103 $(MAT_INC_SPEC) \ 86 104 $(VRMATH_INC_SPEC) \ 105 $(VTK_INC_SPEC) \ 87 106 $(TCL_INC_SPEC) \ 88 107 $(CG_INC_SPEC) \ … … 103 122 ifdef USE_POINTSET_RENDERER 104 123 DEFINES += -DUSE_POINTSET_RENDERER 124 endif 125 ifdef USE_VTK 126 DEFINES += -DUSE_VTK 105 127 endif 106 128 CXX_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) … … 204 226 endif 205 227 228 ifdef USE_VTK 229 OBJS += DataSetResample.o \ 230 VtkDataSetReader.o 231 endif 232 206 233 .PHONY: all install install-resources install-shaders install-nanovis docs clean-docs clean distclean graphics imgloaders newmat11 util vrmath 207 234 … … 287 314 ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h 288 315 ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h Plane.h 316 DataSetResample.o: DataSetResample.cpp DataSetResample.h 289 317 Flow.o: Flow.cpp Flow.h FlowCmd.h FlowTypes.h FlowBox.h FlowParticles.h LIC.h VelocityArrowsSlice.h Switch.h Unirect.h Volume.h TransferFunction.h Trace.h 290 318 FlowBox.o: FlowBox.cpp FlowBox.h FlowTypes.h Switch.h Trace.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h … … 293 321 GradientFilter.o: GradientFilter.cpp GradientFilter.h 294 322 Grid.o: Grid.cpp Grid.h Axis.h Chain.h $(UTIL_DIR)/Fonts.h $(VRMATH_DIR)/include/vrmath/Color4f.h $(VRMATH_DIR)/include/vrmath/Vector4f.h 295 HeightMap.o: HeightMap.cpp HeightMap.h 296 LIC.o: LIC.cpp LIC.h 323 HeightMap.o: HeightMap.cpp HeightMap.h Shader.h 324 LIC.o: LIC.cpp LIC.h Shader.h 297 325 OrientationIndicator.o: OrientationIndicator.cpp OrientationIndicator.h 298 326 ParticleAdvectionShader.o: ParticleAdvectionShader.cpp ParticleAdvectionShader.h Shader.h … … 327 355 VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h ConvexPolygon.h Volume.h nanovis.h Trace.h Plane.h StdVertexShader.h Shader.h 328 356 VolumeShader.o: VolumeShader.cpp VolumeShader.h Shader.h 329 VtkReader.o: VtkReader.h Trace.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h ReaderCommon.h nanovis.h 357 VtkDataSetReader.o: VtkDataSetReader.cpp VtkDataSetReader.h DataSetResample.h $(VRMATH_DIR)/include/vrmath/Vector3f.h ReaderCommon.h Trace.h Volume.h nanovis.h config.h 358 VtkReader.o: VtkReader.h Trace.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h ReaderCommon.h nanovis.h config.h 330 359 ZincBlendeReconstructor.o: ZincBlendeReconstructor.cpp ZincBlendeReconstructor.h ZincBlendeVolume.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h 331 360 ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h config.h define.h -
trunk/packages/vizservers/nanovis/VtkReader.cpp
r3630 r3870 16 16 #include "ReaderCommon.h" 17 17 18 #include "config.h" 18 19 #include "nanovis.h" 19 20 #include "VtkReader.h"
Note: See TracChangeset
for help on using the changeset viewer.