Select Git revision
mainAntTweakBar.cpp
Forked from
gmsh / gmsh
Source project has a limited visibility.
-
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)
Christophe Geuzaine authoredEncapsulate 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.