https://github.com/Klimmasch/AEC
Tip revision: 96e9ae2336937469a8f1602c178ea5e0cb8564b6 authored by Lukas Klimmasch on 13 August 2021, 14:16:04 UTC
Merge branch 'alternateRearing' of https://github.com/Klimmasch/AEC into alternateRearing
Merge branch 'alternateRearing' of https://github.com/Klimmasch/AEC into alternateRearing
Tip revision: 96e9ae2
OpenEyeSimV5.m
classdef OpenEyeSimV5 < handle
properties (Access = private)
id_ % ID of the session.
end
methods
function this = OpenEyeSimV5(filename)
assert(ischar(filename));
this.id_ = OpenEyeSimV5_('new', filename);
end
function delete(this)
%DELETE Destructor.
OpenEyeSimV5_('delete', this.id_);
end
function set_params(this, texture, angle, distance, strabismusAngle, planeScale, anglePlaneX, anglePlaneY, anglePlaneZ)
%PUT parameters to the simulator
assert(isscalar(this));
OpenEyeSimV5_('set_params', this.id_, texture, angle, distance, strabismusAngle, planeScale, anglePlaneX, anglePlaneY, anglePlaneZ);
end
function add_texture(this, number, texture)
%PUT parameters to the simulator
assert(isscalar(this));
OpenEyeSimV5_('add_texture', this.id_, number, texture);
end
function result = generate_left(this)
%PUT Save something to the database.
assert(isscalar(this));
result = OpenEyeSimV5_('generate_left', this.id_);
end
function result = generate_right(this)
%PUT Save something to the database.
assert(isscalar(this));
result = OpenEyeSimV5_('generate_right', this.id_);
end
function request(this)
%PUT Save something to the database.
assert(isscalar(this));
OpenEyeSimV5_('request', this.id_);
end
function initRenderer(this)
%PUT Save something to the database.
assert(isscalar(this));
OpenEyeSimV5_('initRenderer', this.id_);
end
function reinitRenderer(this)
%PUT Save something to the database.
assert(isscalar(this));
OpenEyeSimV5_('reinitRenderer', this.id_);
end
end
end