Skip to content
Snippets Groups Projects
Select Git revision
  • 9d3a0f244f7655f3ceddd5e5cde5708ed730c72a
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

mainAntTweakBar.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    • Christophe Geuzaine's avatar
      9d3a0f24
      · 9d3a0f24
      Christophe Geuzaine authored
      Encapsulate toolkit-dependent global drawing functions in new
      drawContextGlobal class, and add a static drawContextGlobal to
      drawContext, with a default version that does nothing.
      
      This allows to have a completely virtualized drawing system: we can
      now ship a library with a fully working graphic system, indepedent of
      the widget toolkit. A client code just needs to subclass
      drawContextGlobal to get working graphics (see
      e.g. api_demos/mainAntTweakBar.cpp)
      9d3a0f24
      History
      Christophe Geuzaine authored
      Encapsulate toolkit-dependent global drawing functions in new
      drawContextGlobal class, and add a static drawContextGlobal to
      drawContext, with a default version that does nothing.
      
      This allows to have a completely virtualized drawing system: we can
      now ship a library with a fully working graphic system, indepedent of
      the widget toolkit. A client code just needs to subclass
      drawContextGlobal to get working graphics (see
      e.g. api_demos/mainAntTweakBar.cpp)
    gmsh.jl 345.45 KiB
    # Gmsh - Copyright (C) 1997-2024 C. Geuzaine, J.-F. Remacle
    #
    # See the LICENSE.txt file in the Gmsh root directory for license information.
    # Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    # This file defines the Gmsh Julia API (v4.13.0).
    #
    # Do not edit this file directly: it is automatically generated by `api/gen.py'.
    #
    # By design, the Gmsh Julia API is purely functional, and only uses elementary
    # Julia types. See `tutorials/julia' and `examples/api' for tutorials and
    # examples.
    
    """
        module gmsh
    
    Gmsh is an automatic three-dimensional finite element mesh generator with a
    built-in CAD engine and post-processor. Its design goal is to provide a fast,
    light and user-friendly meshing tool with parametric input and flexible
    visualization capabilities. Gmsh is built around four modules (geometry, mesh,
    solver and post-processing), which can be controlled with the graphical user
    interface, from the command line, using text files written in Gmsh's own
    scripting language (.geo files), or through the C++, C, Python, Julia and
    Fortran application programming interface (API).
    
    This module defines the Gmsh Julia API.
    """
    module gmsh
    
    const GMSH_API_VERSION = "4.13.0"
    const GMSH_API_VERSION_MAJOR = 4
    const GMSH_API_VERSION_MINOR = 13
    const GMSH_API_VERSION_PATCH = 0
    const libdir = dirname(@__FILE__)
    const libname = Sys.iswindows() ? "gmsh-4.13.dll" : "libgmsh"
    import Libdl
    const lib = Libdl.find_library([libname], [libdir])
    
    """
        gmsh.initialize(argv = Vector{String}(), readConfigFiles = true, run = false)
    
    Initialize the Gmsh API. This must be called before any call to the other
    functions in the API. If `argc` and `argv` (or just `argv` in Python or Julia)
    are provided, they will be handled in the same way as the command line arguments
    in the Gmsh app. If `readConfigFiles` is set, read system Gmsh configuration
    files (gmshrc and gmsh-options). If `run` is set, run in the same way as the
    Gmsh app, either interactively or in batch mode depending on the command line
    arguments. If `run` is not set, initializing the API sets the options
    "General.AbortOnError" to 2 and "General.Terminal" to 1.
    
    Types:
     - `argv`: command line arguments
     - `readConfigFiles`: boolean
     - `run`: boolean
    """
    function initialize(argv = Vector{String}(), readConfigFiles = true, run = false)
        ierr = Ref{Cint}()
        ccall((:gmshInitialize, lib), Cvoid,
              (Cint, Ptr{Ptr{Cchar}}, Cint, Cint, Ptr{Cint}),
              length(argv), argv, readConfigFiles, run, ierr)
        ierr[] != 0 && error(gmsh.logger.getLastError())
        return nothing
    end
    
    """
        gmsh.isInitialized()
    
    Return 1 if the Gmsh API is initialized, and 0 if not.
    
    Return an integer.