Merging minor stuff

parent 5068d735
...@@ -5,22 +5,28 @@ classdef DAFF < handle ...@@ -5,22 +5,28 @@ classdef DAFF < handle
end end
methods methods
function obj = DAFF( filepath ) function obj = DAFF( filepath )
%% Create DAFF class and load from file %% Create DAFF class and loads content from file
% filepath Path to DAFF file % filepath Path to DAFF file
if( nargin > 0 ) if( nargin > 0 )
obj.open( filepath ) obj.open( filepath )
end end
end end
function open( obj, filepath ) function open( obj, filepath )
%% Opens a DAFF file
obj.daffhandle = DAFFv17( 'open', filepath ); obj.daffhandle = DAFFv17( 'open', filepath );
end end
function close( obj )
%% Closes the DAFF file
DAFFv17( 'close', obj.daffhandle )
end
function set_data_view( obj ) function set_data_view( obj )
%% Switches to data view (alpha, beta)
obj.view = 'data'; obj.view = 'data';
end end
function set_object_view( obj ) function set_object_view( obj )
%% Switches to object / user view (elevation, azimuth) [default]
obj.view = 'object'; obj.view = 'object';
end end
function metadata = get_metadata(obj) function metadata = get_metadata(obj)
%% Returns the metadata of an opened DAFF file %% Returns the metadata of an opened DAFF file
metadata = DAFFv17('getMetadata', obj.daffhandle); metadata = DAFFv17('getMetadata', obj.daffhandle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment