ruby-gr 0.66.0.0 → 0.72.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/gr/ffi.rb +64 -0
- data/lib/gr.rb +8 -8
- data/lib/gr3/ffi.rb +28 -4
- data/lib/gr3.rb +13 -5
- data/lib/gr_commons/gr_logger.rb +0 -1
- data/lib/gr_commons/try_extern.rb +3 -3
- data/lib/gr_commons/version.rb +1 -1
- data/lib/grm/ffi.rb +16 -13
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 052e290dece0bbfbfb770da33ed8b55fbc9cb6bcf54e508245696d77bcc0138b
|
4
|
+
data.tar.gz: 21d69942fcd3414a9367167b5d89dd48151a1019cf213b1e78293954439fb901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53c0cef5add5333e520a34ab2fa923361a44acb0b3bc50ccfaf847153a9d0e404357904947fc2fa3abb125951eb967bcc1c78fb504c6bc9a5d9323f8238ebd31
|
7
|
+
data.tar.gz: 0f3c0d93ff46b9f850154ee4e9318f55b9f20f9cfa546472c556cc7b2e41e7dc0b53090041f043e95993e2b2a15b9a884a27d1adfec3e661a05bd89024b58e6d
|
data/README.md
CHANGED
data/lib/gr/ffi.rb
CHANGED
@@ -19,7 +19,54 @@ module GR
|
|
19
19
|
|
20
20
|
# https://github.com/sciapp/gr/blob/master/lib/gr/gr.h
|
21
21
|
# keep same order
|
22
|
+
|
23
|
+
Vertex = struct [
|
24
|
+
'double x',
|
25
|
+
'double y'
|
26
|
+
]
|
27
|
+
|
28
|
+
# Three-dimensional coordinate
|
29
|
+
Point3d = struct [
|
30
|
+
'double x',
|
31
|
+
'double y',
|
32
|
+
'double z'
|
33
|
+
]
|
34
|
+
|
35
|
+
# Data point for `gr_volume_nogrid`
|
36
|
+
DataPoint3d = struct [
|
37
|
+
{ pt: Point3d }, # Coordinates of data point
|
38
|
+
'double data' # Intensity of data point
|
39
|
+
]
|
40
|
+
|
41
|
+
# Provides optional extra data for `gr_volume_interp_gauss`
|
42
|
+
Guess = struct [
|
43
|
+
'double sqrt_det', # Square root of determinant of covariance matrix
|
44
|
+
{ gauss_sig_1: Point3d },
|
45
|
+
{ gauss_sig_2: Point3d },
|
46
|
+
{ gauss_sig_3: Point3d } # \f$\Sigma^{-\frac{1}{2}}\f$ encoded as three column vectors
|
47
|
+
]
|
48
|
+
|
49
|
+
# Provides optional extra data for `gr_volume_interp_tri_linear`
|
50
|
+
TriLinear = struct [
|
51
|
+
'double grid_x_re', # Reciproke of interpolation kernel extent in x-directionGrid resolution in x direction
|
52
|
+
'double grid_y_re', # Reciproke of interpolation kernel extent in y-directionGrid resolution in y direction
|
53
|
+
'double grid_z_re' # Reciproke of interpolation kernel extent in z-directionGrid resolution in z direction
|
54
|
+
]
|
55
|
+
|
56
|
+
CpuBasedVolume2Pass = struct [
|
57
|
+
'double dmin',
|
58
|
+
'double dmax',
|
59
|
+
'cpubasedvolume_2pass_priv_t *priv'
|
60
|
+
]
|
61
|
+
|
62
|
+
Hexbin2Pass = struct [
|
63
|
+
'int nc',
|
64
|
+
'int nntmax',
|
65
|
+
'hexbin_2pass_priv_t *priv'
|
66
|
+
]
|
67
|
+
|
22
68
|
try_extern 'void gr_initgr(void)'
|
69
|
+
try_extern 'int gr_debug(void)'
|
23
70
|
try_extern 'void gr_opengks(void)'
|
24
71
|
try_extern 'void gr_closegks(void)'
|
25
72
|
try_extern 'void gr_inqdspsize(double *, double *, int *, int *)'
|
@@ -67,6 +114,7 @@ module GR
|
|
67
114
|
try_extern 'void gr_settextcolorind(int)'
|
68
115
|
try_extern 'void gr_inqtextcolorind(int *)'
|
69
116
|
try_extern 'void gr_setcharheight(double)'
|
117
|
+
try_extern 'void gr_setwscharheight(double chh, double height)'
|
70
118
|
try_extern 'void gr_inqcharheight(double *)'
|
71
119
|
try_extern 'void gr_setcharup(double, double)'
|
72
120
|
try_extern 'void gr_settextpath(int)'
|
@@ -93,6 +141,7 @@ module GR
|
|
93
141
|
try_extern 'void gr_redrawsegws(void)'
|
94
142
|
try_extern 'void gr_setsegtran(int, double, double, double, double, double, double, double)'
|
95
143
|
try_extern 'void gr_closeseg(void)'
|
144
|
+
try_extern 'void gr_samplelocator(double *, double *, int *)'
|
96
145
|
try_extern 'void gr_emergencyclosegks(void)'
|
97
146
|
try_extern 'void gr_updategks(void)'
|
98
147
|
try_extern 'int gr_setspace(double, double, int, int)'
|
@@ -119,6 +168,7 @@ module GR
|
|
119
168
|
try_extern 'void gr_contourf(int, int, int, double *, double *, double *, double *, int)'
|
120
169
|
try_extern 'void gr_tricontour(int, double *, double *, double *, int, double *)'
|
121
170
|
try_extern 'int gr_hexbin(int, double *, double *, int)'
|
171
|
+
try_extern 'const hexbin_2pass_t *gr_hexbin_2pass(int, double *, double *, int, const hexbin_2pass_t *)'
|
122
172
|
try_extern 'void gr_setcolormap(int)'
|
123
173
|
try_extern 'void gr_inqcolormap(int *)'
|
124
174
|
try_extern 'void gr_setcolormapfromrgb(int n, double *r, double *g, double *b, double *x)'
|
@@ -155,6 +205,7 @@ module GR
|
|
155
205
|
try_extern 'void gr_endgraphics(void)'
|
156
206
|
try_extern 'char *gr_getgraphics(void)'
|
157
207
|
try_extern 'int gr_drawgraphics(char *)'
|
208
|
+
try_extern 'int gr_startlistener(void)'
|
158
209
|
try_extern 'void gr_mathtex(double, double, char *)'
|
159
210
|
try_extern 'void gr_inqmathtex(double, double, char *, double *, double *)'
|
160
211
|
try_extern 'void gr_beginselection(int, int)'
|
@@ -168,8 +219,10 @@ module GR
|
|
168
219
|
try_extern 'int gr_inqregenflags(void)'
|
169
220
|
try_extern 'void gr_savestate(void)'
|
170
221
|
try_extern 'void gr_restorestate(void)'
|
222
|
+
try_extern 'void gr_savecontext(int)'
|
171
223
|
try_extern 'void gr_selectcontext(int)'
|
172
224
|
try_extern 'void gr_destroycontext(int)'
|
225
|
+
try_extern 'void gr_unselectcontext(void)'
|
173
226
|
try_extern 'int gr_uselinespec(char *)'
|
174
227
|
try_extern 'void gr_delaunay(int, const double *, const double *, int *, int **)'
|
175
228
|
try_extern 'void gr_reducepoints(int, const double *, const double *, int, double *, double *)'
|
@@ -221,7 +274,18 @@ module GR
|
|
221
274
|
try_extern 'void gr_setapproximativecalculation(int)'
|
222
275
|
try_extern 'void gr_inqvolumeflags(int *, int *, int *, int *, int *)'
|
223
276
|
try_extern 'void gr_cpubasedvolume(int, int, int, double *, int, double *, double *, double *, double *)'
|
277
|
+
try_extern 'const cpubasedvolume_2pass_t *gr_cpubasedvolume_2pass(int, int, int, double *, int, double *, double *, double *, double *, const cpubasedvolume_2pass_t *)'
|
224
278
|
try_extern 'void gr_inqvpsize(int *, int *, double *)'
|
225
279
|
try_extern 'void gr_polygonmesh3d(int, const double *, const double *, const double *, int, const int *, const int *)'
|
280
|
+
# FIXME:
|
281
|
+
# typedef double (*kernel_f)(const data_point3d_t *, const void *, const point3d_t *, const point3d_t *);
|
282
|
+
# typedef double (*radius_f)(const data_point3d_t *, const void *);
|
283
|
+
typealias 'kernel_f', 'void*'
|
284
|
+
typealias 'radius_f', 'void*'
|
285
|
+
try_extern 'void gr_volume_nogrid(unsigned long, const data_point3d_t *, const void *, int, kernel_f, double *, double *, double, radius_f)'
|
286
|
+
try_extern 'void gr_volume_interp_tri_linear_init(double, double, double)'
|
287
|
+
try_extern 'void gr_volume_interp_gauss_init(double, double *)'
|
288
|
+
try_extern 'double gr_volume_interp_tri_linear(const data_point3d_t *, const void *, const point3d_t *, const point3d_t *)'
|
289
|
+
try_extern 'double gr_volume_interp_gauss(const data_point3d_t *, const void *, const point3d_t *, const point3d_t *)'
|
226
290
|
end
|
227
291
|
end
|
data/lib/gr.rb
CHANGED
@@ -278,7 +278,7 @@ module GR
|
|
278
278
|
# GR_TEXT_ENABLE_INLINE_MATH)
|
279
279
|
#
|
280
280
|
# The values for `x` and `y` specify the text position. If the GR_TEXT_USE_WC
|
281
|
-
# option is set, they are interpreted as world
|
281
|
+
# option is set, they are interpreted as world coordinates, otherwise as
|
282
282
|
# normalized device coordinates. The string may contain new line characters
|
283
283
|
# and inline math expressions ($...$). The latter are only taken into account,
|
284
284
|
# if the GR_TEXT_ENABLE_INLINE_MATH option is set.
|
@@ -407,7 +407,7 @@ module GR
|
|
407
407
|
# @param nrow [Integer] total number of rows in the color index array and the radii array
|
408
408
|
# @param color [Integer] color index array
|
409
409
|
#
|
410
|
-
# The mapping of the polar coordinates and the drawing is performed
|
410
|
+
# The mapping of the polar coordinates and the drawing is performed similar
|
411
411
|
# to `gr_polarcellarray` with the difference that the individual cell sizes
|
412
412
|
# are specified allowing nonuniform sized cells.
|
413
413
|
#
|
@@ -556,7 +556,7 @@ module GR
|
|
556
556
|
# * -27 : MARKERTYPE_STAR_6 - 6-pointed star (hexagram)
|
557
557
|
# * -28 : MARKERTYPE_STAR_7 - 7-pointed star (heptagram)
|
558
558
|
# * -29 : MARKERTYPE_STAR_8 - 8-pointed star (octagram)
|
559
|
-
# * -30 : MARKERTYPE_VLINE -
|
559
|
+
# * -30 : MARKERTYPE_VLINE - vertical line
|
560
560
|
# * -31 : MARKERTYPE_HLINE - horizontal line
|
561
561
|
# * -32 : MARKERTYPE_OMARK - o-mark
|
562
562
|
#
|
@@ -1544,10 +1544,10 @@ module GR
|
|
1544
1544
|
|
1545
1545
|
def beginprint(file_path)
|
1546
1546
|
super(file_path)
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1547
|
+
return unless block_given?
|
1548
|
+
|
1549
|
+
yield
|
1550
|
+
endprint
|
1551
1551
|
end
|
1552
1552
|
|
1553
1553
|
# Open and activate a print device with the given layout attributes.
|
@@ -1586,7 +1586,7 @@ module GR
|
|
1586
1586
|
# * Folio : 0.210 x 0.330
|
1587
1587
|
# * Ledger : 0.432 x 0.279
|
1588
1588
|
# * Tabloid : 0.279 x 0.432
|
1589
|
-
# @param orientation [String] Page orientation (Landscape,
|
1589
|
+
# @param orientation [String] Page orientation (Landscape, Portrait)
|
1590
1590
|
#
|
1591
1591
|
# @!method beginprintext
|
1592
1592
|
|
data/lib/gr3/ffi.rb
CHANGED
@@ -17,10 +17,28 @@ module GR3
|
|
17
17
|
|
18
18
|
extend GRCommons::TryExtern
|
19
19
|
|
20
|
-
typealias("GR3_MC_DTYPE", "unsigned short")
|
21
|
-
|
22
20
|
# https://github.com/sciapp/gr/blob/master/lib/gr3/gr3.h
|
23
21
|
# keep same order
|
22
|
+
|
23
|
+
typealias('GR3_MC_DTYPE', 'unsigned short')
|
24
|
+
|
25
|
+
Coord = struct [
|
26
|
+
'float x',
|
27
|
+
'float y',
|
28
|
+
'float z'
|
29
|
+
]
|
30
|
+
|
31
|
+
Triangle = struct [
|
32
|
+
{ 'vertices[3]' => Coord },
|
33
|
+
{ 'normal[3]' => Coord }
|
34
|
+
]
|
35
|
+
|
36
|
+
Volume2Pass = struct [
|
37
|
+
'double dmin',
|
38
|
+
'double dmax',
|
39
|
+
'gr3_volume_2pass_priv_t *priv'
|
40
|
+
]
|
41
|
+
|
24
42
|
try_extern 'int gr3_init(int *attrib_list)'
|
25
43
|
try_extern 'void gr3_free(void *pointer)'
|
26
44
|
try_extern 'void gr3_terminate(void)'
|
@@ -29,7 +47,7 @@ module GR3
|
|
29
47
|
try_extern 'const char *gr3_geterrorstring(int error)'
|
30
48
|
try_extern 'void gr3_setlogcallback(void (*gr3_log_func)(const char *log_message))'
|
31
49
|
try_extern 'int gr3_clear(void)'
|
32
|
-
try_extern 'void gr3_usecurrentframebuffer()'
|
50
|
+
try_extern 'void gr3_usecurrentframebuffer(void)'
|
33
51
|
try_extern 'void gr3_useframebuffer(unsigned int framebuffer)'
|
34
52
|
try_extern 'int gr3_setquality(int quality)'
|
35
53
|
try_extern 'int gr3_getimage(int width, int height, int use_alpha, char *pixels)'
|
@@ -100,6 +118,8 @@ module GR3
|
|
100
118
|
' const float *colors, const float *scales)'
|
101
119
|
try_extern 'void gr3_drawsurface(int mesh)'
|
102
120
|
try_extern 'void gr3_surface(int nx, int ny, float *px, float *py, float *pz, int option)'
|
121
|
+
try_extern 'void gr3_isosurface(int nx, int ny, int nz, const float *data, float isovalue, const float *color,' \
|
122
|
+
' const int *strides)'
|
103
123
|
try_extern 'int gr3_drawtubemesh(int n, float *points, float *colors, float *radii,' \
|
104
124
|
' int num_steps, int num_segments)'
|
105
125
|
try_extern 'int gr3_createtubemesh(int *mesh, int n,' \
|
@@ -142,6 +162,8 @@ module GR3
|
|
142
162
|
try_extern 'void gr3_drawtrianglesurface(int n, const float *triangles)'
|
143
163
|
try_extern 'void gr_volume(int nx, int ny, int nz, double *data,' \
|
144
164
|
' int algorithm, double *dmin_ptr, double *dmax_ptr)'
|
165
|
+
try_extern 'const gr3_volume_2pass_t *gr_volume_2pass(int nx, int ny, int nz, double *data,' \
|
166
|
+
' int algorithm, double *dmin_ptr, double *dmax_ptr, const gr3_volume_2pass_t *context)'
|
145
167
|
try_extern 'void gr3_setorthographicprojection' \
|
146
168
|
'(float left, float right, float bottom, float top, float znear, float zfar)'
|
147
169
|
try_extern 'void gr3_setsurfaceoption(int option)'
|
@@ -150,7 +172,9 @@ module GR3
|
|
150
172
|
try_extern 'int gr3_setlightsources(int num_lights, float *positions, float *colors)'
|
151
173
|
try_extern 'void gr3_setlightparameters(float ambient, float diffuse, float specular, float specular_power)'
|
152
174
|
try_extern 'void gr3_getlightparameters(float *ambient, float *diffuse, float *specular, float *specular_power)'
|
153
|
-
try_extern 'void gr3_setdefaultlightparameters()'
|
175
|
+
try_extern 'void gr3_setdefaultlightparameters(void)'
|
176
|
+
try_extern 'int gr3_getalphamode(int *mode)'
|
177
|
+
try_extern 'void gr3_setalphamode(int mode)'
|
154
178
|
try_extern 'void gr3_setclipping(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)'
|
155
179
|
try_extern 'void gr3_getclipping(float *xmin, float *xmax, float *ymin, float *ymax, float *zmin, float *zmax)'
|
156
180
|
end
|
data/lib/gr3.rb
CHANGED
@@ -302,7 +302,7 @@ module GR3
|
|
302
302
|
# @!method drawmesh
|
303
303
|
|
304
304
|
# This function marks a mesh for deletion and removes the user’s reference
|
305
|
-
# from the mesh’s
|
305
|
+
# from the mesh’s reference counter, so a user must not use the mesh after
|
306
306
|
# calling this function.
|
307
307
|
#
|
308
308
|
# @param mesh [Integer] The mesh that should be marked for deletion
|
@@ -587,10 +587,10 @@ module GR3
|
|
587
587
|
|
588
588
|
super(n, positions, colors, radii, bond_radius, bond_color, bond_delta)
|
589
589
|
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
590
|
+
return unless spins
|
591
|
+
|
592
|
+
spins = Numo::SFloat.cast(spins).reshape(n, 3)
|
593
|
+
drawspins(positions, spins, colors)
|
594
594
|
end
|
595
595
|
|
596
596
|
# Creates meshes for slices through the given data, using the current GR
|
@@ -871,6 +871,14 @@ module GR3
|
|
871
871
|
SURFACE_GRCOLOR = 8
|
872
872
|
SURFACE_GRZSHADED = 16
|
873
873
|
|
874
|
+
TRANSPARENCY_OPAQUE = 0
|
875
|
+
TRANSPARENCY_TRANSMIT = 1
|
876
|
+
TRANSPARENCY_FILTER = 2
|
877
|
+
|
878
|
+
VOLUME_EMISSION = 0
|
879
|
+
VOLUME_ABSORPTION = 1
|
880
|
+
VOLUME_MIP = 2
|
881
|
+
|
874
882
|
ATOM_COLORS =
|
875
883
|
[[0, 0, 0],
|
876
884
|
[255, 255, 255], [217, 255, 255], [204, 128, 255],
|
data/lib/gr_commons/gr_logger.rb
CHANGED
@@ -8,15 +8,15 @@ module GRCommons
|
|
8
8
|
# Improved extern method.
|
9
9
|
# 1. Ignore functions that cannot be attached.
|
10
10
|
# 2. Available function (names) are stored in @ffi_methods.
|
11
|
-
# For
|
11
|
+
# For compatibility with older versions of GR.
|
12
12
|
def try_extern(signature, *opts)
|
13
13
|
@ffi_methods ||= []
|
14
14
|
begin
|
15
15
|
func = extern(signature, *opts)
|
16
16
|
@ffi_methods << func.name
|
17
17
|
func
|
18
|
-
rescue
|
19
|
-
warn "#{e.class.name}: #{e.message}"
|
18
|
+
rescue Fiddle::DLError => e
|
19
|
+
warn "#{e.class.name}: #{e.message}" if $VERBOSE
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
data/lib/gr_commons/version.rb
CHANGED
data/lib/grm/ffi.rb
CHANGED
@@ -20,40 +20,42 @@ module GRM
|
|
20
20
|
# Currently, the declarations of GRM functions are distributed in several
|
21
21
|
# header files.
|
22
22
|
|
23
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/args.h
|
23
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/args.h
|
24
24
|
try_extern 'grm_args_t *grm_args_new(void)'
|
25
25
|
try_extern 'void grm_args_delete(grm_args_t *args)'
|
26
26
|
try_extern 'int grm_args_push(grm_args_t *args, const char *key, const char *value_format, ...)'
|
27
27
|
try_extern 'int grm_args_push_buf(grm_args_t *args, const char *key, const char *value_format, const void *buffer, int apply_padding)'
|
28
28
|
try_extern 'int grm_args_contains(const grm_args_t *args, const char *keyword)'
|
29
|
+
try_extern 'int grm_args_first_value(const grm_args_t *args, const char *keyword, const char *first_value_format, void *first_value, unsigned int *array_length)'
|
30
|
+
try_extern 'int grm_args_values(const grm_args_t *args, const char *keyword, const char *expected_format, ...)'
|
29
31
|
try_extern 'void grm_args_clear(grm_args_t *args)'
|
30
32
|
try_extern 'void grm_args_remove(grm_args_t *args, const char *key)'
|
31
33
|
typealias 'grm_args_ptr_t', 'void*'
|
32
34
|
try_extern 'grm_args_ptr_t grm_length(double value, const char *unit)'
|
33
35
|
|
34
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/dump.h
|
36
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/dump.h
|
35
37
|
try_extern 'void grm_dump(const grm_args_t *args, FILE *f)'
|
36
38
|
try_extern 'void grm_dump_json(const grm_args_t *args, FILE *f)'
|
37
39
|
try_extern 'char *grm_dump_json_str(void)'
|
38
40
|
|
39
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/event.h
|
41
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/event.h
|
40
42
|
typealias 'grm_event_type_t', 'int' # enum
|
41
43
|
typealias 'grm_event_callback_t', 'void*'
|
42
44
|
try_extern 'int grm_register(grm_event_type_t type, grm_event_callback_t callback)'
|
43
45
|
try_extern 'int grm_unregister(grm_event_type_t type)'
|
44
46
|
|
45
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/interaction.h
|
46
|
-
# FIXME: https://github.com/ruby/fiddle/issues/68
|
47
|
-
typealias 'const_int', 'int' # FIXME
|
47
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/interaction.h
|
48
48
|
try_extern 'int grm_input(const grm_args_t *input_args)'
|
49
|
-
try_extern 'int grm_get_box(
|
49
|
+
try_extern 'int grm_get_box(const int x1, const int y1, const int x2, const int y2, const int keep_aspect_ratio, int *x, int *y, int *w, int *h)'
|
50
50
|
try_extern 'int grm_is3d(const int x, const int y)'
|
51
|
-
try_extern 'grm_tooltip_info_t *grm_get_tooltip(
|
51
|
+
try_extern 'grm_tooltip_info_t *grm_get_tooltip(int mouse_x, int mouse_y)'
|
52
|
+
try_extern 'grm_tooltip_info_t **grm_get_tooltips_x(int mouse_x, int mouse_y, unsigned int *array_length)'
|
53
|
+
try_extern 'grm_accumulated_tooltip_info_t *grm_get_accumulated_tooltip_x(int mouse_x, int mouse_y)'
|
52
54
|
|
53
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/net.h
|
54
|
-
try_extern 'void *grm_open(int is_receiver, const char *name, unsigned int id,
|
55
|
-
|
56
|
-
|
55
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/net.h
|
56
|
+
try_extern 'void *grm_open(int is_receiver, const char *name, unsigned int id, ' \
|
57
|
+
'const char *(*custom_recv)(const char *, unsigned int), ' \
|
58
|
+
'int (*custom_send)(const char *, unsigned int, const char *))'
|
57
59
|
try_extern 'grm_args_t *grm_recv(const void *p, grm_args_t *args)'
|
58
60
|
try_extern 'int grm_send(const void *p, const char *data_desc, ...)'
|
59
61
|
try_extern 'int grm_send_buf(const void *p, const char *data_desc, const void *buffer, int apply_padding)'
|
@@ -61,7 +63,7 @@ module GRM
|
|
61
63
|
try_extern 'int grm_send_args(const void *p, const grm_args_t *args)'
|
62
64
|
try_extern 'void grm_close(const void *p)'
|
63
65
|
|
64
|
-
# https://github.com/sciapp/gr/blob/master/lib/grm/plot.h
|
66
|
+
# https://github.com/sciapp/gr/blob/master/lib/grm/include/grm/plot.h
|
65
67
|
try_extern 'void grm_finalize(void)'
|
66
68
|
try_extern 'int grm_clear(void)'
|
67
69
|
try_extern 'unsigned int grm_max_plotid(void)'
|
@@ -70,6 +72,7 @@ module GRM
|
|
70
72
|
try_extern 'int grm_merge_hold(const grm_args_t *args)'
|
71
73
|
try_extern 'int grm_merge_named(const grm_args_t *args, const char *identificator)'
|
72
74
|
try_extern 'int grm_plot(const grm_args_t *args)'
|
75
|
+
try_extern 'int grm_export(const char *file_path)'
|
73
76
|
try_extern 'int grm_switch(unsigned int id)'
|
74
77
|
end
|
75
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-gr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.72.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: numo-narray
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +86,7 @@ licenses:
|
|
86
86
|
- MIT
|
87
87
|
metadata:
|
88
88
|
msys2_mingw_dependencies: gr
|
89
|
-
post_install_message:
|
89
|
+
post_install_message:
|
90
90
|
rdoc_options: []
|
91
91
|
require_paths:
|
92
92
|
- lib
|
@@ -94,15 +94,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2.
|
97
|
+
version: '2.7'
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
105
|
-
signing_key:
|
104
|
+
rubygems_version: 3.4.14
|
105
|
+
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: GR for Ruby
|
108
108
|
test_files: []
|