ruby-gr 0.64.3.0 → 0.66.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1174559ffb58dc220fd3e47db3bd8e684f5a60270c4fc0f376570e27ccc7407
4
- data.tar.gz: 4dc48873c8ff41574333f1dcd5fff826fabaaf0d5bf263520eabdb4292446c9b
3
+ metadata.gz: 8f62d57c43711e0e23533d38287699d89479a21071c362ff162f2106dfcc550e
4
+ data.tar.gz: 9be23f52f87aa7b61680142bc648049cbfa2c4b683bf082d47679daf430ff9dc
5
5
  SHA512:
6
- metadata.gz: 401bb86f4ad5f479ed2fddcbc1a7a81ebd9491df12c6d732c3e73f5308cdf9719757698580d5a70570dda52c8f77e1fdf6f5228056268cd497e8f280673660f2
7
- data.tar.gz: b3b11048b30d20ae60bcf310bc4ff0fbab447df9e4bd22f8a9629e5e4aeae190228042bdfff37ab3ea714f7bf3273d6ee70b27a699387cce08b3128541251d01
6
+ metadata.gz: fd728fb1457f78827d8ce1ecf77ef7cd87df51f1ecbc4a1165d371a67e04cac130294dbe9e8b6d947a69a6c1385818f7aa041df3d4de9a883aec7e11f62742f6
7
+ data.tar.gz: f6e6af01b74bfe6f6b373477d1a7cb917b52c8cb941d530fd1a90986927e241a4c75048cf49f2c1c4fbabebf59ea763d01de418768d67ebbafd9a19dabaf7b1c
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://img.shields.io/gem/v/ruby-gr?color=brightgreen)](https://rubygems.org/gems/ruby-gr)
4
4
  [![CI](https://github.com/red-data-tools/GR.rb/workflows/CI/badge.svg)](https://github.com/red-data-tools/GR.rb/actions)
5
5
  [![Gitter Chat](https://badges.gitter.im/red-data-tools/en.svg)](https://gitter.im/red-data-tools/en)
6
- [![Docs Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://rubydoc.info/gems/ruby-gr)
6
+ [![Docs Latest](https://img.shields.io/badge/docs-latest-blue.svg)](https://red-data-tools.github.io/GR.rb/)
7
7
 
8
8
  [![rdatasets-1](https://i.imgur.com/XEQ6wKs.png)](examples/rdatasets.rb)
9
9
  [![stem](https://i.imgur.com/3w0Ejrm.png)](examples/fast_plots.rb)
@@ -136,7 +136,7 @@ export GKS_WSTYPE=100
136
136
  ## Documentation
137
137
 
138
138
  - [GR.rb Wiki](https://github.com/red-data-tools/GR.rb/wiki)
139
- - [GR.rb API Documentation](https://rubydoc.info/gems/ruby-gr) - Yard documents.
139
+ - [GR.rb API Documentation](https://red-data-tools.github.io/GR.rb/) - Yard documents.
140
140
  - [GR Framework](https://gr-framework.org/) - The official GR reference.
141
141
 
142
142
  ## GR Installation
data/lib/gr/ffi.rb CHANGED
@@ -77,6 +77,8 @@ module GR
77
77
  try_extern 'void gr_inqfillstyle(int *)'
78
78
  try_extern 'void gr_setfillcolorind(int)'
79
79
  try_extern 'void gr_inqfillcolorind(int *)'
80
+ try_extern 'void gr_setresizebehaviour(int)'
81
+ try_extern 'void gr_inqresizebehaviour(int *)'
80
82
  try_extern 'void gr_setcolorrep(int, double, double, double)'
81
83
  try_extern 'void gr_setwindow(double, double, double, double)'
82
84
  try_extern 'void gr_inqwindow(double *, double *, double *, double *)'
data/lib/gr.rb CHANGED
@@ -809,6 +809,12 @@ module GR
809
809
  inquiry_int { |pt| super(pt) }
810
810
  end
811
811
 
812
+ # @!method gr_setresizebehaviour
813
+
814
+ def inqresizebehaviour
815
+ inquiry_int { |pt| super(pt) }
816
+ end
817
+
812
818
  # Redefine an existing color index representation by specifying an RGB color
813
819
  # triplet.
814
820
  #
data/lib/gr3/ffi.rb CHANGED
@@ -17,6 +17,8 @@ module GR3
17
17
 
18
18
  extend GRCommons::TryExtern
19
19
 
20
+ typealias("GR3_MC_DTYPE", "unsigned short")
21
+
20
22
  # https://github.com/sciapp/gr/blob/master/lib/gr3/gr3.h
21
23
  # keep same order
22
24
  try_extern 'int gr3_init(int *attrib_list)'
@@ -25,7 +27,7 @@ module GR3
25
27
  try_extern 'int gr3_geterror(int clear, int *line, const char **file)'
26
28
  try_extern 'const char *gr3_getrenderpathstring(void)'
27
29
  try_extern 'const char *gr3_geterrorstring(int error)'
28
- # try_extern 'void gr3_setlogcallback(void (*gr3_log_func)(const char *log_message))'
30
+ try_extern 'void gr3_setlogcallback(void (*gr3_log_func)(const char *log_message))'
29
31
  try_extern 'int gr3_clear(void)'
30
32
  try_extern 'void gr3_usecurrentframebuffer()'
31
33
  try_extern 'void gr3_useframebuffer(unsigned int framebuffer)'
@@ -73,19 +75,19 @@ module GR3
73
75
  try_extern 'void gr3_setviewmatrix(const float *m)'
74
76
  try_extern 'int gr3_getprojectiontype(void)'
75
77
  try_extern 'void gr3_setprojectiontype(int type)'
76
- # try_extern 'unsigned int gr3_triangulate(const unsigned short *data, ' \
77
- # 'unsigned short isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z, ' \
78
- # 'unsigned int stride_x, unsigned int stride_y, unsigned int stride_z, ' \
79
- # 'double step_x, double step_y, double step_z, double offset_x, double offset_y, double offset_z, ' \
80
- # 'gr3_triangle_t **triangles_p)'
81
- # try_extern 'void gr3_triangulateindexed(const unsigned short *data, ' \
82
- # 'unsigned short isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z, ' \
83
- # 'unsigned int stride_x, unsigned int stride_y, unsigned int stride_z, ' \
84
- # 'double step_x, double step_y, double step_z, double offset_x, double offset_y, double offset_z, ' \
85
- # 'unsigned int *num_vertices, gr3_coord_t **vertices, gr3_coord_t **normals, ' \
86
- # 'unsigned int *num_indices, unsigned int **indices)'
87
- try_extern 'int gr3_createisosurfacemesh(int *mesh, unsigned short *data,' \
88
- ' unsigned short isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
78
+ try_extern 'unsigned int gr3_triangulate(const GR3_MC_DTYPE *data,' \
79
+ ' GR3_MC_DTYPE isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
80
+ ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
81
+ ' double step_x, double step_y, double step_z, double offset_x, double offset_y, double offset_z,' \
82
+ ' gr3_triangle_t **triangles_p)'
83
+ try_extern 'void gr3_triangulateindexed(const GR3_MC_DTYPE *data,' \
84
+ ' GR3_MC_DTYPE isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
85
+ ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
86
+ ' double step_x, double step_y, double step_z, double offset_x, double offset_y, double offset_z,' \
87
+ ' unsigned int *num_vertices, gr3_coord_t **vertices, gr3_coord_t **normals,' \
88
+ ' unsigned int *num_indices, unsigned int **indices)'
89
+ try_extern 'int gr3_createisosurfacemesh(int *mesh, GR3_MC_DTYPE *data,' \
90
+ ' GR3_MC_DTYPE isolevel, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
89
91
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
90
92
  ' double step_x, double step_y, double step_z,' \
91
93
  ' double offset_x, double offset_y, double offset_z)'
@@ -107,32 +109,32 @@ module GR3
107
109
  ' float cone_radius, float cylinder_radius, float cone_height, float cylinder_height)'
108
110
  try_extern 'void gr3_drawmolecule(int n, const float *positions, const float *colors, const float *radii,' \
109
111
  ' float bond_radius, const float bond_color[3], float bond_delta)'
110
- try_extern 'void gr3_createxslicemesh(int *mesh, const unsigned short *data,' \
112
+ try_extern 'void gr3_createxslicemesh(int *mesh, const GR3_MC_DTYPE *data,' \
111
113
  ' unsigned int ix, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
112
114
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
113
115
  ' double step_x, double step_y, double step_z,' \
114
116
  ' double offset_x, double offset_y, double offset_z)'
115
- try_extern 'void gr3_createyslicemesh(int *mesh, const unsigned short *data,' \
117
+ try_extern 'void gr3_createyslicemesh(int *mesh, const GR3_MC_DTYPE *data,' \
116
118
  ' unsigned int iy, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
117
119
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
118
120
  ' double step_x, double step_y, double step_z,' \
119
121
  ' double offset_x, double offset_y, double offset_z)'
120
- try_extern 'void gr3_createzslicemesh(int *mesh, const unsigned short *data,' \
122
+ try_extern 'void gr3_createzslicemesh(int *mesh, const GR3_MC_DTYPE *data,' \
121
123
  ' unsigned int iz, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
122
124
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
123
125
  ' double step_x, double step_y, double step_z,' \
124
126
  ' double offset_x, double offset_y, double offset_z)'
125
- try_extern 'void gr3_drawxslicemesh(const unsigned short *data, unsigned int ix,' \
127
+ try_extern 'void gr3_drawxslicemesh(const GR3_MC_DTYPE *data, unsigned int ix,' \
126
128
  ' unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
127
129
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
128
130
  ' double step_x, double step_y, double step_z,' \
129
131
  ' double offset_x, double offset_y, double offset_z)'
130
- try_extern 'void gr3_drawyslicemesh(const unsigned short *data, unsigned int iy,' \
132
+ try_extern 'void gr3_drawyslicemesh(const GR3_MC_DTYPE *data, unsigned int iy,' \
131
133
  ' unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
132
134
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
133
135
  ' double step_x, double step_y, double step_z,' \
134
136
  ' double offset_x, double offset_y, double offset_z)'
135
- try_extern 'void gr3_drawzslicemesh(const unsigned short *data, unsigned int iz,' \
137
+ try_extern 'void gr3_drawzslicemesh(const GR3_MC_DTYPE *data, unsigned int iz,' \
136
138
  ' unsigned int dim_x, unsigned int dim_y, unsigned int dim_z,' \
137
139
  ' unsigned int stride_x, unsigned int stride_y, unsigned int stride_z,' \
138
140
  ' double step_x, double step_y, double step_z,' \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GRCommons
4
- VERSION = '0.64.3.0'
4
+ VERSION = '0.66.0.0'
5
5
  end
data/lib/grm/ffi.rb CHANGED
@@ -47,6 +47,7 @@ module GRM
47
47
  typealias 'const_int', 'int' # FIXME
48
48
  try_extern 'int grm_input(const grm_args_t *input_args)'
49
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)' # FIXME
50
+ try_extern 'int grm_is3d(const int x, const int y)'
50
51
  try_extern 'grm_tooltip_info_t *grm_get_tooltip(const_int, const_int)' # FIXME
51
52
 
52
53
  # https://github.com/sciapp/gr/blob/master/lib/grm/net.h
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.64.3.0
4
+ version: 0.66.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2022-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: histogram
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: numo-narray
43
29
  requirement: !ruby/object:Gem::Requirement