|
57 | 57 | end
|
58 | 58 | end
|
59 | 59 |
|
60 |
| - function r = append_set_dimension(obj) |
| 60 | + function r = appendSetDimension(obj) |
61 | 61 | fname = strcat(obj.alias, '::appendSetDimension');
|
62 | 62 | h = nix_mx(fname, obj.nix_handle);
|
63 | 63 | r = nix.Utils.createEntity(h, @nix.SetDimension);
|
64 | 64 | end
|
65 | 65 |
|
66 |
| - function r = append_sampled_dimension(obj, interval) |
| 66 | + function r = appendSampledDimension(obj, interval) |
67 | 67 | fname = strcat(obj.alias, '::appendSampledDimension');
|
68 | 68 | h = nix_mx(fname, obj.nix_handle, interval);
|
69 | 69 | r = nix.Utils.createEntity(h, @nix.SampledDimension);
|
70 | 70 | end
|
71 | 71 |
|
72 |
| - function r = append_range_dimension(obj, ticks) |
| 72 | + function r = appendRangeDimension(obj, ticks) |
73 | 73 | fname = strcat(obj.alias, '::appendRangeDimension');
|
74 | 74 | h = nix_mx(fname, obj.nix_handle, ticks);
|
75 | 75 | r = nix.Utils.createEntity(h, @nix.RangeDimension);
|
76 | 76 | end
|
77 | 77 |
|
78 |
| - function r = append_alias_range_dimension(obj) |
| 78 | + function r = appendAliasRangeDimension(obj) |
79 | 79 | fname = strcat(obj.alias, '::appendAliasRangeDimension');
|
80 | 80 | h = nix_mx(fname, obj.nix_handle);
|
81 | 81 | r = nix.Utils.createEntity(h, @nix.RangeDimension);
|
82 | 82 | end
|
83 | 83 |
|
84 |
| - function r = open_dimension_idx(obj, idx) |
| 84 | + function r = openDimensionIdx(obj, idx) |
85 | 85 | % Getting the dimension by index starts with 1
|
86 | 86 | % instead of 0 compared to all other index functions.
|
87 | 87 | fname = strcat(obj.alias, '::openDimensionIdx');
|
|
96 | 96 | end
|
97 | 97 | end
|
98 | 98 |
|
99 |
| - function r = delete_dimensions(obj) |
| 99 | + function r = deleteDimensions(obj) |
100 | 100 | fname = strcat(obj.alias, '::deleteDimensions');
|
101 | 101 | r = nix_mx(fname, obj.nix_handle);
|
102 | 102 | end
|
103 | 103 |
|
104 |
| - function r = dimension_count(obj) |
| 104 | + function r = dimensionCount(obj) |
105 | 105 | r = nix.Utils.fetchEntityCount(obj, 'dimensionCount');
|
106 | 106 | end
|
107 | 107 |
|
108 | 108 | % -----------------
|
109 | 109 | % Data access methods
|
110 | 110 | % -----------------
|
111 | 111 |
|
112 |
| - function r = read_all(obj) |
| 112 | + function r = readAllData(obj) |
113 | 113 | fname = strcat(obj.alias, '::readAll');
|
114 | 114 | data = nix_mx(fname, obj.nix_handle);
|
115 | 115 | r = nix.Utils.transpose_array(data);
|
|
118 | 118 | %-- TODO add (optional) offset
|
119 | 119 | %-- If a DataArray has been created as boolean or numeric,
|
120 | 120 | %-- provide that only values of the proper DataType can be written.
|
121 |
| - function [] = write_all(obj, data) |
122 |
| - if (isinteger(obj.read_all) && isfloat(data)) |
| 121 | + function [] = writeAllData(obj, data) |
| 122 | + if (isinteger(obj.readAllData) && isfloat(data)) |
123 | 123 | disp('Warning: Writing Float data to an Integer DataArray');
|
124 | 124 | end
|
125 | 125 |
|
126 | 126 | err.identifier = 'NIXMX:improperDataType';
|
127 |
| - if (islogical(obj.read_all) && ~islogical(data)) |
| 127 | + if (islogical(obj.readAllData) && ~islogical(data)) |
128 | 128 | m = sprintf('Trying to write %s to a logical DataArray', class(data));
|
129 | 129 | err.message = m;
|
130 | 130 | error(err);
|
131 |
| - elseif (isnumeric(obj.read_all) && ~isnumeric(data)) |
132 |
| - m = sprintf('Trying to write %s to a %s DataArray', class(data), class(obj.read_all)); |
| 131 | + elseif (isnumeric(obj.readAllData) && ~isnumeric(data)) |
| 132 | + m = sprintf('Trying to write %s to a %s DataArray', ... |
| 133 | + class(data), class(obj.readAllData)); |
133 | 134 | err.message = m;
|
134 | 135 | error(err);
|
135 | 136 | elseif (ischar(data))
|
|
159 | 160 | % or remodels the size of an array to a completely different
|
160 | 161 | % shape, existing data that does not fit into the new shape
|
161 | 162 | % will be lost!
|
162 |
| - function [] = set_data_extent(obj, extent) |
| 163 | + function [] = setDataExtent(obj, extent) |
163 | 164 | fname = strcat(obj.alias, '::setDataExtent');
|
164 | 165 | nix_mx(fname, obj.nix_handle, extent);
|
165 | 166 | end
|
|
0 commit comments