Changeset 2727
- Timestamp:
- Dec 12, 2011, 5:44:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r2726 r2727 286 286 #-------------------------------------------------------------------- 287 287 288 AC_CHECK_HEADERS(ffmpeg/avcodec.h,[],[], 289 [[#define __STDC_CONSTANT_MACROS 1 290 #ifdef HAVE_FFMPEG_AVCODEC_H 291 # include <ffmpeg/avcodec.h> 292 #endif 293 ]]) 294 295 AC_CHECK_HEADERS(libavcodec/avcodec.h,[],[], 296 [[#define __STDC_CONSTANT_MACROS 1 297 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 298 # include <libavcodec/avcodec.h> 299 #endif 300 ]]) 301 302 AC_CHECK_HEADERS([ffmpeg/avformat.h],[],[], 303 [[#define __STDC_CONSTANT_MACROS 1 304 #ifdef HAVE_FFMPEG_AVFORMAT_H 305 # include <ffmpeg/avformat.h> 306 #endif 307 ]]) 308 309 AC_CHECK_HEADERS([libavformat/avformat.h],[],[], 310 [[#define __STDC_CONSTANT_MACROS 1 311 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H 312 # include <libavformat/avformat.h> 313 #endif 314 ]]) 315 316 AC_CHECK_HEADERS([ffmpeg/avutil.h],[],[], 317 [[#define __STDC_CONSTANT_MACROS 1 318 #ifdef HAVE_FFMPEG_AVUTIL_H 319 # include <ffmpeg/avutil.h> 320 #endif 321 ]]) 322 323 AC_CHECK_HEADERS([libavutil/avutil.h],[],[], 324 [[#define __STDC_CONSTANT_MACROS 1 325 #ifdef HAVE_LIBAVUTIL_AVUTIL_H 326 # include <libavutil/avutil.h> 327 #endif 328 ]]) 329 330 AC_CHECK_HEADERS([ffmpeg/swscale.h],[],[], 331 [[#define __STDC_CONSTANT_MACROS 1 332 #ifdef HAVE_FFMPEG_SWSCALE_H 333 # include <ffmpeg/swscale.h> 334 #endif 335 ]]) 336 337 AC_CHECK_HEADERS([libswscale/swscale.h],[],[], 338 [[#define __STDC_CONSTANT_MACROS 1 339 #ifdef HAVE_LIBSWSCALE_SWSCALE_H 340 # include <libswscale/swscale.h> 341 #endif 342 ]]) 288 AC_CHECK_HEADERS([ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h],,,[ 289 #define __STDC_CONSTANT_MACROS 1 290 ]) 343 291 344 292 HAVE_FFMPEG_LIBS="" -
trunk/gui/scripts/field.tcl
r2722 r2727 204 204 return "" ;# no mesh -- it's embedded in the value data 205 205 } 206 if {[info exists _comp2vtkvolume($what)]} { 207 return "" ;# no mesh -- it's embedded in the value data 208 } 206 209 if {[info exists _comp2unirect2d($what)]} { 207 210 set mobj [lindex $_comp2unirect2d($what) 0] … … 264 267 if { [info exists _comp2vtk($what)] } { 265 268 return "" 269 } 270 if { [info exists _comp2vtkvolume($what)] } { 271 return $_comp2vtkvolume($what) 266 272 } 267 273 if { [info exists _comp2vtkstreamlines($what)] } { … … 821 827 } 822 828 set data [Rappture::ConvertDxToVtk $data] 829 if 1 { 830 set file "/tmp/junk.vtk" 831 set f [open $file "w"] 832 puts $f $data 833 close $f 834 } 823 835 set _comp2vtkvolume($cname) $data 824 836 set _comp2style($cname) [$_field get $cname.style] -
trunk/gui/scripts/vtkvolumeviewer.tcl
r2722 r2727 1003 1003 set _limits(zmax) "" 1004 1004 set _first "" 1005 1005 1006 foreach dataobj [get -objects] { 1006 1007 if { [info exists _obj2ovride($dataobj-raise)] && $_first == "" } { … … 1804 1805 1805 1806 itcl::body Rappture::VtkVolumeViewer::limits { dataobj } { 1806 return1807 1807 array unset _limits $dataobj-* 1808 1808 foreach comp [$dataobj components] { -
trunk/gui/src/RpConvertDxToVtk.c
r2722 r2727 95 95 int count[3]; 96 96 int length, nComponents, nValues, nPoints; 97 97 char *name; 98 99 name = "myScalar"; 98 100 nComponents = nPoints = 0; 99 101 delta[0] = delta[1] = delta[2] = 0.0; /* Suppress compiler warning. */ … … 198 200 } 199 201 200 objPtr = Tcl_NewStringObj(" vtk DataFile Version 2.0\n", -1);202 objPtr = Tcl_NewStringObj("# vtk DataFile Version 2.0\n", -1); 201 203 Tcl_AppendToObj(objPtr, "Converted from DX file\n", -1); 202 204 Tcl_AppendToObj(objPtr, "ASCII\n", -1); … … 209 211 Tcl_AppendToObj(objPtr, mesg, -1); 210 212 sprintf(mesg, "POINT_DATA %d\n", nPoints); 213 Tcl_AppendToObj(objPtr, mesg, -1); 214 sprintf(mesg, "SCALARS %s float 1\n", name); 215 Tcl_AppendToObj(objPtr, mesg, -1); 216 sprintf(mesg, "LOOKUP_TABLE default\n"); 211 217 Tcl_AppendToObj(objPtr, mesg, -1); 212 218 Tcl_AppendObjToObj(objPtr, pointsObjPtr); -
trunk/packages/vizservers/configure
r2725 r2727 8529 8529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8530 8530 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8531 #define SIZEOF_LONG ${ac_cv_sizeof_long} 8532 #if SIZEOF_LONG == 8 8533 # define INT64_C(c) c ## L 8534 # define UINT64_C(c) c ## UL 8535 #else 8536 # define INT64_C(c) c ## LL 8537 # define UINT64_C(c) c ## ULL 8538 #endif 8531 #define __STDC_CONSTANT_MACROS 1 8539 8532 8540 8533 " -
trunk/packages/vizservers/configure.in
r2725 r2727 275 275 276 276 AC_CHECK_HEADERS([ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h],,,[ 277 #define SIZEOF_LONG ${ac_cv_sizeof_long} 278 #if SIZEOF_LONG == 8 279 # define INT64_C(c) c ## L 280 # define UINT64_C(c) c ## UL 281 #else 282 # define INT64_C(c) c ## LL 283 # define UINT64_C(c) c ## ULL 284 #endif 277 #define __STDC_CONSTANT_MACROS 1 285 278 ]) 286 279 CPPFLAGS=$save_CPPFLAGS
Note: See TracChangeset
for help on using the changeset viewer.