Opticka 2.16.1
Opticka is an experiment manager for behavioral research.
|
colourManager manages colours wrapping the CRS Color Toolbox More...
colourManager manages colours wrapping the CRS Color Toolbox
Copyright ©2014-2022 Ian Max Andolina — released: LGPL3, see LICENCE.md
Public Member Functions | |
function | colourManager (in varargin) |
Class constructor. | |
function | DKLtoRGB (in obj, in source, in background) |
function | RGBtoDKL (in obj, in source, in background) |
function | RGBtoxyY (in obj, in source) |
function | RGBtoMB (in obj, in source) |
function | MBtoRGB (in obj, in source) |
function | DKLtoxyY (in obj, in source, in background) |
function | xyYtoRGB (in obj, in source) |
function | plot (in obj) |
function | closeScreen (in obj) |
Public Member Functions inherited from optickaCore | |
function | optickaCore (in varargin) |
Class constructor. | |
function get | fullName (in me) |
function | getALF (in me, in subject, in sessionPrefix, in lab, in create) |
function | findAttributes (in me, in attrName, in attrValue) |
function | findAttributesandType (in me, in attrName, in attrValue, in type) |
find properties of object with specific attributes, for example all properties whose GetAcccess attribute is public and type is logical. | |
function | findPropertyDefault (in me, in propName) |
function | clone (in me) |
Use this syntax to make a deep copy of the object, i.e. OBJ_OUT has the same field values, but will not behave as a handle-copy of me anymore. | |
function | checkSuperclasses (in List) |
function | editProperties (in me, in properties) |
method to modify a set of properties | |
function | setProp (in me, in property, in value) |
method to fast change a particular value. This is useful for use in anonymous functions, like in the state machine. | |
function | initialiseGlobals (in me, in doReset, in doOpen) |
function | initialiseSaveFile (in me) |
Initialise Save prefix. | |
function | checkPaths (in me) |
checks the paths are valid | |
Public Attributes | |
Property | verbose |
verbosity | |
Property | deviceSPD |
Property | sensitivities |
Property | sensitivitiesCIE |
Property | backgroundColour |
background colour | |
Property | screen |
screen | |
Property | gamutLimit |
how many times to try to find within gamut value? | |
Property | axisPriority |
prioritize which value to get back into gamut? | |
Property | autoPlot |
auto plot last RGB | |
Property | modifyRadius |
the step to modify radius to get into gamut | |
Property | lastRGB |
Property | lastDKL |
Property | lastMB |
Property | lastxyY |
Public Attributes inherited from optickaCore | |
Property | name |
object name | |
Property | comment |
comment | |
Property | verbose |
verbose logging, subclasses must assign this. This is normally logical true/false | |
Property | dateStamp |
clock() dateStamp set on construction | |
Property | uuid |
universal ID | |
Property | paths |
storage of various paths | |
Property | fullName |
The fullName is the object name combined with its uuid and class name. | |
Additional Inherited Members | |
Static Public Member Functions inherited from optickaCore | |
static function | makeArgs (in args) |
Converts cell args to structure array. | |
static function | addDefaults (in args, in defs) |
add default options to arg input | |
static function | hasKey (in in, in key) |
check if a struct / object has a propery / field | |
static function | getKeys (in device) |
PTB Get key presses, stops key bouncing. | |
Protected Member Functions inherited from optickaCore | |
function | parseArgs (in me, in args, in allowedProperties) |
Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties. | |
function | addArgs (in me, in args) |
function | setPaths (in me) |
Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties. | |
function | getFonts (in me) |
set paths for object | |
function | toStructure (in me) |
Converts properties to a structure. | |
function | getType (in me, in in) |
function | logOutput (in me, in in, in message, in override) |
Give a metaproperty return the likely property class. | |
function | salutation (in me, in varargin) |
Prints messages dependent on verbosity. | |
Protected Attributes inherited from optickaCore | |
Property | cloning |
are we cloning this from another object | |
Property | mversion |
Matlab version number, this is transient so it is not saved. | |
Property | sansFont |
sans font | |
Property | monoFont |
monoFont | |
Property | className |
class name | |
Property | savePrefix |
save prefix generated from clock time | |
Property | fullName_ |
cached full name | |
function colourManager::colourManager | ( | in | varargin | ) |
Class constructor.
screenManager constructor
varargin | can be simple name value pairs, a structure or cell array |
function colourManager::closeScreen | ( | in | obj | ) |
return
function colourManager::DKLtoRGB | ( | in | obj, |
in | source, | ||
in | background | ||
) |
return
function colourManager::DKLtoxyY | ( | in | obj, |
in | source, | ||
in | background | ||
) |
return
function colourManager::MBtoRGB | ( | in | obj, |
in | source | ||
) |
return
function colourManager::plot | ( | in | obj | ) |
return
function colourManager::RGBtoDKL | ( | in | obj, |
in | source, | ||
in | background | ||
) |
return
function colourManager::RGBtoMB | ( | in | obj, |
in | source | ||
) |
return
function colourManager::RGBtoxyY | ( | in | obj, |
in | source | ||
) |
return
function colourManager::xyYtoRGB | ( | in | obj, |
in | source | ||
) |
return
Property colourManager::autoPlot |
auto plot last RGB
Property colourManager::axisPriority |
prioritize which value to get back into gamut?
Property colourManager::backgroundColour |
background colour
Property colourManager::deviceSPD |
Property colourManager::gamutLimit |
how many times to try to find within gamut value?
Property colourManager::lastDKL |
Property colourManager::lastMB |
Property colourManager::lastRGB |
Property colourManager::lastxyY |
Property colourManager::modifyRadius |
the step to modify radius to get into gamut
Property colourManager::screen |
screen
Property colourManager::sensitivities |
Property colourManager::sensitivitiesCIE |
Property colourManager::verbose |
verbosity