pyEQL 1.4.0rc9__cp313-cp313-macosx_10_13_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyEQL/__init__.py +50 -0
- pyEQL/_phreeqc.cpython-313-darwin.so +0 -0
- pyEQL/activity_correction.py +879 -0
- pyEQL/database/geothermal.dat +5693 -0
- pyEQL/database/llnl.dat +19305 -0
- pyEQL/database/phreeqc_license.txt +54 -0
- pyEQL/database/pyeql_db.json +35607 -0
- pyEQL/engines.py +1153 -0
- pyEQL/equilibrium.py +227 -0
- pyEQL/functions.py +281 -0
- pyEQL/phreeqc/__init__.py +5 -0
- pyEQL/phreeqc/bindings.cpp +84 -0
- pyEQL/phreeqc/core.py +239 -0
- pyEQL/phreeqc/database/Amm.dat +1968 -0
- pyEQL/phreeqc/database/CMakeLists.txt +32 -0
- pyEQL/phreeqc/database/ColdChem.dat +267 -0
- pyEQL/phreeqc/database/Concrete_PHR.dat +158 -0
- pyEQL/phreeqc/database/Concrete_PZ.dat +195 -0
- pyEQL/phreeqc/database/Kinec.v2.dat +12039 -0
- pyEQL/phreeqc/database/Kinec_v3.dat +12159 -0
- pyEQL/phreeqc/database/Makefile.am +28 -0
- pyEQL/phreeqc/database/Makefile.in +530 -0
- pyEQL/phreeqc/database/PHREEQC_ThermoddemV1.10_15Dec2020.dat +12965 -0
- pyEQL/phreeqc/database/Tipping_Hurley.dat +4137 -0
- pyEQL/phreeqc/database/__init__.py +0 -0
- pyEQL/phreeqc/database/core10.dat +6824 -0
- pyEQL/phreeqc/database/frezchem.dat +634 -0
- pyEQL/phreeqc/database/iso.dat +7235 -0
- pyEQL/phreeqc/database/llnl.dat +19310 -0
- pyEQL/phreeqc/database/minteq.dat +5654 -0
- pyEQL/phreeqc/database/minteq.v4.dat +13212 -0
- pyEQL/phreeqc/database/phreeqc.dat +1972 -0
- pyEQL/phreeqc/database/phreeqc_rates.dat +3158 -0
- pyEQL/phreeqc/database/pitzer.dat +1044 -0
- pyEQL/phreeqc/database/sit.dat +14348 -0
- pyEQL/phreeqc/database/wateq4f.dat +4036 -0
- pyEQL/phreeqc/ext/README.md +10 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/CMakeLists.txt +476 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/INSTALL +302 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/IPhreeqc.rc +61 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/IPhreeqcConfig.cmake.in +4 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/Makefile.am +8 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/Makefile.in +816 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/aclocal.m4 +1217 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/CTestScript.cmake +167 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/CSelectedOutput.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqc.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqcLib.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqc_interface_F.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/Var.c.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Dictionary.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ExchComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Exchange.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/GasComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/GasPhase.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ISolution.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ISolutionComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/KineticsComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/NameDouble.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/NumKeyword.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PBasic.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PHRQ_io_output.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PPassemblage.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PPassemblageComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Phreeqc.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Pressure.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Reaction.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ReadClass.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SS.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SSassemblage.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SScomp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SelectedOutput.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Serializer.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Solution.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SolutionIsotope.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/StorageBin.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/StorageBinList.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Surface.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SurfaceCharge.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SurfaceComp.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/System.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Temperature.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Use.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/UserPunch.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/advection.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/basicsubs.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cl1.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/PHRQ_base.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/PHRQ_io.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/Parser.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/Utils.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cvdense.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cvode.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cxxKinetics.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cxxMix.cxx.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/dense.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/dumper.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/gases.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/input.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/integrate.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/inverse.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/isotopes.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/kinetics.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/mainsubs.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/model.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/nvector.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/nvector_serial.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/parse.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/phqalloc.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/pitzer.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/pitzer_structures.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/prep.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/print.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/read.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/readtr.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/runner.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/sit.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/smalldense.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/spread.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/step.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/structures.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/sundialsmath.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/tally.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/tidy.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/transport.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/utilities.cpp.o +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CTestTestfile.cmake +6 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/DartConfiguration.tcl +109 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/cmake_install.cmake +45 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/libIPhreeqc.a +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ar-lib +270 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/compile +347 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.guess +1441 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.sub +1813 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/depcomp +791 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/install-sh +508 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ltmain.sh +11156 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/missing +215 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/test-driver +148 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure +23867 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure.ac +136 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Amm.dat +1968 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/CMakeLists.txt +32 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/ColdChem.dat +267 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PHR.dat +158 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PZ.dat +195 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec.v2.dat +12039 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec_v3.dat +12159 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.am +28 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.in +530 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/PHREEQC_ThermoddemV1.10_15Dec2020.dat +12965 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Tipping_Hurley.dat +4137 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/core10.dat +6824 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/frezchem.dat +634 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/iso.dat +7235 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/llnl.dat +19310 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.dat +5654 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.v4.dat +13212 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc.dat +1972 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc_rates.dat +3158 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/pitzer.dat +1044 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/sit.dat +14348 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/wateq4f.dat +4036 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/CMakeLists.txt +35 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/IPhreeqc.pdf +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.am +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.in +545 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/NOTICE +51 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_2_1999_manual.pdf +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_3_2013_manual.pdf +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/README +428 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/RELEASE +7294 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h.html +5096 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h_source.html +389 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp.html +83 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp_source.html +478 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h.html +318 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h_source.html +200 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bc_s.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bdwn.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.html +2274 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.html +69 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/closed.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +68 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.css +1440 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dynsections.js +97 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2blank.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2doc.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderclosed.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderopen.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2lastnode.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2link.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mlastnode.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mnode.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2node.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2plastnode.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2pnode.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2splitbar.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2vertline.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/index.html +58 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/jquery.js +31 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_f.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_g.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_h.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/open.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/structVAR.html +143 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_off.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_on.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_a.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_b.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_h.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_s.png +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tabs.css +60 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/phreeqc3.chm +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/CMakeLists.txt +11 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.am +88 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.in +696 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/CMakeLists.txt +1 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt +35 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt.in +21 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/README.txt +44 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/advect.c +101 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/ic +17 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/phreeqc.dat +1579 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/CMakeLists.txt +10 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/README.txt +3 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/CMakeLists.txt +9 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/phreeqc.dat +1582 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/runphreeqc.xls +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/withcallback.xls +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/CMakeLists.txt +11 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/Gypsum.py +52 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/parallel_advect.py +465 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/phreeqc.dat +1582 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/pitzer.dat +790 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/wateq4f.dat +3846 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/CMakeLists.txt +1 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt +35 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt.in +20 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/README.txt +45 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/advect.cpp +110 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/ic +17 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/phreeqc.dat +1579 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/CMakeLists.txt +1 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt +44 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt.in +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/README.txt +45 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/advect.F90 +102 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/ic +17 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/phreeqc.dat +1579 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt +26 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt.in +20 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/README.txt +37 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/ex2 +26 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/main.cpp +20 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/phreeqc.dat +1837 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/post-install.cmake.in +7 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/CMakeLists.txt +185 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.cpp +171 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.h +34 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.am +18 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.in +466 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestCVar.cpp +9 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqc.cpp +4901 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqcLib.cpp +4644 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestSelectedOutput.cpp +669 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestVar.cpp +10 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/conv_fail.in +11 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/dump +42 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/iso.dat +7231 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/kinn20140218 +349 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/missing_e.dat +1556 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch +105 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch_no_set +102 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.90a6449 +1935 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.old +1556 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/libtool.m4 +8388 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltoptions.m4 +437 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltsugar.m4 +124 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltversion.m4 +23 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/lt~obsolete.m4 +99 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/resource.h +14 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.cpp +401 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.hxx +77 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CVar.hxx +162 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Debug.h +12 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/ErrorReporter.hxx +70 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.cpp +1889 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f.inc +91 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f90.inc +603 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.h +2182 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.hpp +1027 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcCallbacks.h +19 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcF.f +653 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcLib.cpp +1098 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface.F90 +1283 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.cpp +535 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.h +162 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.am +210 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.in +1294 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/README.Fortran +17 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.c +84 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.h +152 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Version.h +36 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fimpl.h +282 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.cpp +646 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.h +163 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap1.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap2.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap3.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap4.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap5.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap6.cpp +25 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap7.cpp +25 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap8.cpp +24 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.cpp +225 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.h +59 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.cpp +1382 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.h +444 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.cpp +42 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.h +79 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.cpp +41 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.h +28 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.cxx +398 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.h +117 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.cxx +466 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.h +74 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.h +1184 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.resX +36 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.cxx +265 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.h +59 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.cxx +659 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.h +103 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.cxx +40 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.h +53 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.cxx +202 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.h +138 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.cxx +318 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.h +81 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NA.h +1 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.cxx +537 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.h +66 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.cxx +190 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.h +67 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.cpp +8350 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.h +572 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PHRQ_io_output.cpp +411 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.cxx +375 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.h +70 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.cxx +441 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.h +83 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.cpp +2087 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.h +2164 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp +242 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.h +104 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.cxx +417 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.h +43 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.cxx +284 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.h +57 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ReadClass.cxx +1150 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.cxx +609 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.h +128 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.cxx +317 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.h +59 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.cxx +297 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.h +66 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.cpp +115 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.h +209 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.cxx +213 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.h +42 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.cxx +1795 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.h +154 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.cxx +333 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.h +85 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.cxx +1507 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.h +141 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.cpp +358 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.h +81 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.cxx +837 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.h +108 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.cxx +617 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.h +137 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.cxx +509 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.h +70 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.cxx +103 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.h +89 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.cxx +423 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.h +42 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.cpp +78 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.h +159 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.cpp +32 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.h +39 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ZedGraph.dll +0 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/advection.cpp +140 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/basicsubs.cpp +4333 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cl1.cpp +881 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.cxx +117 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.h +48 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_exports.h +20 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.cpp +914 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.h +207 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.cxx +1331 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.h +310 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.cxx +263 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.h +29 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/phrqtype.h +18 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.cpp +566 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.h +267 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.cpp +3939 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.h +940 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.cxx +617 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.h +78 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.cxx +154 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.h +58 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.cpp +175 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.h +341 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.cpp +277 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.h +60 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/gases.cpp +748 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/global_structures.h +1672 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/input.cpp +133 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/integrate.cpp +1219 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/inverse.cpp +5135 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/isotopes.cpp +1813 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/kinetics.cpp +3180 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/mainsubs.cpp +2320 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/model.cpp +5843 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.cpp +272 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.h +485 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.cpp +1032 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.h +369 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/parse.cpp +1044 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.cpp +316 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.h +47 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer.cpp +2709 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer_structures.cpp +225 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/prep.cpp +6267 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/print.cpp +3673 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/read.cpp +10245 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/readtr.cpp +1495 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.cpp +158 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.h +33 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sit.cpp +1684 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.cpp +324 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.h +261 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/spread.cpp +1309 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/step.cpp +1566 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/structures.cpp +3381 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.cpp +133 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.h +162 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialstypes.h +183 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tally.cpp +1288 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tidy.cpp +5600 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/transport.cpp +6403 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/utilities.cpp +1339 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/thread.h +64 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/CMakeLists.txt +133 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.am +45 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.in +1128 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/ex2.in +26 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main.f90 +31 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main77.f +6 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main_fortran.cxx +8 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/phreeqc.dat.in +1556 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_c.c +148 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_cxx.cxx +152 -0
- pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_f90.F90 +328 -0
- pyEQL/phreeqc/iphreeqc_wrapper.cpp +75 -0
- pyEQL/phreeqc/solution.py +74 -0
- pyEQL/phreeqc/var.py +50 -0
- pyEQL/presets/Ringers lactate.yaml +20 -0
- pyEQL/presets/__init__.py +17 -0
- pyEQL/presets/normal saline.yaml +17 -0
- pyEQL/presets/rainwater.yaml +17 -0
- pyEQL/presets/seawater.yaml +29 -0
- pyEQL/presets/urine.yaml +26 -0
- pyEQL/presets/wastewater.yaml +21 -0
- pyEQL/py.typed +0 -0
- pyEQL/salt_ion_match.py +112 -0
- pyEQL/solute.py +163 -0
- pyEQL/solution.py +2714 -0
- pyEQL/utils.py +237 -0
- pyeql-1.4.0rc9.dist-info/METADATA +130 -0
- pyeql-1.4.0rc9.dist-info/RECORD +491 -0
- pyeql-1.4.0rc9.dist-info/WHEEL +6 -0
- pyeql-1.4.0rc9.dist-info/licenses/AUTHORS.md +21 -0
- pyeql-1.4.0rc9.dist-info/licenses/LICENSE.txt +20 -0
|
@@ -0,0 +1,1184 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <Windows.h>
|
|
3
|
+
#include <cassert>
|
|
4
|
+
|
|
5
|
+
namespace zdg_ui2 {
|
|
6
|
+
using namespace System;
|
|
7
|
+
//using namespace System::ComponentModel;
|
|
8
|
+
using namespace System::Resources;
|
|
9
|
+
using namespace System::Windows::Forms;
|
|
10
|
+
using namespace System::Drawing;
|
|
11
|
+
using namespace System::Drawing::Imaging;
|
|
12
|
+
using namespace System::Threading;
|
|
13
|
+
using namespace ZedGraph;
|
|
14
|
+
//using namespace System::Runtime::InteropServices;
|
|
15
|
+
//[DllImport("gdi32.dll")]
|
|
16
|
+
////extern IntPtr CopyEnhMetaFileA(IntPtr hemfSrc, System::Text::StringBuilder* hNULL);
|
|
17
|
+
//extern IntPtr CopyEnhMetaFileA(IntPtr hemfSrc, String^ hNULL);
|
|
18
|
+
// Form1 is only used with MULTICHART
|
|
19
|
+
public ref class ChartObj : public System::Object
|
|
20
|
+
{
|
|
21
|
+
public: ChartObject* chartobject_ptr;
|
|
22
|
+
public: ChartObj(ChartObject* ptr)
|
|
23
|
+
{
|
|
24
|
+
this->chartobject_ptr = ptr;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
public ref class Form1 : public System::Windows::Forms::Form
|
|
29
|
+
{
|
|
30
|
+
public: long int tickStart;
|
|
31
|
+
public: Form1(ChartObject *ptr)
|
|
32
|
+
{
|
|
33
|
+
this->chartobject_ptr = ptr;
|
|
34
|
+
if (Phreeqc* ptr = this->chartobject_ptr->Get_phreeqc())
|
|
35
|
+
{
|
|
36
|
+
ptr->Get_chart_handler().Increment_active_charts();
|
|
37
|
+
}
|
|
38
|
+
InitializeComponent();
|
|
39
|
+
col_use = 0;
|
|
40
|
+
symbol_use = 0;
|
|
41
|
+
Y2 = false;
|
|
42
|
+
phreeqc_done = false;
|
|
43
|
+
Y2show = false;
|
|
44
|
+
background = true;
|
|
45
|
+
hints = true;
|
|
46
|
+
grid = true;
|
|
47
|
+
}
|
|
48
|
+
static void ThreadForm(Object^ data)
|
|
49
|
+
{
|
|
50
|
+
ChartObject *ptr = ((ChartObj^)(data))->chartobject_ptr;
|
|
51
|
+
Form1 ^myForm = gcnew Form1(ptr);
|
|
52
|
+
myForm->ShowDialog();
|
|
53
|
+
myForm->~Form1();
|
|
54
|
+
}
|
|
55
|
+
private: bool phreeqc_done;
|
|
56
|
+
|
|
57
|
+
private: void SetSize()
|
|
58
|
+
{
|
|
59
|
+
zg1->Location = Point( 0, 0 );
|
|
60
|
+
// Leave a small margin around the outside of the control
|
|
61
|
+
zg1->Size = System::Drawing::Size( ClientRectangle.Width - 0,
|
|
62
|
+
ClientRectangle.Height - 0 );
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
System::Void MyFormClosingEventHandler(
|
|
66
|
+
System::Object^ sender,
|
|
67
|
+
System::Windows::Forms::FormClosingEventArgs ^e)
|
|
68
|
+
{
|
|
69
|
+
ChartObject *chart = this->chartobject_ptr;
|
|
70
|
+
if (chart != NULL)
|
|
71
|
+
{
|
|
72
|
+
chart->Set_done(true);
|
|
73
|
+
System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
74
|
+
if (Phreeqc* ptr = chart->Get_phreeqc())
|
|
75
|
+
{
|
|
76
|
+
ptr->Get_chart_handler().Decrement_active_charts();
|
|
77
|
+
//chart->Set_phreeqc(NULL);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this->chartobject_ptr = NULL;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
System::Void Form1_Load(System::Object ^sender, System::EventArgs ^e)
|
|
84
|
+
{
|
|
85
|
+
CreateGraph( zg1 );
|
|
86
|
+
SetSize();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
System::Void Form1_Resize(System::Object ^sender, System::EventArgs ^e)
|
|
90
|
+
{
|
|
91
|
+
SetSize();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
//static bool LogX, LogY, LogY2;
|
|
95
|
+
bool LogX, LogY, LogY2;
|
|
96
|
+
private: bool check_neg_log( int i, int i2)
|
|
97
|
+
{
|
|
98
|
+
ChartObject *chart = this->chartobject_ptr;
|
|
99
|
+
if (chart == NULL) return false;
|
|
100
|
+
std::vector<CurveObject *> &Curves = chart->Get_Curves();
|
|
101
|
+
if (LogX && chart->Get_axis_scale_x()[4] == 10.0 &&
|
|
102
|
+
Curves[i]->Get_x()[i2] <= 0)
|
|
103
|
+
{
|
|
104
|
+
if (Phreeqc* ptr = chart->Get_phreeqc())
|
|
105
|
+
{
|
|
106
|
+
ptr->warning_msg("Obtained x_value <= 0, removing point...");
|
|
107
|
+
}
|
|
108
|
+
//axis_scale_x[4] = NA; /* if reverting to linear... */
|
|
109
|
+
//LogX = false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
if (Curves[i]->Get_y()[i2] <= 0 &&
|
|
113
|
+
(chart->Get_axis_scale_y()[4] == 10.0 ||
|
|
114
|
+
chart->Get_axis_scale_y2()[4] == 10.0))
|
|
115
|
+
{
|
|
116
|
+
if (Curves[i]->Get_y_axis() == 2 && LogY2)
|
|
117
|
+
{
|
|
118
|
+
if (Phreeqc* ptr = chart->Get_phreeqc())
|
|
119
|
+
{
|
|
120
|
+
ptr->warning_msg("Obtained sy_value <= 0, removing point......");
|
|
121
|
+
}
|
|
122
|
+
//axis_scale_y2[4] = NA;
|
|
123
|
+
//LogY2 = false;
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
else if (LogY)
|
|
127
|
+
{
|
|
128
|
+
if (Phreeqc* ptr = chart->Get_phreeqc())
|
|
129
|
+
{
|
|
130
|
+
ptr->warning_msg("Obtained y_value <= 0, removing point......");
|
|
131
|
+
}
|
|
132
|
+
//axis_scale_y[4] = NA;
|
|
133
|
+
//LogY = false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
private: PointPairList ^list;
|
|
141
|
+
int col_use, symbol_use;
|
|
142
|
+
bool Y2, Y2show;
|
|
143
|
+
// static cli::array<String^> ^ColorList = {"Red", "Green", "Blue", "Orange", "Magenta", "Yellow", "Black", "Cyan", "Brown", "Lime", "Gray" };
|
|
144
|
+
static cli::array<String^> ^ColorList = {"Red", "Green", "Blue", "Orange", "Magenta", "Black", "Cyan", "Brown", "Lime", "Gray" };
|
|
145
|
+
bool background, hints, grid;
|
|
146
|
+
|
|
147
|
+
ZedGraph::GraphObjList ^GOL_no_hints;
|
|
148
|
+
ZedGraph::GraphObjList ^GOL_hints;
|
|
149
|
+
|
|
150
|
+
void DefineCurves(GraphPane ^myPane, int init)
|
|
151
|
+
{
|
|
152
|
+
ChartObject *chart = this->chartobject_ptr;
|
|
153
|
+
if (chart == NULL)
|
|
154
|
+
{
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
std::vector<CurveObject *> Curves;
|
|
158
|
+
size_t i;
|
|
159
|
+
for (i = 0; i < chart->Get_CurvesCSV().size(); i++)
|
|
160
|
+
{
|
|
161
|
+
Curves.push_back(chart->Get_CurvesCSV()[i]);
|
|
162
|
+
}
|
|
163
|
+
for (i = 0; i < chart->Get_Curves().size(); i++)
|
|
164
|
+
{
|
|
165
|
+
Curves.push_back(chart->Get_Curves()[i]);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
chart->Set_curve_added(false);
|
|
169
|
+
|
|
170
|
+
// Set the titles and axis labels
|
|
171
|
+
myPane->Title->Text = gcnew String(chart->Get_chart_title().c_str());
|
|
172
|
+
if (chart->Get_axis_titles().size() > 0)
|
|
173
|
+
myPane->XAxis->Title->Text = gcnew String(chart->Get_axis_titles()[0].c_str());
|
|
174
|
+
if (chart->Get_axis_titles().size() > 1)
|
|
175
|
+
myPane->YAxis->Title->Text = gcnew String(chart->Get_axis_titles()[1].c_str());
|
|
176
|
+
if (chart->Get_axis_titles().size() > 2)
|
|
177
|
+
myPane->Y2Axis->Title->Text = gcnew String(chart->Get_axis_titles()[2].c_str());
|
|
178
|
+
|
|
179
|
+
LineItem ^myCurve;
|
|
180
|
+
|
|
181
|
+
Color col;
|
|
182
|
+
|
|
183
|
+
String ^s_t;
|
|
184
|
+
if (chart->Get_axis_scale_x()[4] == 10.0) LogX = true;
|
|
185
|
+
else LogX = false;
|
|
186
|
+
if (chart->Get_axis_scale_y()[4] == 10.0) LogY = true;
|
|
187
|
+
else LogY = false;
|
|
188
|
+
if (chart->Get_axis_scale_y2()[4] == 10.0) LogY2 = true;
|
|
189
|
+
else LogY2 = false;
|
|
190
|
+
|
|
191
|
+
//Rewrite all curves
|
|
192
|
+
zg1->GraphPane->CurveList->Clear();
|
|
193
|
+
for (size_t i = 0; i < Curves.size(); i++)
|
|
194
|
+
{
|
|
195
|
+
// even curves with no data
|
|
196
|
+
//if (Curves[i]->Get_x().size() == 0) continue;
|
|
197
|
+
list = gcnew PointPairList();
|
|
198
|
+
if (Curves[i]->Get_y_axis() == 2)
|
|
199
|
+
{
|
|
200
|
+
Y2 = true;
|
|
201
|
+
Y2show = true;
|
|
202
|
+
}
|
|
203
|
+
else
|
|
204
|
+
Y2 = false;
|
|
205
|
+
for (int i2 = 0; (i2 < (int) Curves[i]->Get_x().size()); i2++)
|
|
206
|
+
{
|
|
207
|
+
if ((LogX && Curves[i]->Get_x()[i2] <=0)
|
|
208
|
+
|| (LogY && !Y2 && Curves[i]->Get_y()[i2] <=0)
|
|
209
|
+
|| (LogY2 && Y2 && Curves[i]->Get_y()[i2] <=0))
|
|
210
|
+
continue;
|
|
211
|
+
else
|
|
212
|
+
list->Add( Curves[i]->Get_x()[i2], Curves[i]->Get_y()[i2] );
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
col = Color::FromName(gcnew String(Curves[i]->Get_color().c_str()));
|
|
216
|
+
if (!col.IsKnownColor)
|
|
217
|
+
{
|
|
218
|
+
col = Color::FromName(ColorList[col_use]);
|
|
219
|
+
std::string newcol;
|
|
220
|
+
ToString(col.ToString(), newcol);
|
|
221
|
+
Utilities::replace("Color [","",newcol);
|
|
222
|
+
Utilities::replace("]","",newcol);
|
|
223
|
+
Curves[i]->Set_color(newcol);
|
|
224
|
+
|
|
225
|
+
}
|
|
226
|
+
if (++col_use > 6) col_use = 0;
|
|
227
|
+
|
|
228
|
+
SymbolType symb = chart->Return_SymbolType
|
|
229
|
+
(Curves[i]->Get_symbol());
|
|
230
|
+
|
|
231
|
+
// id
|
|
232
|
+
s_t = gcnew String(Curves[i]->Get_id().c_str());
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
// Add curve to chart
|
|
236
|
+
myCurve = myPane->AddCurve( s_t, list, col, symb );
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
// Curve with no points is invisible
|
|
240
|
+
if (Curves[i]->Get_x().size() == 0)
|
|
241
|
+
{
|
|
242
|
+
myCurve->IsVisible = false;
|
|
243
|
+
myCurve->Label->IsVisible = false;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (Curves[i]->Get_line_w() > 0.0)
|
|
247
|
+
myCurve->Line->Width = (float) Curves[i]->Get_line_w();
|
|
248
|
+
else
|
|
249
|
+
myCurve->Line->IsVisible = false;
|
|
250
|
+
/* hmm... dash/dot don`t display well */
|
|
251
|
+
// myCurve->Line->Style = System::Drawing::Drawing2D::DashStyle::Dot;
|
|
252
|
+
myCurve->Symbol->Fill = gcnew Fill( Color::FromName("White") );
|
|
253
|
+
if (Curves[i]->Get_symbol_size() > 0.0)
|
|
254
|
+
myCurve->Symbol->Size = (float) Curves[i]->Get_symbol_size();
|
|
255
|
+
else
|
|
256
|
+
myCurve->Symbol->IsVisible = false;
|
|
257
|
+
myCurve->Symbol->Border->Width = (float) Curves[i]->Get_line_w();
|
|
258
|
+
if (Y2)
|
|
259
|
+
myCurve->IsY2Axis = true;
|
|
260
|
+
delete list;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (Y2show)
|
|
264
|
+
myPane->Legend->Position = ZedGraph::LegendPos::TopCenter;
|
|
265
|
+
else
|
|
266
|
+
myPane->Legend->Position = ZedGraph::LegendPos::Right;
|
|
267
|
+
myPane->Legend->FontSpec->Size = 12;
|
|
268
|
+
myPane->Legend->FontSpec->IsBold = false;
|
|
269
|
+
|
|
270
|
+
// Show the x axis grid
|
|
271
|
+
myPane->XAxis->MajorGrid->IsVisible = true;
|
|
272
|
+
if (fabs(chart->Get_axis_scale_x()[0] - NA) > 1e-3)
|
|
273
|
+
myPane->XAxis->Scale->Min = chart->Get_axis_scale_x()[0];
|
|
274
|
+
else
|
|
275
|
+
myPane->XAxis->Scale->MinAuto = true;
|
|
276
|
+
if (fabs(chart->Get_axis_scale_x()[1] - NA) > 1e-3)
|
|
277
|
+
myPane->XAxis->Scale->Max = chart->Get_axis_scale_x()[1];
|
|
278
|
+
else
|
|
279
|
+
myPane->XAxis->Scale->MaxAuto = true;
|
|
280
|
+
if (fabs(chart->Get_axis_scale_x()[2] - NA) > 1e-3)
|
|
281
|
+
myPane->XAxis->Scale->MajorStep = chart->Get_axis_scale_x()[2];
|
|
282
|
+
else
|
|
283
|
+
myPane->XAxis->Scale->MajorStepAuto = true;
|
|
284
|
+
if (fabs(chart->Get_axis_scale_x()[3] - NA) > 1e-3)
|
|
285
|
+
{
|
|
286
|
+
myPane->XAxis->Scale->MinorStep = chart->Get_axis_scale_x()[3];
|
|
287
|
+
if (chart->Get_axis_scale_x()[3] == 0.0)
|
|
288
|
+
// remove minor tics
|
|
289
|
+
myPane->XAxis->MinorTic->Size = 0;
|
|
290
|
+
}
|
|
291
|
+
else
|
|
292
|
+
myPane->XAxis->Scale->MinorStepAuto = true;
|
|
293
|
+
if (chart->Get_axis_scale_x()[4] == 10.0)
|
|
294
|
+
myPane->XAxis->Type = AxisType::Log;
|
|
295
|
+
|
|
296
|
+
// Make the Y axis scale red
|
|
297
|
+
// myPane->YAxis->Scale->FontSpec->FontColor = Color::Red;
|
|
298
|
+
// myPane->YAxis->Title->FontSpec->FontColor = Color::Red;
|
|
299
|
+
// turn off the opposite tics so the Y tics don`t show up on the Y2 axis
|
|
300
|
+
if (Y2show)
|
|
301
|
+
{
|
|
302
|
+
myPane->YAxis->MajorTic->IsOpposite = false;
|
|
303
|
+
myPane->YAxis->MinorTic->IsOpposite = false;
|
|
304
|
+
}
|
|
305
|
+
// Don`t display the Y zero line
|
|
306
|
+
myPane->YAxis->MajorGrid->IsZeroLine = false;
|
|
307
|
+
// Align the Y axis labels so they are flush to the axis
|
|
308
|
+
myPane->YAxis->Scale->Align = AlignP::Inside;
|
|
309
|
+
myPane->YAxis->MajorGrid->IsVisible = true;
|
|
310
|
+
if (fabs(chart->Get_axis_scale_y()[0] - NA) > 1e-3)
|
|
311
|
+
myPane->YAxis->Scale->Min = chart->Get_axis_scale_y()[0];
|
|
312
|
+
else
|
|
313
|
+
myPane->YAxis->Scale->MinAuto = true;
|
|
314
|
+
if (fabs(chart->Get_axis_scale_y()[1] - NA) > 1e-3)
|
|
315
|
+
myPane->YAxis->Scale->Max = chart->Get_axis_scale_y()[1];
|
|
316
|
+
else
|
|
317
|
+
myPane->YAxis->Scale->MaxAuto = true;
|
|
318
|
+
if (fabs(chart->Get_axis_scale_y()[2] - NA) > 1e-3)
|
|
319
|
+
myPane->YAxis->Scale->MajorStep = chart->Get_axis_scale_y()[2];
|
|
320
|
+
else
|
|
321
|
+
myPane->YAxis->Scale->MajorStepAuto = true;
|
|
322
|
+
if (fabs(chart->Get_axis_scale_y()[3] - NA) > 1e-3)
|
|
323
|
+
{
|
|
324
|
+
myPane->YAxis->Scale->MinorStep = chart->Get_axis_scale_y()[3];
|
|
325
|
+
if (chart->Get_axis_scale_y()[3] == 0.0)
|
|
326
|
+
// remove minor tics
|
|
327
|
+
myPane->YAxis->MinorTic->Size = 0;
|
|
328
|
+
}
|
|
329
|
+
else
|
|
330
|
+
myPane->YAxis->Scale->MinorStepAuto = true;
|
|
331
|
+
if (chart->Get_axis_scale_y()[4] == 10.0)
|
|
332
|
+
myPane->YAxis->Type = AxisType::Log;
|
|
333
|
+
|
|
334
|
+
// Enable the Y2 axis display
|
|
335
|
+
if (Y2show)
|
|
336
|
+
{
|
|
337
|
+
myPane->Y2Axis->IsVisible = true;
|
|
338
|
+
// Make the Y2 axis scale blue
|
|
339
|
+
// myPane->Y2Axis->Scale->FontSpec->FontColor = Color::Blue;
|
|
340
|
+
// myPane->Y2Axis->Title->FontSpec->FontColor = Color::Blue;
|
|
341
|
+
// turn off the opposite tics so the Y2 tics don`t show up on the Y axis
|
|
342
|
+
myPane->Y2Axis->MajorTic->IsOpposite = false;
|
|
343
|
+
myPane->Y2Axis->MinorTic->IsOpposite = false;
|
|
344
|
+
// Don`t display the Y2 axis grid lines
|
|
345
|
+
myPane->Y2Axis->MajorGrid->IsVisible = false;
|
|
346
|
+
// Align the Y2 axis labels so they are flush to the axis
|
|
347
|
+
myPane->Y2Axis->Scale->Align = AlignP::Inside;
|
|
348
|
+
|
|
349
|
+
if (fabs(chart->Get_axis_scale_y2()[0] - NA) > 1e-3)
|
|
350
|
+
myPane->Y2Axis->Scale->Min = chart->Get_axis_scale_y2()[0];
|
|
351
|
+
else
|
|
352
|
+
myPane->Y2Axis->Scale->MinAuto = true;
|
|
353
|
+
if (fabs(chart->Get_axis_scale_y2()[1] - NA) > 1e-3)
|
|
354
|
+
myPane->Y2Axis->Scale->Max = chart->Get_axis_scale_y2()[1];
|
|
355
|
+
else
|
|
356
|
+
myPane->Y2Axis->Scale->MaxAuto = true;
|
|
357
|
+
if (fabs(chart->Get_axis_scale_y2()[2] - NA) > 1e-3)
|
|
358
|
+
myPane->Y2Axis->Scale->MajorStep = chart->Get_axis_scale_y2()[2];
|
|
359
|
+
else
|
|
360
|
+
myPane->Y2Axis->Scale->MajorStepAuto = true;
|
|
361
|
+
if (fabs(chart->Get_axis_scale_y2()[3] - NA) > 1e-3)
|
|
362
|
+
{
|
|
363
|
+
myPane->Y2Axis->Scale->MinorStep = chart->Get_axis_scale_y2()[3];
|
|
364
|
+
if (chart->Get_axis_scale_y2()[3] == 0.0)
|
|
365
|
+
// remove minor tics
|
|
366
|
+
myPane->Y2Axis->MinorTic->Size = 0;
|
|
367
|
+
}
|
|
368
|
+
else
|
|
369
|
+
myPane->Y2Axis->Scale->MinorStepAuto = true;
|
|
370
|
+
if (chart->Get_axis_scale_y2()[4] == 10.0)
|
|
371
|
+
myPane->Y2Axis->Type = AxisType::Log;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
myPane->XAxis->MinorTic->IsOutside = false;
|
|
375
|
+
myPane->XAxis->MajorTic->IsOutside = false;
|
|
376
|
+
myPane->YAxis->MinorTic->IsOutside = false;
|
|
377
|
+
myPane->YAxis->MajorTic->IsOutside = false;
|
|
378
|
+
myPane->Y2Axis->MinorTic->IsOutside = false;
|
|
379
|
+
myPane->Y2Axis->MajorTic->IsOutside = false;
|
|
380
|
+
|
|
381
|
+
// Fill the axis background with a gradient
|
|
382
|
+
//myPane->Chart->Fill = gcnew Fill( Color::White, Color::LightYellow, 45.0f ); /* FromArgb(255, 255, 224) */
|
|
383
|
+
if (this->background)
|
|
384
|
+
{
|
|
385
|
+
myPane->Chart->Fill = gcnew Fill( Color::White, Color::FromArgb(255, 255, 230), 45.0f );
|
|
386
|
+
}
|
|
387
|
+
else
|
|
388
|
+
{
|
|
389
|
+
myPane->Chart->Fill = gcnew Fill( Color::White, Color::White, 45.0f );
|
|
390
|
+
}
|
|
391
|
+
if (this->grid)
|
|
392
|
+
{
|
|
393
|
+
myPane->XAxis->MajorGrid->IsVisible = true;
|
|
394
|
+
myPane->YAxis->MajorGrid->IsVisible = true;
|
|
395
|
+
}
|
|
396
|
+
else
|
|
397
|
+
{
|
|
398
|
+
myPane->XAxis->MajorGrid->IsVisible = false;
|
|
399
|
+
myPane->YAxis->MajorGrid->IsVisible = false;
|
|
400
|
+
}
|
|
401
|
+
// normalize pane size...
|
|
402
|
+
myPane->BaseDimension = 8.0F;
|
|
403
|
+
// increase bottom margin to accommodate text options...
|
|
404
|
+
myPane->Margin->Bottom = 15.0F;
|
|
405
|
+
|
|
406
|
+
// Make sure auto scale, Refresh
|
|
407
|
+
zg1->AxisChange();
|
|
408
|
+
zg1->Refresh();
|
|
409
|
+
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
public: void CreateGraph( ZedGraphControl ^z1 ) {
|
|
413
|
+
// Get a reference to the GraphPane instance in the ZedGraphControl
|
|
414
|
+
GraphPane ^myPane = z1->GraphPane;
|
|
415
|
+
|
|
416
|
+
// lock thread
|
|
417
|
+
while (0 != System::Threading::Interlocked::CompareExchange(this->chartobject_ptr->usingResource, 2, 0))
|
|
418
|
+
{
|
|
419
|
+
System::Threading::Thread::Sleep(5);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
try
|
|
423
|
+
{
|
|
424
|
+
|
|
425
|
+
DefineCurves(myPane, 0);
|
|
426
|
+
|
|
427
|
+
// Add text boxes with instructions...
|
|
428
|
+
GOL_no_hints = gcnew ZedGraph::GraphObjList(myPane->GraphObjList);
|
|
429
|
+
|
|
430
|
+
TextObj ^text;
|
|
431
|
+
text = gcnew TextObj(
|
|
432
|
+
L" Click right mouse for options... \0",
|
|
433
|
+
0.01f, 0.99f, CoordType::PaneFraction, AlignH::Left, AlignV::Bottom );
|
|
434
|
+
text->FontSpec->StringAlignment = StringAlignment::Near;
|
|
435
|
+
text->FontSpec->Size = 10;
|
|
436
|
+
text->FontSpec->FontColor = Color::Red;
|
|
437
|
+
text->ZOrder = ZOrder::H_BehindAll;
|
|
438
|
+
myPane->GraphObjList->Add( text );
|
|
439
|
+
text = gcnew TextObj(
|
|
440
|
+
L" Press Alt + F4 to quit",
|
|
441
|
+
0.81f, 0.99f, CoordType::PaneFraction, AlignH::Left, AlignV::Bottom );
|
|
442
|
+
text->FontSpec->StringAlignment = StringAlignment::Near;
|
|
443
|
+
text->FontSpec->Size = 10;
|
|
444
|
+
text->FontSpec->FontColor = Color::Red;
|
|
445
|
+
text->ZOrder = ZOrder::H_BehindAll;
|
|
446
|
+
myPane->GraphObjList->Add( text );
|
|
447
|
+
|
|
448
|
+
GOL_hints = gcnew ZedGraph::GraphObjList(myPane->GraphObjList);
|
|
449
|
+
if (this->hints)
|
|
450
|
+
{
|
|
451
|
+
myPane->GraphObjList = GOL_hints;
|
|
452
|
+
}
|
|
453
|
+
else
|
|
454
|
+
{
|
|
455
|
+
myPane->GraphObjList = GOL_no_hints;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// Enable scrollbars if needed...
|
|
459
|
+
/*z1->IsShowHScrollBar = true;
|
|
460
|
+
z1->IsShowVScrollBar = true;
|
|
461
|
+
z1->IsAutoScrollRange = true;
|
|
462
|
+
z1->IsScrollY2 = true;*/
|
|
463
|
+
|
|
464
|
+
// OPTIONAL: Show tooltips when the mouse hovers over a point
|
|
465
|
+
z1->IsShowPointValues = false;
|
|
466
|
+
z1->PointValueEvent += gcnew ZedGraphControl::PointValueHandler( this,
|
|
467
|
+
&Form1::MyPointValueHandler );
|
|
468
|
+
|
|
469
|
+
// OPTIONAL: Add a custom context menu item
|
|
470
|
+
z1->ContextMenuBuilder += gcnew ZedGraphControl::ContextMenuBuilderEventHandler(
|
|
471
|
+
this, &Form1::MyContextMenuBuilder );
|
|
472
|
+
|
|
473
|
+
// OPTIONAL: Handle the Zoom Event
|
|
474
|
+
z1->ZoomEvent += gcnew ZedGraphControl::ZoomEventHandler( this,
|
|
475
|
+
&Form1::MyZoomEvent );
|
|
476
|
+
|
|
477
|
+
// Size the control to fit the window
|
|
478
|
+
SetSize();
|
|
479
|
+
|
|
480
|
+
// Tell ZedGraph to calculate the axis ranges
|
|
481
|
+
// Note that you MUST call this after enabling IsAutoScrollRange, since AxisChange() sets
|
|
482
|
+
// up the proper scrolling parameters
|
|
483
|
+
|
|
484
|
+
z1->AxisChange();
|
|
485
|
+
// Make sure the Graph gets redrawn
|
|
486
|
+
z1->Invalidate();
|
|
487
|
+
timer1->Interval = this->chartobject_ptr->Get_update_time_chart();
|
|
488
|
+
timer1->Enabled = true;
|
|
489
|
+
timer1->Start();
|
|
490
|
+
|
|
491
|
+
tickStart = Environment::TickCount;
|
|
492
|
+
}
|
|
493
|
+
catch (...)
|
|
494
|
+
{
|
|
495
|
+
//unlock thread
|
|
496
|
+
int n = System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
497
|
+
assert(n == 2);
|
|
498
|
+
throw;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
//unlock thread
|
|
502
|
+
int n = System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
503
|
+
assert(n == 2);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/// <summary>
|
|
507
|
+
/// Display customized tooltips when the mouse hovers over a point
|
|
508
|
+
/// </summary>
|
|
509
|
+
System::String ^MyPointValueHandler( ZedGraphControl ^control, GraphPane ^pane,
|
|
510
|
+
CurveItem ^curve, int iPt ) {
|
|
511
|
+
// Get the PointPair that is under the mouse
|
|
512
|
+
PointPair pt = curve[iPt];
|
|
513
|
+
return curve->Label->Text + " is " + pt.Y.ToString( "e3" ) + " units at X = " + pt.X.ToString( "e3" );
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Add some explanation to the menu..
|
|
517
|
+
void MyContextMenuBuilder( ZedGraphControl ^control,
|
|
518
|
+
System::Windows::Forms::ContextMenuStrip ^menuStrip,
|
|
519
|
+
Point mousePt,
|
|
520
|
+
ZedGraphControl::ContextMenuObjectState objState ) {
|
|
521
|
+
|
|
522
|
+
// removes Copy
|
|
523
|
+
menuStrip->Items->RemoveAt(0);
|
|
524
|
+
// removes Save Image As
|
|
525
|
+
menuStrip->Items->RemoveAt(0);
|
|
526
|
+
|
|
527
|
+
ToolStripMenuItem ^item = gcnew ToolStripMenuItem();
|
|
528
|
+
item->Text = L"Zoom: left mouse + drag\nPan: middle mouse + drag";
|
|
529
|
+
menuStrip->Items->Insert(5, item );
|
|
530
|
+
|
|
531
|
+
ToolStripMenuItem ^item3 = gcnew ToolStripMenuItem();
|
|
532
|
+
item3->Text = L"Chart options...";
|
|
533
|
+
item3->Click += gcnew System::EventHandler(this, &zdg_ui2::Form1::SetChartOptions );
|
|
534
|
+
menuStrip->Items->Insert(0, item3 );
|
|
535
|
+
|
|
536
|
+
//ToolStripMenuItem ^item5 = gcnew ToolStripMenuItem();
|
|
537
|
+
//item5->Text = L"Toggle Hints";
|
|
538
|
+
//item5->Click += gcnew System::EventHandler(this, &zdg_ui2::Form1::ToggleHints );
|
|
539
|
+
//menuStrip->Items->Insert(0, item5 );
|
|
540
|
+
|
|
541
|
+
ToolStripMenuItem ^item2 = gcnew ToolStripMenuItem();
|
|
542
|
+
item2->Text = L"Save Data to File...";
|
|
543
|
+
item2->Click += gcnew System::EventHandler(this, &zdg_ui2::Form1::SaveCurves );
|
|
544
|
+
menuStrip->Items->Insert(0, item2 );
|
|
545
|
+
|
|
546
|
+
ToolStripMenuItem ^item4 = gcnew ToolStripMenuItem();
|
|
547
|
+
item4->Text = L"Save Image As...";
|
|
548
|
+
item4->Click += gcnew System::EventHandler(this, &zdg_ui2::Form1::SaveImage );
|
|
549
|
+
menuStrip->Items->Insert(0, item4 );
|
|
550
|
+
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
void form_error_msg( std::string estring )
|
|
554
|
+
{
|
|
555
|
+
if (this->chartobject_ptr != NULL)
|
|
556
|
+
{
|
|
557
|
+
if (Phreeqc* ptr = this->chartobject_ptr->Get_phreeqc())
|
|
558
|
+
{
|
|
559
|
+
ptr->error_msg(estring.c_str(), CONTINUE);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
else
|
|
563
|
+
{
|
|
564
|
+
std::cerr << "ERROR: " << estring << std::endl;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
void SaveCurves( System::Object ^sender, System::EventArgs ^e )
|
|
569
|
+
{
|
|
570
|
+
SaveFileDialog^ saveFileDialog1 = gcnew SaveFileDialog;
|
|
571
|
+
//TCHAR dir[MAX_PATH];
|
|
572
|
+
//::GetCurrentDirectory(MAX_PATH, dir);
|
|
573
|
+
//String ^d = gcnew String(dir);
|
|
574
|
+
//saveFileDialog1->InitialDirectory = d;
|
|
575
|
+
saveFileDialog1->FileName = "curves.u_g";
|
|
576
|
+
saveFileDialog1->Filter = "User graph files (*.u_g)|*.u_g|txt files (*.txt)|*.txt|All files (*.*)|*.*";
|
|
577
|
+
saveFileDialog1->FilterIndex = 1;
|
|
578
|
+
saveFileDialog1->RestoreDirectory = true;
|
|
579
|
+
#undef OK
|
|
580
|
+
if ( saveFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK )
|
|
581
|
+
{
|
|
582
|
+
std::string file_name;
|
|
583
|
+
ToString(saveFileDialog1->FileName, file_name);
|
|
584
|
+
std::ofstream f_out(file_name.c_str(), std::ifstream::out);
|
|
585
|
+
|
|
586
|
+
if (!f_out.is_open())
|
|
587
|
+
{
|
|
588
|
+
std::ostringstream estream;
|
|
589
|
+
estream << "Could not open file to save curves for USER_GRAPH " << file_name;
|
|
590
|
+
form_error_msg(estream.str());
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// write headings
|
|
595
|
+
size_t max_points = 0;
|
|
596
|
+
f_out.precision(4);
|
|
597
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
598
|
+
{
|
|
599
|
+
LineItem ^curve;
|
|
600
|
+
curve = (LineItem ^) zg1->GraphPane->CurveList[i];
|
|
601
|
+
// Get the PointPairList
|
|
602
|
+
IPointListEdit ^ip = (IPointListEdit^) curve->Points;
|
|
603
|
+
|
|
604
|
+
// Calculate max_points
|
|
605
|
+
if ((size_t) ip->Count > max_points)
|
|
606
|
+
max_points = ip->Count;
|
|
607
|
+
|
|
608
|
+
// write headers
|
|
609
|
+
std::string s_std;
|
|
610
|
+
ToString(curve->Label->Text, s_std);
|
|
611
|
+
f_out.width(12);
|
|
612
|
+
f_out << "x" << "\t";
|
|
613
|
+
f_out.width(12);
|
|
614
|
+
if (s_std.size() > 0)
|
|
615
|
+
{
|
|
616
|
+
f_out << s_std << "\t";
|
|
617
|
+
}
|
|
618
|
+
else
|
|
619
|
+
{
|
|
620
|
+
f_out << "y" << "\t";
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
f_out << std::endl;
|
|
625
|
+
|
|
626
|
+
// write data
|
|
627
|
+
size_t i2 = 0;
|
|
628
|
+
f_out << std::scientific;
|
|
629
|
+
f_out.precision(4);
|
|
630
|
+
|
|
631
|
+
while (i2 < max_points)
|
|
632
|
+
{
|
|
633
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
634
|
+
{
|
|
635
|
+
LineItem ^curve;
|
|
636
|
+
curve = (LineItem ^) zg1->GraphPane->CurveList[i];
|
|
637
|
+
// Get the PointPairList
|
|
638
|
+
IPointListEdit ^ip = (IPointListEdit^) curve->Points;
|
|
639
|
+
if (i2 < (size_t) ip->Count)
|
|
640
|
+
{
|
|
641
|
+
//double x = ip[i]->X;
|
|
642
|
+
f_out.width(12);
|
|
643
|
+
f_out << ip[(int) i2]->X << "\t";
|
|
644
|
+
f_out.width(12);
|
|
645
|
+
f_out << ip[(int) i2]->Y << "\t";
|
|
646
|
+
}
|
|
647
|
+
else if (i2 < max_points)
|
|
648
|
+
{
|
|
649
|
+
f_out.width(13);
|
|
650
|
+
f_out << "\t";
|
|
651
|
+
f_out.width(13);
|
|
652
|
+
f_out << "\t";
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
f_out << std::endl;
|
|
656
|
+
i2++;
|
|
657
|
+
}
|
|
658
|
+
f_out.close();
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
}
|
|
662
|
+
else
|
|
663
|
+
{
|
|
664
|
+
// no dialog
|
|
665
|
+
std::ostringstream estream;
|
|
666
|
+
estream << "Could not open dialog to save curves. ";
|
|
667
|
+
form_error_msg(estream.str());
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
// Respond to a Zoom Event
|
|
674
|
+
void MyZoomEvent( ZedGraphControl ^control, ZoomState ^oldState, ZoomState ^newState )
|
|
675
|
+
{
|
|
676
|
+
// Here we get notification every time the user zooms
|
|
677
|
+
}
|
|
678
|
+
void SetChartOptions( System::Object ^sender, System::EventArgs ^e )
|
|
679
|
+
{
|
|
680
|
+
// Create form
|
|
681
|
+
Form ^graphOptions = gcnew Form;
|
|
682
|
+
graphOptions->Text = "Chart options";
|
|
683
|
+
graphOptions->ShowIcon = false;
|
|
684
|
+
graphOptions->BringToFront();
|
|
685
|
+
graphOptions->MinimumSize = System::Drawing::Size(255, 230);
|
|
686
|
+
graphOptions->MaximumSize = System::Drawing::Size(255, 230);
|
|
687
|
+
graphOptions->Size = System::Drawing::Size(255, 230);
|
|
688
|
+
graphOptions->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
|
|
689
|
+
|
|
690
|
+
// Check box for hints
|
|
691
|
+
CheckBox ^cb1 = gcnew CheckBox;
|
|
692
|
+
cb1->Appearance = Appearance::Normal;
|
|
693
|
+
cb1->ThreeState = false;
|
|
694
|
+
cb1->AutoCheck = true;
|
|
695
|
+
cb1->Location = System::Drawing::Point(5, 10);
|
|
696
|
+
if (this->hints)
|
|
697
|
+
{
|
|
698
|
+
cb1->CheckState = CheckState::Checked;
|
|
699
|
+
}
|
|
700
|
+
else
|
|
701
|
+
{
|
|
702
|
+
cb1->CheckState = CheckState::Unchecked;
|
|
703
|
+
}
|
|
704
|
+
cb1->Text = "Show hints";
|
|
705
|
+
cb1->Visible = true;
|
|
706
|
+
graphOptions->Controls->Add(cb1);
|
|
707
|
+
|
|
708
|
+
// Check box for background color
|
|
709
|
+
CheckBox ^cb2 = gcnew CheckBox;
|
|
710
|
+
cb2->Appearance = Appearance::Normal;
|
|
711
|
+
cb2->ThreeState = false;
|
|
712
|
+
cb2->AutoCheck = true;
|
|
713
|
+
cb2->Location = System::Drawing::Point(5, 60);
|
|
714
|
+
|
|
715
|
+
if (this->background)
|
|
716
|
+
{
|
|
717
|
+
cb2->CheckState = CheckState::Checked;
|
|
718
|
+
}
|
|
719
|
+
else
|
|
720
|
+
{
|
|
721
|
+
cb2->CheckState = CheckState::Unchecked;
|
|
722
|
+
}
|
|
723
|
+
cb2->Text = "Show colored background";
|
|
724
|
+
cb2->AutoSize = true;
|
|
725
|
+
cb2->Visible = true;
|
|
726
|
+
graphOptions->Controls->Add(cb2);
|
|
727
|
+
|
|
728
|
+
// checkbox for grid
|
|
729
|
+
CheckBox ^cb3 = gcnew CheckBox;
|
|
730
|
+
cb3->Appearance = Appearance::Normal;
|
|
731
|
+
cb3->ThreeState = false;
|
|
732
|
+
cb3->AutoCheck = true;
|
|
733
|
+
cb3->Location = System::Drawing::Point(5, 110);
|
|
734
|
+
|
|
735
|
+
if (this->grid)
|
|
736
|
+
{
|
|
737
|
+
cb3->CheckState = CheckState::Checked;
|
|
738
|
+
}
|
|
739
|
+
else
|
|
740
|
+
{
|
|
741
|
+
cb3->CheckState = CheckState::Unchecked;
|
|
742
|
+
}
|
|
743
|
+
cb3->Text = "Show grid lines";
|
|
744
|
+
cb3->Visible = true;
|
|
745
|
+
graphOptions->Controls->Add(cb3);
|
|
746
|
+
|
|
747
|
+
// done button for Form
|
|
748
|
+
Button^ button1 = gcnew Button;
|
|
749
|
+
button1->DialogResult = System::Windows::Forms::DialogResult::OK;
|
|
750
|
+
button1->Text = "Done";
|
|
751
|
+
button1->Location = System::Drawing::Point(75, 160);
|
|
752
|
+
graphOptions->Controls->Add(button1);
|
|
753
|
+
graphOptions->AcceptButton = button1;
|
|
754
|
+
|
|
755
|
+
// cancel button for Form
|
|
756
|
+
Button^ button2 = gcnew Button;
|
|
757
|
+
button2->DialogResult = System::Windows::Forms::DialogResult::Cancel;
|
|
758
|
+
button2->Text = "Cancel";
|
|
759
|
+
button2->Location = System::Drawing::Point(155, 160);
|
|
760
|
+
graphOptions->Controls->Add(button2);
|
|
761
|
+
graphOptions->CancelButton = button2;
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
if (graphOptions->ShowDialog() == System::Windows::Forms::DialogResult::OK)
|
|
765
|
+
{
|
|
766
|
+
this->hints = (cb1->CheckState == CheckState::Checked);
|
|
767
|
+
this->background = (cb2->CheckState == CheckState::Checked);
|
|
768
|
+
this->grid = (cb3->CheckState == CheckState::Checked);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
if (this->background)
|
|
772
|
+
{
|
|
773
|
+
zg1->GraphPane->Chart->Fill = gcnew Fill( Color::White, Color::FromArgb(255, 255, 230), 45.0f );
|
|
774
|
+
}
|
|
775
|
+
else
|
|
776
|
+
{
|
|
777
|
+
zg1->GraphPane->Chart->Fill = gcnew Fill( Color::White, Color::White, 45.0f );
|
|
778
|
+
}
|
|
779
|
+
if (this->grid)
|
|
780
|
+
{
|
|
781
|
+
zg1->GraphPane->XAxis->MajorGrid->IsVisible = true;
|
|
782
|
+
zg1->GraphPane->YAxis->MajorGrid->IsVisible = true;
|
|
783
|
+
}
|
|
784
|
+
else
|
|
785
|
+
{
|
|
786
|
+
zg1->GraphPane->XAxis->MajorGrid->IsVisible = false;
|
|
787
|
+
zg1->GraphPane->YAxis->MajorGrid->IsVisible = false;
|
|
788
|
+
}
|
|
789
|
+
if (this->hints)
|
|
790
|
+
{
|
|
791
|
+
zg1->GraphPane->GraphObjList = GOL_hints;
|
|
792
|
+
}
|
|
793
|
+
else
|
|
794
|
+
{
|
|
795
|
+
zg1->GraphPane->GraphObjList = GOL_no_hints;
|
|
796
|
+
}
|
|
797
|
+
zg1->Refresh();
|
|
798
|
+
}
|
|
799
|
+
void SaveImage( System::Object ^sender, System::EventArgs ^e )
|
|
800
|
+
{
|
|
801
|
+
ZedGraph::GraphObjList ^copy = gcnew ZedGraph::GraphObjList(zg1->GraphPane->GraphObjList);
|
|
802
|
+
zg1->GraphPane->GraphObjList = GOL_no_hints;
|
|
803
|
+
zg1->SaveAs();
|
|
804
|
+
zg1->GraphPane->GraphObjList = copy;
|
|
805
|
+
}
|
|
806
|
+
void BatchSaveImage( )
|
|
807
|
+
{
|
|
808
|
+
ChartObject *chart = this->chartobject_ptr;
|
|
809
|
+
assert(chart->Get_batch() > 0);
|
|
810
|
+
// Save GraphObjList
|
|
811
|
+
ZedGraph::GraphObjList ^GOL_copy = gcnew ZedGraph::GraphObjList(zg1->GraphPane->GraphObjList);
|
|
812
|
+
|
|
813
|
+
// Don`t write red hint boxes
|
|
814
|
+
zg1->GraphPane->GraphObjList = GOL_no_hints;
|
|
815
|
+
|
|
816
|
+
// Set background
|
|
817
|
+
if (chart->Get_batch_background())
|
|
818
|
+
{
|
|
819
|
+
zg1->GraphPane->Chart->Fill = gcnew Fill( Color::White, Color::FromArgb(255, 255, 230), 45.0f );
|
|
820
|
+
}
|
|
821
|
+
else
|
|
822
|
+
{
|
|
823
|
+
zg1->GraphPane->Chart->Fill = gcnew Fill( Color::White, Color::White, 45.0f );
|
|
824
|
+
}
|
|
825
|
+
// Set grid
|
|
826
|
+
if (chart->Get_batch_grid())
|
|
827
|
+
{
|
|
828
|
+
zg1->GraphPane->XAxis->MajorGrid->IsVisible = true;
|
|
829
|
+
zg1->GraphPane->YAxis->MajorGrid->IsVisible = true;
|
|
830
|
+
}
|
|
831
|
+
else
|
|
832
|
+
{
|
|
833
|
+
zg1->GraphPane->XAxis->MajorGrid->IsVisible = false;
|
|
834
|
+
zg1->GraphPane->YAxis->MajorGrid->IsVisible = false;
|
|
835
|
+
}
|
|
836
|
+
// Save the graph
|
|
837
|
+
if (this->zg1)
|
|
838
|
+
{
|
|
839
|
+
ImageFormat ^format = ImageFormat::Png;
|
|
840
|
+
switch (chart->Get_batch())
|
|
841
|
+
{
|
|
842
|
+
case 2:
|
|
843
|
+
format = ImageFormat::Png;
|
|
844
|
+
break;
|
|
845
|
+
case 3:
|
|
846
|
+
format = ImageFormat::Gif;
|
|
847
|
+
break;
|
|
848
|
+
case 4:
|
|
849
|
+
format = ImageFormat::Jpeg;
|
|
850
|
+
break;
|
|
851
|
+
case 5:
|
|
852
|
+
format = ImageFormat::Tiff;
|
|
853
|
+
break;
|
|
854
|
+
case 6:
|
|
855
|
+
format = ImageFormat::Bmp;
|
|
856
|
+
break;
|
|
857
|
+
default:
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
switch (chart->Get_batch())
|
|
861
|
+
{
|
|
862
|
+
case 1: // emf
|
|
863
|
+
{
|
|
864
|
+
System::String ^fn = gcnew System::String(chart->Get_batch_fn().c_str());
|
|
865
|
+
System::Drawing::Imaging::Metafile ^metaFile = this->zg1->MasterPane->GetMetafile();
|
|
866
|
+
metaFile->Save(fn);
|
|
867
|
+
}
|
|
868
|
+
break;
|
|
869
|
+
case 2: // bitmaps
|
|
870
|
+
case 3:
|
|
871
|
+
case 4:
|
|
872
|
+
case 5:
|
|
873
|
+
case 6:
|
|
874
|
+
{
|
|
875
|
+
System::String ^fn = gcnew System::String(chart->Get_batch_fn().c_str());
|
|
876
|
+
System::IO::FileStream ^myStream = gcnew System::IO::FileStream(fn, System::IO::FileMode::Create);
|
|
877
|
+
zg1->MasterPane->GetImage()->Save( myStream, format);
|
|
878
|
+
myStream->Close();
|
|
879
|
+
}
|
|
880
|
+
default:
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
}
|
|
886
|
+
private: void timer1_Tick(System::Object ^sender, System::EventArgs ^e )
|
|
887
|
+
{
|
|
888
|
+
LineItem ^curve;
|
|
889
|
+
ChartObject *chart = this->chartobject_ptr;
|
|
890
|
+
if (chart == NULL) return;
|
|
891
|
+
|
|
892
|
+
//lock for thread
|
|
893
|
+
while (0 != System::Threading::Interlocked::CompareExchange(chart->usingResource, 3, 0))
|
|
894
|
+
{
|
|
895
|
+
System::Threading::Thread::Sleep(5);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
try
|
|
899
|
+
{
|
|
900
|
+
if (this->chartobject_ptr->Get_curve_added())
|
|
901
|
+
{
|
|
902
|
+
DefineCurves(zg1->GraphPane, zg1->GraphPane->CurveList->Count);
|
|
903
|
+
}
|
|
904
|
+
else if (this->chartobject_ptr->Get_point_added())
|
|
905
|
+
{
|
|
906
|
+
|
|
907
|
+
// Make list of curves
|
|
908
|
+
std::vector<CurveObject *> Curves;
|
|
909
|
+
size_t j;
|
|
910
|
+
for (j = 0; j < chart->Get_CurvesCSV().size(); j++)
|
|
911
|
+
{
|
|
912
|
+
Curves.push_back(chart->Get_CurvesCSV()[j]);
|
|
913
|
+
}
|
|
914
|
+
for (j = 0; j < chart->Get_Curves().size(); j++)
|
|
915
|
+
{
|
|
916
|
+
Curves.push_back(chart->Get_Curves()[j]);
|
|
917
|
+
}
|
|
918
|
+
// Add points to curves ...
|
|
919
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
920
|
+
{
|
|
921
|
+
curve = (LineItem ^) zg1->GraphPane->CurveList[i];
|
|
922
|
+
// Get the PointPairList
|
|
923
|
+
IPointListEdit ^ip = (IPointListEdit^) curve->Points;
|
|
924
|
+
if ((size_t) ip->Count < Curves[i]->Get_x().size())
|
|
925
|
+
{
|
|
926
|
+
if (Curves[i]->Get_y_axis() == 2)
|
|
927
|
+
Y2 = true;
|
|
928
|
+
else
|
|
929
|
+
Y2 = false;
|
|
930
|
+
for ( size_t i2 = ip->Count; i2 < Curves[i]->Get_x().size(); i2++ )
|
|
931
|
+
{
|
|
932
|
+
if ((LogX && Curves[i]->Get_x()[i2] <=0)
|
|
933
|
+
|| (LogY && !Y2 && Curves[i]->Get_y()[i2] <=0)
|
|
934
|
+
|| (LogY2 && Y2 && Curves[i]->Get_y()[i2] <=0))
|
|
935
|
+
continue;
|
|
936
|
+
else
|
|
937
|
+
ip->Add(Curves[i]->Get_x()[i2], Curves[i]->Get_y()[i2] );
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
// Add points to curves ...
|
|
942
|
+
|
|
943
|
+
//size_t i, k;
|
|
944
|
+
//k = 0;
|
|
945
|
+
//for (i = 0; i < Curves.size(); i++)
|
|
946
|
+
//{
|
|
947
|
+
// if (Curves[i]->Get_x().size() == 0) continue;
|
|
948
|
+
// curve = (LineItem ^) zg1->GraphPane->CurveList[k++];
|
|
949
|
+
// // Get the PointPairList
|
|
950
|
+
// IPointListEdit ^ip = (IPointListEdit^) curve->Points;
|
|
951
|
+
// if ((size_t) ip->Count < Curves[i]->Get_x().size())
|
|
952
|
+
// {
|
|
953
|
+
// if (Curves[i]->Get_y_axis() == 2)
|
|
954
|
+
// Y2 = true;
|
|
955
|
+
// else
|
|
956
|
+
// Y2 = false;
|
|
957
|
+
// for ( size_t i2 = ip->Count; i2 < Curves[i]->Get_x().size(); i2++ )
|
|
958
|
+
// {
|
|
959
|
+
// if ((LogX && Curves[i]->Get_x()[i2] <=0)
|
|
960
|
+
// || (LogY && !Y2 && Curves[i]->Get_y()[i2] <=0)
|
|
961
|
+
// || (LogY2 && Y2 && Curves[i]->Get_y()[i2] <=0))
|
|
962
|
+
// continue;
|
|
963
|
+
// else
|
|
964
|
+
// ip->Add(Curves[i]->Get_x()[i2], Curves[i]->Get_y()[i2] );
|
|
965
|
+
// }
|
|
966
|
+
// }
|
|
967
|
+
//}
|
|
968
|
+
/* explicitly reset the max in case of log scale, zedgraphs doesn`t do this... */
|
|
969
|
+
if ((fabs(chart->Get_axis_scale_x()[1] - NA) < 1e-3) && zg1->GraphPane->XAxis->Type == AxisType::Log)
|
|
970
|
+
{
|
|
971
|
+
double max = -1e99;
|
|
972
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
973
|
+
{
|
|
974
|
+
if (Curves[i]->Get_x().size() > 0)
|
|
975
|
+
{
|
|
976
|
+
if (Curves[i]->Get_x()[Curves[i]->Get_x().size() - 1] > max)
|
|
977
|
+
max = Curves[i]->Get_x()[Curves[i]->Get_x().size() - 1];
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
if (max > 0)
|
|
981
|
+
{
|
|
982
|
+
max += pow(10.0, log10(max / 3));
|
|
983
|
+
}
|
|
984
|
+
else
|
|
985
|
+
{
|
|
986
|
+
zg1->GraphPane->XAxis->Scale->Min = 0;
|
|
987
|
+
max = zg1->GraphPane->XAxis->Scale->Min + 1.0;
|
|
988
|
+
}
|
|
989
|
+
zg1->GraphPane->XAxis->Scale->Max = max;
|
|
990
|
+
}
|
|
991
|
+
if ((fabs(chart->Get_axis_scale_y()[1] - NA) < 1e-3) && zg1->GraphPane->YAxis->Type == AxisType::Log)
|
|
992
|
+
{
|
|
993
|
+
double max = -1e99;
|
|
994
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
995
|
+
{
|
|
996
|
+
curve = (LineItem^)zg1->GraphPane->CurveList[i];
|
|
997
|
+
if (curve->IsY2Axis) continue;
|
|
998
|
+
if (Curves[i]->Get_y().size() > 0)
|
|
999
|
+
{
|
|
1000
|
+
if (Curves[i]->Get_y()[Curves[i]->Get_y().size() - 1] > max)
|
|
1001
|
+
max = Curves[i]->Get_y()[Curves[i]->Get_y().size() - 1];
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
if (max > 0)
|
|
1005
|
+
{
|
|
1006
|
+
max += pow(10.0, log10(max / 3));
|
|
1007
|
+
}
|
|
1008
|
+
else
|
|
1009
|
+
{
|
|
1010
|
+
zg1->GraphPane->YAxis->Scale->Min = 0;
|
|
1011
|
+
max = zg1->GraphPane->YAxis->Scale->Min + 1.0;
|
|
1012
|
+
}
|
|
1013
|
+
zg1->GraphPane->YAxis->Scale->Max = max;
|
|
1014
|
+
}
|
|
1015
|
+
if ((fabs(chart->Get_axis_scale_y2()[1] - NA) < 1e-3) && zg1->GraphPane->Y2Axis->Type == AxisType::Log)
|
|
1016
|
+
{
|
|
1017
|
+
double max = -1e99;
|
|
1018
|
+
for (int i = 0; i < zg1->GraphPane->CurveList->Count; i++)
|
|
1019
|
+
{
|
|
1020
|
+
curve = (LineItem^)zg1->GraphPane->CurveList[i];
|
|
1021
|
+
if (!curve->IsY2Axis) continue;
|
|
1022
|
+
if (Curves[i]->Get_y().size() > 0)
|
|
1023
|
+
{
|
|
1024
|
+
if (Curves[i]->Get_y()[Curves[i]->Get_y().size() - 1] > max)
|
|
1025
|
+
max = Curves[i]->Get_y()[Curves[i]->Get_y().size() - 1];
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
if (max > 0.0)
|
|
1029
|
+
{
|
|
1030
|
+
max += pow(10.0, log10(max / 3));
|
|
1031
|
+
}
|
|
1032
|
+
else
|
|
1033
|
+
{
|
|
1034
|
+
zg1->GraphPane->Y2Axis->Scale->Min = 0;
|
|
1035
|
+
max = zg1->GraphPane->Y2Axis->Scale->Min + 1.0;
|
|
1036
|
+
}
|
|
1037
|
+
zg1->GraphPane->Y2Axis->Scale->Max = max;
|
|
1038
|
+
}
|
|
1039
|
+
zg1->AxisChange();
|
|
1040
|
+
zg1->Refresh();
|
|
1041
|
+
}
|
|
1042
|
+
//
|
|
1043
|
+
// Following asserts may not be true for Log scales
|
|
1044
|
+
// negative values are rejected, so chart may have fewer points than phreeqc
|
|
1045
|
+
//
|
|
1046
|
+
//for (size_t j = 0; j < chart->Get_CurvesCSV().size(); j++)
|
|
1047
|
+
//{
|
|
1048
|
+
// if (zg1->GraphPane->CurveList[j]->Points->Count != chart->Get_CurvesCSV()[j]->Get_x().size())
|
|
1049
|
+
// {
|
|
1050
|
+
// fprintf(stderr, "graph points = %d\n", zg1->GraphPane->CurveList[j]->Points->Count);
|
|
1051
|
+
// fprintf(stderr, "phreeqc points = %d\n", chart->Get_CurvesCSV()[j]->Get_x().size());
|
|
1052
|
+
// }
|
|
1053
|
+
// assert(zg1->GraphPane->CurveList[j]->Points->Count == chart->Get_CurvesCSV()[j]->Get_x().size());
|
|
1054
|
+
//}
|
|
1055
|
+
//for (int j = chart->Get_CurvesCSV().size(); j < zg1->GraphPane->CurveList->Count; j++)
|
|
1056
|
+
//{
|
|
1057
|
+
// int k = j - chart->Get_CurvesCSV().size();
|
|
1058
|
+
// if (zg1->GraphPane->CurveList[j]->Points->Count != chart->Get_Curves()[k]->Get_x().size())
|
|
1059
|
+
// {
|
|
1060
|
+
// fprintf(stderr, "%d %d graph points = %d\n", j, k, zg1->GraphPane->CurveList[j]->Points->Count);
|
|
1061
|
+
// fprintf(stderr, "phreeqc points = %d\n", chart->Get_Curves()[k]->Get_x().size());
|
|
1062
|
+
// }
|
|
1063
|
+
// assert(zg1->GraphPane->CurveList[j]->Points->Count == chart->Get_Curves()[k]->Get_x().size());
|
|
1064
|
+
//}
|
|
1065
|
+
chart->Set_point_added(false);
|
|
1066
|
+
if (chart->Get_end_timer())
|
|
1067
|
+
{
|
|
1068
|
+
timer1->Stop();
|
|
1069
|
+
chart->Set_done(true);
|
|
1070
|
+
phreeqc_done = true;
|
|
1071
|
+
|
|
1072
|
+
int batch = chart->Get_batch();
|
|
1073
|
+
if (batch > 0)
|
|
1074
|
+
{
|
|
1075
|
+
BatchSaveImage();
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
//unlock thread before setting chartobject_ptr to NULL
|
|
1079
|
+
int n = System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
1080
|
+
assert(n == 3);
|
|
1081
|
+
|
|
1082
|
+
//this->phreeqc_ptr = NULL;
|
|
1083
|
+
this->chartobject_ptr = NULL;
|
|
1084
|
+
if (batch >= 0)
|
|
1085
|
+
{
|
|
1086
|
+
this->Close();
|
|
1087
|
+
}
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
catch(...)
|
|
1092
|
+
{
|
|
1093
|
+
int n = System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
1094
|
+
assert(n == 3);
|
|
1095
|
+
|
|
1096
|
+
throw;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
//unlock thread
|
|
1100
|
+
int n = System::Threading::Interlocked::Exchange(this->chartobject_ptr->usingResource, 0);
|
|
1101
|
+
assert(n == 3);
|
|
1102
|
+
//tickStart = Environment::TickCount;
|
|
1103
|
+
return;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
void ToString(System::String^ src, std::string& dest)
|
|
1107
|
+
{
|
|
1108
|
+
using namespace System::Runtime::InteropServices;
|
|
1109
|
+
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(src)).ToPointer();
|
|
1110
|
+
dest = chars;
|
|
1111
|
+
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
|
1112
|
+
}
|
|
1113
|
+
~Form1() {
|
|
1114
|
+
if (this->zg1) delete zg1;
|
|
1115
|
+
//if (this->timer1) delete timer1);
|
|
1116
|
+
if (components) {
|
|
1117
|
+
delete components;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
public: ZedGraph::ZedGraphControl ^zg1;
|
|
1121
|
+
private: System::Windows::Forms::Timer ^timer1;
|
|
1122
|
+
private: System::ComponentModel::Container ^components;
|
|
1123
|
+
ChartObject * chartobject_ptr;
|
|
1124
|
+
|
|
1125
|
+
public:
|
|
1126
|
+
#pragma region Windows Form Designer generated code
|
|
1127
|
+
/// <summary>
|
|
1128
|
+
/// Required method for Designer support - do not modify
|
|
1129
|
+
/// the contents of this method with the code editor.
|
|
1130
|
+
/// </summary>
|
|
1131
|
+
void InitializeComponent()
|
|
1132
|
+
{
|
|
1133
|
+
//System::Threading::Thread::Sleep(5000);
|
|
1134
|
+
this->components = (gcnew System::ComponentModel::Container());
|
|
1135
|
+
this->zg1 = (gcnew ZedGraph::ZedGraphControl());
|
|
1136
|
+
this->timer1 = (gcnew System::Windows::Forms::Timer( this->components ));
|
|
1137
|
+
this->SuspendLayout();
|
|
1138
|
+
//
|
|
1139
|
+
// zg1
|
|
1140
|
+
//
|
|
1141
|
+
this->zg1->Location = System::Drawing::Point(12, 12);
|
|
1142
|
+
this->zg1->Name = L"zg1";
|
|
1143
|
+
this->zg1->ScrollGrace = 0;
|
|
1144
|
+
this->zg1->ScrollMaxX = 0;
|
|
1145
|
+
this->zg1->ScrollMaxY = 0;
|
|
1146
|
+
this->zg1->ScrollMaxY2 = 0;
|
|
1147
|
+
this->zg1->ScrollMinX = 0;
|
|
1148
|
+
this->zg1->ScrollMinY = 0;
|
|
1149
|
+
this->zg1->ScrollMinY2 = 0;
|
|
1150
|
+
this->zg1->Size = System::Drawing::Size(this->chartobject_ptr->Get_PanelWidth() - 2 * 12, chartobject_ptr->Get_PanelHeight() - 2 * 12);
|
|
1151
|
+
this->zg1->TabIndex = 0;
|
|
1152
|
+
this->timer1->Tick += gcnew System::EventHandler( this, &Form1::timer1_Tick );
|
|
1153
|
+
//
|
|
1154
|
+
// Form1
|
|
1155
|
+
//
|
|
1156
|
+
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
|
|
1157
|
+
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
|
|
1158
|
+
this->AutoValidate = System::Windows::Forms::AutoValidate::EnablePreventFocusChange;
|
|
1159
|
+
this->ClientSize = System::Drawing::Size(this->chartobject_ptr->Get_PanelWidth(), chartobject_ptr->Get_PanelHeight());
|
|
1160
|
+
this->Controls->Add(this->zg1);
|
|
1161
|
+
this->Name = L"Form1";
|
|
1162
|
+
this->StartPosition = System::Windows::Forms::FormStartPosition::WindowsDefaultLocation;//:CenterScreen;
|
|
1163
|
+
//this->Text = L"PHREEQC chart";
|
|
1164
|
+
System::String ^desc = gcnew String(this->chartobject_ptr->Get_description().c_str());
|
|
1165
|
+
this->Text = L"Phreeqc USER_GRAPH " + this->chartobject_ptr->Get_n_user() + " " + desc;
|
|
1166
|
+
this->TopMost = false;
|
|
1167
|
+
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
|
|
1168
|
+
try
|
|
1169
|
+
{
|
|
1170
|
+
//this->Icon = gcnew System::Drawing::Icon("c:\\phreeqc\\phreex.ico");
|
|
1171
|
+
this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
|
|
1172
|
+
}
|
|
1173
|
+
catch (...)
|
|
1174
|
+
{
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &Form1::MyFormClosingEventHandler);
|
|
1178
|
+
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
|
|
1179
|
+
this->Resize += gcnew System::EventHandler(this, &Form1::Form1_Resize);
|
|
1180
|
+
this->ResumeLayout(false);
|
|
1181
|
+
}
|
|
1182
|
+
#pragma endregion
|
|
1183
|
+
};
|
|
1184
|
+
}
|