Changeset 3733


Ignore:
Timestamp:
Jul 1, 2013, 3:44:49 PM (11 years ago)
Author:
gah
Message:

add octave/MATLAB version of example

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r3722 r3733  
    671671OCTAVE_VERSION_MAJOR
    672672OCTAVE_VERSION
     673SVN_VERSION
    673674MKOCTFILE3
    674675MKOCTFILE2
     
    72877288
    72887289
     7290SVN_VERSION=`svnversion $srcdir`
     7291
    72897292make_command=""
    72907293for m in "$MAKE" make gmake gnumake ; do
     
    1015010153
    1015110154
     10155
    1015210156ac_configure_args="--disable-threads --enable-shared"
    1015310157
     
    1015610160
    1015710161
    10158 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile"
     10162ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/scripts/Makefile lang/tcl/src/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile"
    1015910163
    1016010164cat >confcache <<\_ACEOF
     
    1089510899    "lang/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/Makefile" ;;
    1089610900    "lang/tcl/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES lang/tcl/pkgIndex.tcl" ;;
     10901    "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;
    1089710902    "lang/tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/src/Makefile" ;;
    10898     "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;
    1089910903    "lang/tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/tests/Makefile" ;;
    1090010904    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  • trunk/configure.in

    r3722 r3733  
    106106
    107107SC_CONFIG_CFLAGS
     108
     109SVN_VERSION=`svnversion $srcdir`
    108110
    109111make_command=""
     
    360362AC_SUBST(MKOCTFILE2)
    361363AC_SUBST(MKOCTFILE3)
     364AC_SUBST(SVN_VERSION)
    362365AC_SUBST(OCTAVE_VERSION)
    363366AC_SUBST(OCTAVE_VERSION_MAJOR)
     
    471474    lang/tcl/Makefile
    472475    lang/tcl/pkgIndex.tcl
     476    lang/tcl/scripts/Makefile
    473477    lang/tcl/src/Makefile
    474     lang/tcl/scripts/Makefile
    475478    lang/tcl/tests/Makefile
    476479    lib/Makefile
  • trunk/examples/zoo/mesh/mesh.m

    r3732 r3733  
    238238rpLibResult(lib);
    239239quit;
    240 
  • trunk/examples/zoo/mesh/mesh.tcl

    r3732 r3733  
    1111
    1212set meshtype [$driver get input.choice.current]
     13set contour [$driver get input.boolean.current]
     14if { $contour  == "yes" } {
     15    set view contour
     16} else {
     17    set view heightmap
     18}
    1319
    1420set xv [blt::vector create \#auto]
     
    222228
    223229$driver put output.field(substrate).about.label "Substrate Surface"
    224 #$driver put output.field(substrate).about.type "contour"
     230$driver put output.field(substrate).about.view $view
    225231$driver put output.field(substrate).component.mesh $mesh
    226232$driver put -type file -compress no output.field(substrate).component.values \
     
    228234
    229235$driver put output.field(particle).about.label "Particle Surface"
    230 #$driver put output.field(particle).about.type "contour"
     236$driver put output.field(particle).about.view $view
    231237$driver put output.field(particle).component.mesh $mesh
    232238$driver put -type file -compress no output.field(particle).component.values \
  • trunk/gui/scripts/gauge.tcl

    r3654 r3733  
    462462
    463463    if {$state} {
    464         $itk_component($comp) configure -relief solid
     464        $itk_component($comp) configure -relief flat
    465465    } else {
    466466        if {$comp eq "presets"} {
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r3656 r3733  
    389389
    390390    set _image(download) [image create photo]
    391 
     391    puts stderr "args=$args"
    392392    eval itk_initialize $args
    393393    Connect
  • trunk/lang/tcl/pkgIndex.tcl.in

    r2298 r3733  
    55    namespace eval Rappture {
    66        variable version $version
     7        variable build "@SVN_VERSION@"
    78        variable installdir [file normalize $dir]
    89    }
     
    1415    package provide Rappture $version
    1516} $dir]
     17
  • trunk/lang/tcl/src/Rappture_Init.c

    r3730 r3733  
    4444Rappture_Init( Tcl_Interp * interp)
    4545{
     46    fprintf(stderr, "Rappture_init\n");
    4647#ifdef _WIN32
    4748    rpWinInitJob();
  • trunk/lang/tcl/src/RpLibraryTclInterface.cc

    r3177 r3733  
    185185    std::string libName = rpLib2command(interp,rpptr);
    186186
     187    if (Tcl_SetVar(interp, "::Rappture::version", RAPPTURE_VERSION,
     188                   TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG) != NULL) {
     189        return TCL_ERROR;
     190    }
     191    if (Tcl_SetVar(interp, "::Rappture::build", SVN_VERSION,
     192                   TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG) != NULL) {
     193        return TCL_ERROR;
     194    }
    187195    Tcl_AppendResult(interp, libName.c_str(), (char*)NULL);
    188196    return TCL_OK;
Note: See TracChangeset for help on using the changeset viewer.