Changeset 2727


Ignore:
Timestamp:
Dec 12, 2011, 5:44:55 PM (13 years ago)
Author:
gah
Message:
 
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r2726 r2727  
    286286#--------------------------------------------------------------------
    287287
    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 ]])
     288AC_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])
    343291
    344292HAVE_FFMPEG_LIBS=""
  • trunk/gui/scripts/field.tcl

    r2722 r2727  
    204204        return ""  ;# no mesh -- it's embedded in the value data
    205205    }
     206    if {[info exists _comp2vtkvolume($what)]} {
     207        return ""  ;# no mesh -- it's embedded in the value data
     208    }
    206209    if {[info exists _comp2unirect2d($what)]} {
    207210        set mobj [lindex $_comp2unirect2d($what) 0]
     
    264267    if { [info exists _comp2vtk($what)] } {
    265268        return ""
     269    }
     270    if { [info exists _comp2vtkvolume($what)] } {
     271        return $_comp2vtkvolume($what)
    266272    }
    267273    if { [info exists _comp2vtkstreamlines($what)] } {
     
    821827            }
    822828            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            }
    823835            set _comp2vtkvolume($cname) $data
    824836            set _comp2style($cname) [$_field get $cname.style]
  • trunk/gui/scripts/vtkvolumeviewer.tcl

    r2722 r2727  
    10031003    set _limits(zmax) ""
    10041004    set _first ""
     1005
    10051006    foreach dataobj [get -objects] {
    10061007        if { [info exists _obj2ovride($dataobj-raise)] &&  $_first == "" } {
     
    18041805
    18051806itcl::body Rappture::VtkVolumeViewer::limits { dataobj } {
    1806     return
    18071807    array unset _limits $dataobj-*
    18081808    foreach comp [$dataobj components] {
  • trunk/gui/src/RpConvertDxToVtk.c

    r2722 r2727  
    9595    int count[3];
    9696    int length, nComponents, nValues, nPoints;
    97 
     97    char *name;
     98
     99    name = "myScalar";
    98100    nComponents = nPoints = 0;
    99101    delta[0] = delta[1] = delta[2] = 0.0; /* Suppress compiler warning. */
     
    198200    }
    199201
    200     objPtr = Tcl_NewStringObj("vtk DataFile Version 2.0\n", -1);
     202    objPtr = Tcl_NewStringObj("# vtk DataFile Version 2.0\n", -1);
    201203    Tcl_AppendToObj(objPtr, "Converted from DX file\n", -1);
    202204    Tcl_AppendToObj(objPtr, "ASCII\n", -1);
     
    209211    Tcl_AppendToObj(objPtr, mesg, -1);
    210212    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");
    211217    Tcl_AppendToObj(objPtr, mesg, -1);
    212218    Tcl_AppendObjToObj(objPtr, pointsObjPtr);
  • trunk/packages/vizservers/configure

    r2725 r2727  
    85298529  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    85308530ac_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
    85398532
    85408533"
  • trunk/packages/vizservers/configure.in

    r2725 r2727  
    275275
    276276AC_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
    285278])
    286279CPPFLAGS=$save_CPPFLAGS
Note: See TracChangeset for help on using the changeset viewer.