eyeDrops  v2.3
A new approach to detecting eye blinks.
Instance Methods | Protected Attributes | Properties | List of all members
SensorDataViewController Class Reference

Sensor data view controller class class. More...

#import <SensorDataViewController.h>

Inherits NSViewController, <CPTPlotAreaDelegate>, <CPTPlotSpaceDelegate>, <CPTPlotDataSource>, and <CPTScatterPlotDelegate>.

Instance Methods

(void) - setParameters:titleSize:
 
(void) - generatePlotInView:
 
(void) - showData:
 
(void) - incomingCalibrationData:
 
(void) - resetGraph
 

Protected Attributes

CGFloat titleSize
 
CGFloat plotMaxTime
 
CPTGraph * graph
 
float negativeThresholdValue
 
CPTScatterPlot * negativeThresholdLine
 
float positiveThresholdValue
 
CPTScatterPlot * positiveThresholdLine
 
CPTScatterPlot * sensorDataPlot
 
bool isCalibrating
 

Properties

IBOutlet CPTGraphHostingView * hostingView
 

Detailed Description

Sensor data view controller class class.

This class contains the plot for the sensor data. By clicking in the plot area both a negative and a positive threshold line can be set.

Author
Benjamin Thiemann
Date
2016/11/16

Method Documentation

◆ generatePlotInView:()

- (void) generatePlotInView: (nonnull NSView *)  view

This method draws the graphs with all it's plots in the given view.

Parameters
viewThe view to draw in.

◆ incomingCalibrationData:()

- (void) incomingCalibrationData: (nonnull id)  sender

This method handles incoming calibraion data.

Parameters
senderThe sending instance.

◆ resetGraph()

- (void) resetGraph

This method resets the graph.

◆ setParameters:titleSize:()

- (void) setParameters: (NSUInteger)  time
titleSize: (NSUInteger)  aTitleSize 

This method sets the given parameters.

Parameters
timeThe maximum time (x axis).
aTitleSizeThe title size.

◆ showData:()

- (void) showData: (nonnull id)  sender

This method shows the data in the plot. Invoked when a data acquisition is completed.

Parameters
senderThe sending instance.

Member Data Documentation

◆ graph

- (CPTGraph*) graph
protected

The grapph.

◆ isCalibrating

- (bool) isCalibrating
protected

Boolean value that indicates whether calibraiton is ongoing.

◆ negativeThresholdLine

- (CPTScatterPlot*) negativeThresholdLine
protected

Horizontal line representing the negative threshold.

◆ negativeThresholdValue

- (float) negativeThresholdValue
protected

Float value representing the negative threshold.

◆ plotMaxTime

- (CGFloat) plotMaxTime
protected

Maximum plot time (scaling of x axis).

◆ positiveThresholdLine

- (CPTScatterPlot*) positiveThresholdLine
protected

Horizontal line representing the positive threshold.

◆ positiveThresholdValue

- (float) positiveThresholdValue
protected

Float value representing the positive threshold.

◆ sensorDataPlot

- (CPTScatterPlot*) sensorDataPlot
protected

The sensor data plot.

◆ titleSize

- (CGFloat) titleSize
protected

The title size.

Property Documentation

◆ hostingView

- (IBOutlet CPTGraphHostingView*) hostingView
readwritenonatomicstrong

The hosting view for the graph.


The documentation for this class was generated from the following files: