comparison m-toolbox/classes/@data3D/data3D.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % DATA3D is the abstract base class for 3-dimensional data objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: DATA3D is the base class for 3-dimensional data objects. This is
5 % an abstract class.
6 %
7 % SUPER CLASSES: ltpda_data < ltpda_nuo < ltpda_obj
8 %
9 % VERSION: $Id: data3D.m,v 1.19 2011/03/30 13:15:00 mauro Exp $
10 %
11 % SEE ALSO: ltpda_data, fsdata, tsdata, xydata, data3D
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 classdef (Hidden = true) data3D < data2D
16
17
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19 % Property definition %
20 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21
22 %---------- Public (read/write) Properties ----------
23 properties (GetAccess = public, SetAccess = public)
24 zunits = unit; % units of the z-axis
25 z = []; % data values of the z-axis
26 dz = []; % error on z values
27 end
28
29 %---------- Protected read-only Properties ----------
30 properties (GetAccess = public, SetAccess = protected)
31 end
32
33 %---------- Private Properties ----------
34 properties (GetAccess = protected, SetAccess = protected)
35 end
36
37 %---------- Abstract Properties ----------
38 properties (Abstract = true, SetAccess = protected)
39 end
40
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42 % Check property setting %
43 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
44
45 methods
46 %--- Zunits
47 function set.zunits(obj, val)
48 if ~ischar(val) && ~isa(val, 'unit')
49 error('### The value for the property ''zunits'' must be a unit-object');
50 end
51 if ischar(val)
52 obj.zunits = unit(val);
53 elseif isa(val, 'unit')
54 obj.zunits = val;
55 else
56 error('### The zunits value must be a unit or a string');
57 end
58 end
59 %--- Z
60 function set.z(obj, val)
61 if ~isnumeric(val) || ndims(val) ~= 2 || isvector(val)
62 error('### The value for the property ''z'' must be a numeric matrix');
63 end
64 obj.z = val;
65 end
66 end
67
68 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69 % Constructor %
70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
71
72 methods
73 function obj = data3D(varargin)
74 end
75 end
76
77 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
78 % Methods (public) %
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80
81 methods
82 end
83
84 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85 % Methods (protected) %
86 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87
88 methods (Access = protected)
89 varargout = fromStruct(varargin)
90 varargout = fromDom(varargin)
91 end
92
93 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94 % Methods (private) %
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96
97 methods (Access = private)
98 end
99
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 % Methods (static) %
102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
103
104 methods (Static)
105
106 function ii = getInfo(varargin)
107 ii = utils.helper.generic_getInfo(varargin{:}, 'data3D');
108 end
109
110 function out = VEROUT()
111 out = '$Id: data3D.m,v 1.19 2011/03/30 13:15:00 mauro Exp $';
112 end
113
114 function out = SETS()
115 out = {};
116 end
117
118 function out = getDefaultPlist()
119 out = [];
120 end
121
122 end
123
124 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
125 % Methods (abstract) %
126 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127
128 methods (Static)
129 end
130
131 end
132