Stimfit  0.13.15
Public Member Functions

The document class, derived from both wxDocument and Recording. More...

#include <doc.h>

Inheritance diagram for wxStfDoc:
Inheritance graph
[legend]
Collaboration diagram for wxStfDoc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxStfDoc ()
 Constructor.
 ~wxStfDoc ()
 Destructor.
void OnSwapChannels (wxCommandEvent &event)
 Swaps active and inactive channel.
virtual bool OnOpenDocument (const wxString &filename)
 Override default file opening.
virtual bool OnOpenPyDocument (const wxString &filename)
 Open document without progress dialog.
virtual bool SaveAs ()
 Override default file saving.
virtual bool DoSaveDocument (const wxString &filename)
 Override default file saving.
virtual bool OnCloseDocument ()
 Override default file closing.
virtual bool OnNewDocument ()
 Override default file creation.
void SetData (const Recording &c_Data, const wxStfDoc *Sender, const wxString &title)
 Sets the content of a newly created file.
bool GetIsAverage () const
 Indicates whether an average has been created.
bool GetPeakAtEnd () const
 Indicates whether the right peak cursor should always be at the end of a trace.
bool IsInitialized () const
 Indicates whether the the document is fully initialised.
void SetPeakAtEnd (bool value)
 Sets the right peak cursor to the end of a trace.
const RecordingGetAverage () const
 Retrieves the average trace(s).
void CheckBoundaries ()
 Checks whether any cursor is reversed or out of range and corrects it if required.
bool SetSection (std::size_t section)
 Sets the current section to the specified value.
bool OnNewfromselectedThis ()
 Creates a new window containing the selected sections of this file.
void Selectall (wxCommandEvent &event)
 Selects all sections.
void Deleteselected (wxCommandEvent &event)
 Unselects all sections.
void UpdateSelectedButton ()
 Updates the status of the selection button.
void CreateAverage (bool calcSD, bool align)
 Creates an average trace from the selected sections.
void ToggleSelect ()
 Toggles the selection status of the current section.
void Select ()
 Selects the current section if previously unselected.
void Remove ()
 Unselects the current section if previously selected.
void Extract (wxCommandEvent &event)
 Creates a new document from the checked events.
void InteractiveEraseEvents (wxCommandEvent &event)
 Erases all events, independent of whether they are checked or not.
void AddEvent (wxCommandEvent &event)
 Adds an event at the current eventPos.
bool SubtractBase ()
 Subtracts the baseline of all selected traces.
void FitDecay (wxCommandEvent &event)
 Fit a function to the data.
void SetFileMenu (wxMenu *menu)
 Sets a pointer to the file menu attached to this document.
void Measure ()
 Measure everything using functions defined in measlib.h.
stf::Table CurResultsTable ()
 Put the current measurement results into a text table.
std::size_t GetMeasCursor () const
 Retrieves the position of the measurement cursor (crosshair).
std::size_t GetBaseBeg () const
 Retrieves the position of the left baseline cursor.
std::size_t GetBaseEnd () const
 Retrieves the position of the right baseline cursor.
std::size_t GetPeakBeg () const
 Retrieves the position of the left peak cursor.
std::size_t GetPeakEnd () const
 Retrieves the position of the right peak cursor.
std::size_t GetFitBeg () const
 Retrieves the position of the left fitting cursor.
std::size_t GetFitEnd () const
 Retrieves the position of the right fitting cursor.
int GetPM () const
 Retrieves the number of points used for averaging during peak calculation.
double GetLatencyBeg () const
 Retrieves the position of the left latency cursor.
double GetLatencyEnd () const
 Retrieves the position of the right latency cursor.
double GetLatency () const
 Retrieves the latency.
double GetTLoReal () const
 Retrieves the time point at which Lo% of the maximal amplitude have been reached.
double GetTHiReal () const
 Retrieves the time point at which Hi% of the maximal amplitude have been reached.
double GetInnerLoRT () const
 Retrieves the time point at which Lo% of the maximal amplitude have been reached.
double GetInnerHiRT () const
 Retrieves the time point at which Hi% of the maximal amplitude have been reached.
double GetOuterLoRT () const
 Retrieves the time point at which Lo% of the maximal amplitude have been reached.
double GetOuterHiRT () const
 Retrieves the time point at which Hi% of the maximal amplitude have been reached.
double GetT50LeftReal () const
 Retrieves the time point at which 50% of the maximal amplitude have been reached from the left of the peak.
double GetT50RightReal () const
 Retrieves the time point at which 50% of the maximal amplitude have been reached from the right of the peak.
double GetT50Y () const
 Retrieves the y value at 50% of the maximal amplitude.
double GetMaxRise () const
 Retrieves the maximal slope of the rising phase.
double GetMaxDecay () const
 Retrieves the maximal slope of the decaying phase.
double GetAPMaxRiseT () const
 Retrieves the time point of the maximal slope of the rising phase in the second channel.
double GetAPMaxT () const
 Retrieves the time point of the peak in the second channel.
double GetAPT50LeftReal () const
 Retrieves the time point at which 50% of the max. amplitude have been reached from the left of the peak in the reference channel.
double GetMaxRiseT () const
 Retrieves the time point of the maximal slope during the rising phase.
double GetMaxRiseY () const
 Retrieves the y-value at the time point of the maximal slope during the rising phase.
double GetMaxDecayT () const
 Retrieves the time point of the maximal slope during the decaying phase.
double GetMaxDecayY () const
 Retrieves the y-value at the time point of the maximal slope during the decaying phase.
double GetMeasValue ()
 Retrieves the y-value at the measurement cursor (crosshair). Will update measCursor if out of range.
double GetPeak () const
 Retrieves the peak value.
double GetPeakTime () const
 Retrieves the peak time value.
double GetBase () const
 Retrieves the baseline.
double GetAPBase () const
 Retrieves the baseline in the second channel.
double GetBaseSD () const
 Retrieves the standard deviation of the baseline.
double GetThreshold () const
 Retrieves the value at which the threshold slope is crossed.
double GetMaxT () const
 Retrieves the time point at which the peak is found.
double GetThrT () const
 Retrieves the time point at which the threshold slope is crossed.
double GetRTLoHi () const
 Retrieves the Lo to Hi% rise time.
double GetInnerRiseTime () const
 Retrieves the inner rise time.
double GetOuterRiseTime () const
 Retrieves the outer rise time.
double GetHalfDuration () const
 Retrieves the full width at half-maximal amplitude ("half duration").
double GetSlopeRatio () const
 Retrieves ratio of the maximal slopes during the rising and decaying phase.
int GetRTFactor () const
 Retrieves lower factor (e.g 20) for the rise time calculation.
stf::latency_mode GetLatencyStartMode () const
 Retrieves the mode of the latency start cursor.
stf::latency_mode GetLatencyEndMode () const
 Retrieves the mode of the latency end cursor.
stf::latency_window_mode GetLatencyWindowMode () const
 Retrieves the mode of the latency window.
stf::direction GetDirection () const
 Retrieves the direction of peak calculations.
bool GetFromBase () const
 Indicates whether to use the baseline as a reference for AP kinetics.
bool GetViewCrosshair () const
 Indicates whether the measurement cursor (crosshair) value should be shown in the results table.
bool GetViewBaseline () const
 Indicates whether the baseline value should be shown in the results table.
bool GetViewBaseSD () const
 Indicates whether the baseline's standard deviation should be shown in the results table.
bool GetViewThreshold () const
 Indicates whether the threshold should be shown in the results table.
bool GetViewPeakZero () const
 Indicates whether the peak value (measured from zero) should be shown in the results table.
bool GetViewPeakBase () const
 Indicates whether the peak value (measured from baseline) should be shown in the results table.
bool GetViewPeakThreshold () const
 Indicates whether the peak value (measured from threshold) should be shown in the results table.
bool GetViewRTLoHi () const
 Indicates whether the Lo to Hi% rise time should be shown in the results table.
bool GetViewInnerRiseTime () const
 Indicates whether the inner rise time should be shown in the results table.
bool GetViewOuterRiseTime () const
 Indicates whether the outer rise time should be shown in the results table.
bool GetViewT50 () const
 Indicates whether the half duration should be shown in the results table.
bool GetViewRD () const
 Indicates whether the ratio of the maximal slopes during rise and decay should be shown in the results table.
bool GetViewSlopeRise () const
 Indicates whether the maximal slope during the rising phase should be shown in the results table.
bool GetViewSlopeDecay () const
 Indicates whether the maximal slope during the decaying phase should be shown in the results table.
bool GetViewLatency () const
 Indicates whether the latency should be shown in the results table.
bool GetViewCursors () const
 Indicates whether two additional rows showing the positions of start and end cursors should be shown in the results table.
double GetSlopeForThreshold () const
 Returns the slope for threshold detection.
const XZoomGetXZoom ()
 Returns the current zoom settings for this channel (read-only).
XZoomGetXZoomW ()
 Returns the current zoom settings for this channel (read & write).
const YZoomGetYZoom (int ch)
 Returns the current zoom settings for this channel (read-only).
YZoomGetYZoomW (int ch)
 Returns the current zoom settings for this channel (read & write).
void SetMeasCursor (int value)
 Sets the position of the measurement cursor (crosshair).
void SetBaseBeg (int value)
 Sets the position of the left baseline cursor.
void SetBaseEnd (int value)
 Sets the position of the right baseline cursor.
void SetPeakBeg (int value)
 Sets the position of the left peak cursor.
void SetPeakEnd (int value)
 Sets the position of the right peak cursor.
void SetFitBeg (int value)
 Sets the position of the left fitting cursor.
void SetFitEnd (int value)
 Sets the position of the right fitting cursor.
void SetLatencyBeg (double value)
 Sets the position of the left latency cursor.
void SetLatencyEnd (double value)
 Sets the position of the right latency cursor.
void SetLatency (double value)
 Sets the latency.
void SetPM (int value)
 Sets the number of points used for averaging during peak calculation.
void SetRTFactor (int value)
 Sets the lower value (e.g 20) to calculate the rise time.
void SetLatencyStartMode (stf::latency_mode value)
 Sets the mode of the latency start cursor.
void SetLatencyEndMode (stf::latency_mode value)
 Sets the mode of the latency end cursor.
void SetLatencyWindowMode (stf::latency_window_mode value)
 Sets the mode of the latency end cursor.
void SetLatencyStartMode (int value)
 Sets the mode of the latency start cursor.
void SetLatencyEndMode (int value)
 Sets the mode of the latency end cursor.
void SetLatencyWindowMode (int value)
 Sets the mode of the latency end cursor.
void SetDirection (stf::direction value)
 Sets the direction of peak calculations.
void SetFromBase (bool frombase)
 Sets the reference for AP kinetics measurements.
void SetViewCrosshair (bool value)
 Determines whether the measurement cursor (crosshair) value should be shown in the results table.
void SetViewBaseline (bool value)
 Determines whether the baseline value should be shown in the results table.
void SetViewBaseSD (bool value)
 Determines whether the baseline's standard deviation should be shown in the results table.
void SetViewThreshold (bool value)
 Determines whether the threshold should be shown in the results table.
void SetViewPeakZero (bool value)
 Determines whether the peak value (measured from zero) should be shown in the results table.
void SetViewPeakBase (bool value)
 Determines whether the peak value (measured from baseline) should be shown in the results table.
void SetViewPeakThreshold (bool value)
 Determines whether the peak value (measured from threshold) should be shown in the results table.
void SetViewRTLoHi (bool value)
 Determines whether the Lo to Hi% rise time should be shown in the results table.
void SetViewInnerRiseTime (bool value)
 Determines whether the inner rise time should be shown in the results table.
void SetViewOuterRiseTime (bool value)
 Determines whether the outer rise time should be shown in the results table.
void SetViewT50 (bool value)
 Determines whether the half duration should be shown in the results table.
void SetViewRD (bool value)
 Determines whether the ratio of the maximal slopes during rise and decay should be shown in the results table.
void SetViewSlopeRise (bool value)
 Determines whether the maximal slope during the rising phase should be shown in the results table.
void SetViewSlopeDecay (bool value)
 Determines whether the maximal slope during the decaying phase should be shown in the results table.
void SetViewLatency (bool value)
 Determines whether the latency should be shown in the results table.
void SetViewCursors (bool value)
 Determines whether two additional rows showing the positions of start and end cursors should be shown in the results table.
void SetSlopeForThreshold (double value)
 Sets the slope where the baseline should be set.
stf::Table CurAsTable () const
 Put the current trace into a text table.
void CopyCursors (const wxStfDoc &c_Recording)
 Copies the cursor positions from another Recording to this Recording.
virtual void resize (std::size_t c_n_channels)
 Resize the Recording to a new number of channels.
virtual void InsertChannel (Channel &c_Channel, std::size_t pos)
 Insert a Channel at a given position.
const stf::SectionAttributesGetSectionAttributes (std::size_t nchannel, std::size_t nsection) const
const stf::SectionAttributesGetCurrentSectionAttributes () const
stf::SectionAttributesGetCurrentSectionAttributesW ()
void DeleteFit (std::size_t nchannel, std::size_t nsection)
 Deletes the current fit, sets isFitted to false;.
void SetIsFitted (std::size_t nchannel, std::size_t nsection, const Vector_double &bestFitP_, stf::storedFunc *fitFunc_, double chisqr, std::size_t fitBeg, std::size_t fitEnd)
 Sets the best-fit parameters when a fit has been performed on this section.
void SetIsIntegrated (std::size_t nchannel, std::size_t nsection, bool value, std::size_t begin, std::size_t end, const Vector_double &quad_p_)
 Determines whether an integral has been calculated in this section.
void ClearEvents (std::size_t nchannel, std::size_t nsection)
 Erases all events.
void correctRangeR (int &value)
void correctRangeR (std::size_t &value)

Detailed Description

The document class, derived from both wxDocument and Recording.

The document class can be used to model an application’s file-based data. It is part of the document/view framework supported by wxWidgets.

Definition at line 34 of file doc.h.


Constructor & Destructor Documentation

Constructor.

Does nothing but initialising the member list.


Member Function Documentation

Adds an event at the current eventPos.

Parameters:
eventThe menu event that made the call.
void wxStfDoc::CopyCursors ( const wxStfDoc c_Recording)

Copies the cursor positions from another Recording to this Recording.

This will copy the crosshair, base, peak and fit cursors positions as well as the number of points for peak averaging from another Recording and correct the new values if they are out of range. The latency cursors will not be copied.

Parameters:
c_RecordingThe Recording from which to copy the cursor positions.
void wxStfDoc::CreateAverage ( bool  calcSD,
bool  align 
)

Creates an average trace from the selected sections.

Parameters:
calcSDSet to true if the standard deviation should be calculated as well, false otherwise
alignSet to true if traces should be aligned to the point of steepest rise of the reference channel, false otherwise.

Unselects all sections.

Parameters:
eventThe menu event that made the call.
virtual bool wxStfDoc::DoSaveDocument ( const wxString filename) [virtual]

Override default file saving.

Parameters:
filenameFull path of the file.
Returns:
true if successfully saved, false otherwise.
void wxStfDoc::Extract ( wxCommandEvent event)

Creates a new document from the checked events.

Parameters:
eventThe menu event that made the call.

Fit a function to the data.

Parameters:
eventThe menu event that made the call.
double wxStfDoc::GetAPBase ( ) const [inline]

Retrieves the baseline in the second channel.

Returns:
The baseline value in the second channel.

Definition at line 496 of file doc.h.

double wxStfDoc::GetAPMaxRiseT ( ) const [inline]

Retrieves the time point of the maximal slope of the rising phase in the second channel.

This time point is needed as a reference for the latency calculation and for aligned averages.

Returns:
The time point at which the maximal slope of the rising phase is reached in the second channel, expressed in units of data points..

Definition at line 439 of file doc.h.

double wxStfDoc::GetAPMaxT ( ) const [inline]

Retrieves the time point of the peak in the second channel.

Returns:
The time point at which the peak is found in the second channel, expressed in units of data points.

Definition at line 445 of file doc.h.

double wxStfDoc::GetAPT50LeftReal ( ) const [inline]

Retrieves the time point at which 50% of the max. amplitude have been reached from the left of the peak in the reference channel.

Returns:
The time point at which 50% of the maximal amplitude have been reached from the left of the peak in the reference channel, expressed in units of data points.

Definition at line 451 of file doc.h.

const Recording& wxStfDoc::GetAverage ( ) const [inline]

Retrieves the average trace(s).

Returns:
The average trace as a Recording object.

Definition at line 201 of file doc.h.

double wxStfDoc::GetBase ( ) const [inline]

Retrieves the baseline.

Returns:
The baseline value.

Definition at line 491 of file doc.h.

References stf::base().

std::size_t wxStfDoc::GetBaseBeg ( ) const [inline]

Retrieves the position of the left baseline cursor.

Returns:
The index of the left baseline cursor within the current section.

Definition at line 301 of file doc.h.

std::size_t wxStfDoc::GetBaseEnd ( ) const [inline]

Retrieves the position of the right baseline cursor.

Returns:
The index of the left baseline cursor within the current section.

Definition at line 306 of file doc.h.

double wxStfDoc::GetBaseSD ( ) const [inline]

Retrieves the standard deviation of the baseline.

Returns:
The standard deviation of the baseline.

Definition at line 501 of file doc.h.

Retrieves the direction of peak calculations.

Returns:
The current direction of peak calculations.

Definition at line 575 of file doc.h.

std::size_t wxStfDoc::GetFitBeg ( ) const [inline]

Retrieves the position of the left fitting cursor.

Returns:
The index of the left fitting cursor within the current section.

Definition at line 321 of file doc.h.

std::size_t wxStfDoc::GetFitEnd ( ) const [inline]

Retrieves the position of the right fitting cursor.

Returns:
The index of the right fitting cursor within the current section.

Definition at line 326 of file doc.h.

bool wxStfDoc::GetFromBase ( ) const [inline]

Indicates whether to use the baseline as a reference for AP kinetics.

Returns:
true if the baseline should be used, false if the threshold should be used.

Definition at line 593 of file doc.h.

double wxStfDoc::GetHalfDuration ( ) const [inline]

Retrieves the full width at half-maximal amplitude ("half duration").

Returns:
The difference between GetT50RightReal() and GetT50LeftReal(), expressed in units of data points.

Definition at line 537 of file doc.h.

double wxStfDoc::GetInnerHiRT ( ) const [inline]

Retrieves the time point at which Hi% of the maximal amplitude have been reached.

Returns:
The time point at which Hi% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 393 of file doc.h.

double wxStfDoc::GetInnerLoRT ( ) const [inline]

Retrieves the time point at which Lo% of the maximal amplitude have been reached.

Returns:
The time point at which Lo% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 387 of file doc.h.

double wxStfDoc::GetInnerRiseTime ( ) const [inline]

Retrieves the inner rise time.

expressed in units o data points.

Definition at line 527 of file doc.h.

bool wxStfDoc::GetIsAverage ( ) const [inline]

Indicates whether an average has been created.

Returns:
true if an average has been created, false otherwise.

Definition at line 178 of file doc.h.

double wxStfDoc::GetLatency ( ) const [inline]

Retrieves the latency.

Returns:
The latency, expressed in units of data points.

Definition at line 369 of file doc.h.

double wxStfDoc::GetLatencyBeg ( ) const [inline]

Retrieves the position of the left latency cursor.

Returns:
The index of the left latency cursor within the current section. Note that by contrast to the other cursors, this is a double because the latency cursor may be set to an interpolated position between two data points.

Definition at line 357 of file doc.h.

double wxStfDoc::GetLatencyEnd ( ) const [inline]

Retrieves the position of the right latency cursor.

Returns:
The interpolated index of the right latency cursor within the current section. Note that by contrast to the other cursors, this is a double because the latency cursor may be set to an interpolated position between two data points.

Definition at line 364 of file doc.h.

Retrieves the mode of the latency end cursor.

Returns:
The current mode of the latency end cursor.

Definition at line 565 of file doc.h.

Retrieves the mode of the latency start cursor.

Returns:
The current mode of the latency start cursor..

Definition at line 560 of file doc.h.

Retrieves the mode of the latency window.

Returns:
The current mode of the latency window.

Definition at line 570 of file doc.h.

double wxStfDoc::GetMaxDecay ( ) const [inline]

Retrieves the maximal slope of the decaying phase.

Returns:
The maximal slope of rise.

Definition at line 432 of file doc.h.

References stf::maxDecay().

double wxStfDoc::GetMaxDecayT ( ) const [inline]

Retrieves the time point of the maximal slope during the decaying phase.

Returns:
The time point of the maximal slope during the decaying phase, expressed in units of data points.

Definition at line 466 of file doc.h.

double wxStfDoc::GetMaxDecayY ( ) const [inline]

Retrieves the y-value at the time point of the maximal slope during the decaying phase.

Returns:
The y-value at the time point of the maximal slope during the decaying phase.

Definition at line 471 of file doc.h.

double wxStfDoc::GetMaxRise ( ) const [inline]

Retrieves the maximal slope of the rising phase.

Returns:
The maximal slope during the rising phase.

Definition at line 427 of file doc.h.

References stf::maxRise().

double wxStfDoc::GetMaxRiseT ( ) const [inline]

Retrieves the time point of the maximal slope during the rising phase.

Returns:
The time point of the maximal slope during the rising phase, expressed in units of data points.

Definition at line 456 of file doc.h.

double wxStfDoc::GetMaxRiseY ( ) const [inline]

Retrieves the y-value at the time point of the maximal slope during the rising phase.

Returns:
The y-value at the time point of the maximal slope during the rising phase.

Definition at line 461 of file doc.h.

double wxStfDoc::GetMaxT ( ) const [inline]

Retrieves the time point at which the peak is found.

Returns:
The time point at which the peak is found, expressed in units of data points.

Definition at line 511 of file doc.h.

std::size_t wxStfDoc::GetMeasCursor ( ) const [inline]

Retrieves the position of the measurement cursor (crosshair).

Returns:
The index of the measurement cursor within the current section.

Definition at line 296 of file doc.h.

Retrieves the y-value at the measurement cursor (crosshair). Will update measCursor if out of range.

Returns:
The y-value at the measurement cursor.
double wxStfDoc::GetOuterHiRT ( ) const [inline]

Retrieves the time point at which Hi% of the maximal amplitude have been reached.

Returns:
The time point at which Hi% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 405 of file doc.h.

double wxStfDoc::GetOuterLoRT ( ) const [inline]

Retrieves the time point at which Lo% of the maximal amplitude have been reached.

Returns:
The time point at which Lo% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 399 of file doc.h.

double wxStfDoc::GetOuterRiseTime ( ) const [inline]

Retrieves the outer rise time.

expressed in units o data points.

Definition at line 532 of file doc.h.

double wxStfDoc::GetPeak ( ) const [inline]

Retrieves the peak value.

Returns:
The peak value.

Definition at line 481 of file doc.h.

References stf::peak().

bool wxStfDoc::GetPeakAtEnd ( ) const [inline]

Indicates whether the right peak cursor should always be at the end of a trace.

Returns:
true if the right peak cursor should be at the end, false otherwise.

Definition at line 183 of file doc.h.

std::size_t wxStfDoc::GetPeakBeg ( ) const [inline]

Retrieves the position of the left peak cursor.

Returns:
The index of the left peak cursor within the current section.

Definition at line 311 of file doc.h.

std::size_t wxStfDoc::GetPeakEnd ( ) const [inline]

Retrieves the position of the right peak cursor.

Returns:
The index of the right peak cursor within the current section.

Definition at line 316 of file doc.h.

double wxStfDoc::GetPeakTime ( ) const [inline]

Retrieves the peak time value.

Returns:
The peak time value.

Definition at line 486 of file doc.h.

int wxStfDoc::GetPM ( ) const [inline]

Retrieves the number of points used for averaging during peak calculation.

Returns:
The number of points to be used.

Definition at line 343 of file doc.h.

int wxStfDoc::GetRTFactor ( ) const [inline]

Retrieves lower factor (e.g 20) for the rise time calculation.

Returns:
lower factor value for rise time calculation expressed in percentage (e.g 20).

Definition at line 548 of file doc.h.

double wxStfDoc::GetRTLoHi ( ) const [inline]

Retrieves the Lo to Hi% rise time.

Returns:
The difference between GetTHiReal() and GetTLoReal(), expressed in units o data points.

Definition at line 522 of file doc.h.

double wxStfDoc::GetSlopeForThreshold ( ) const [inline]

Returns the slope for threshold detection.

Returns:
The slope value for threshold detection.

Definition at line 685 of file doc.h.

double wxStfDoc::GetSlopeRatio ( ) const [inline]

Retrieves ratio of the maximal slopes during the rising and decaying phase.

Returns:
The ratio of GetMaxRise() and GetMaxDecay().

Definition at line 543 of file doc.h.

double wxStfDoc::GetT50LeftReal ( ) const [inline]

Retrieves the time point at which 50% of the maximal amplitude have been reached from the left of the peak.

Returns:
The time point at which 50% of the maximal amplitude have been reached from the left of the peak, expressed in units of data points.

Definition at line 411 of file doc.h.

double wxStfDoc::GetT50RightReal ( ) const [inline]

Retrieves the time point at which 50% of the maximal amplitude have been reached from the right of the peak.

Returns:
The time point at which 50% of the maximal amplitude have been reached from the right of the peak, expressed in units of data points.

Definition at line 417 of file doc.h.

double wxStfDoc::GetT50Y ( ) const [inline]

Retrieves the y value at 50% of the maximal amplitude.

Returns:
The y value at 50% of the maximal amplitude.

Definition at line 422 of file doc.h.

double wxStfDoc::GetTHiReal ( ) const [inline]

Retrieves the time point at which Hi% of the maximal amplitude have been reached.

Returns:
The time point at which Hi% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 381 of file doc.h.

double wxStfDoc::GetThreshold ( ) const [inline]

Retrieves the value at which the threshold slope is crossed.

Returns:
The standard deviation of the baseline.

Definition at line 506 of file doc.h.

References stf::threshold().

double wxStfDoc::GetThrT ( ) const [inline]

Retrieves the time point at which the threshold slope is crossed.

Returns:
The time point at which the threshold slope is crossed, or a negative value if the threshold is not attained.

Definition at line 517 of file doc.h.

double wxStfDoc::GetTLoReal ( ) const [inline]

Retrieves the time point at which Lo% of the maximal amplitude have been reached.

Returns:
The time point at which Lo% of the maximal amplitude have been reached, expressed in units of data points.

Definition at line 375 of file doc.h.

bool wxStfDoc::GetViewBaseline ( ) const [inline]

Indicates whether the baseline value should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 603 of file doc.h.

bool wxStfDoc::GetViewBaseSD ( ) const [inline]

Indicates whether the baseline's standard deviation should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 608 of file doc.h.

bool wxStfDoc::GetViewCrosshair ( ) const [inline]

Indicates whether the measurement cursor (crosshair) value should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 598 of file doc.h.

bool wxStfDoc::GetViewCursors ( ) const [inline]

Indicates whether two additional rows showing the positions of start and end cursors should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 680 of file doc.h.

bool wxStfDoc::GetViewInnerRiseTime ( ) const [inline]

Indicates whether the inner rise time should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 638 of file doc.h.

bool wxStfDoc::GetViewLatency ( ) const [inline]

Indicates whether the latency should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 668 of file doc.h.

bool wxStfDoc::GetViewOuterRiseTime ( ) const [inline]

Indicates whether the outer rise time should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 643 of file doc.h.

bool wxStfDoc::GetViewPeakBase ( ) const [inline]

Indicates whether the peak value (measured from baseline) should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 623 of file doc.h.

bool wxStfDoc::GetViewPeakThreshold ( ) const [inline]

Indicates whether the peak value (measured from threshold) should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 628 of file doc.h.

bool wxStfDoc::GetViewPeakZero ( ) const [inline]

Indicates whether the peak value (measured from zero) should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 618 of file doc.h.

bool wxStfDoc::GetViewRD ( ) const [inline]

Indicates whether the ratio of the maximal slopes during rise and decay should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 653 of file doc.h.

bool wxStfDoc::GetViewRTLoHi ( ) const [inline]

Indicates whether the Lo to Hi% rise time should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 633 of file doc.h.

bool wxStfDoc::GetViewSlopeDecay ( ) const [inline]

Indicates whether the maximal slope during the decaying phase should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 663 of file doc.h.

bool wxStfDoc::GetViewSlopeRise ( ) const [inline]

Indicates whether the maximal slope during the rising phase should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 658 of file doc.h.

bool wxStfDoc::GetViewT50 ( ) const [inline]

Indicates whether the half duration should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 648 of file doc.h.

bool wxStfDoc::GetViewThreshold ( ) const [inline]

Indicates whether the threshold should be shown in the results table.

Returns:
true if it should be shown, false otherwise.

Definition at line 613 of file doc.h.

const XZoom& wxStfDoc::GetXZoom ( ) [inline]

Returns the current zoom settings for this channel (read-only).

Returns:
The current zoom settings.

Definition at line 690 of file doc.h.

XZoom& wxStfDoc::GetXZoomW ( ) [inline]

Returns the current zoom settings for this channel (read & write).

Returns:
The current zoom settings.

Definition at line 695 of file doc.h.

const YZoom& wxStfDoc::GetYZoom ( int  ch) [inline]

Returns the current zoom settings for this channel (read-only).

Returns:
The current zoom settings.

Definition at line 700 of file doc.h.

YZoom& wxStfDoc::GetYZoomW ( int  ch) [inline]

Returns the current zoom settings for this channel (read & write).

Returns:
The current zoom settings.

Definition at line 705 of file doc.h.

virtual void wxStfDoc::InsertChannel ( Channel c_Channel,
std::size_t  pos 
) [virtual]

Insert a Channel at a given position.

Will throw std::out_of_range if range check fails.

Parameters:
c_ChannelThe Channel to be inserted.
posThe position at which to insert the channel (0-based).

Reimplemented from Recording.

Erases all events, independent of whether they are checked or not.

Parameters:
eventThe menu event that made the call.
bool wxStfDoc::IsInitialized ( ) const [inline]

Indicates whether the the document is fully initialised.

The document has to be fully initialized before other parts of the program start accessing it; for example, the graph might start reading out values before they exist.

Returns:
true if the document is fully initialised, false otherwise.

Definition at line 191 of file doc.h.

Measure everything using functions defined in measlib.h.

This will measure the baseline, peak values, Lo to Hi% rise time, half duration, maximal slopes during rise and decay, the ratio of these slopes and the latency.

virtual bool wxStfDoc::OnCloseDocument ( ) [virtual]

Override default file closing.

Writes settings to the config file or registry before closing.

Returns:
true if successfully closed, false otherwise.
virtual bool wxStfDoc::OnNewDocument ( ) [virtual]

Override default file creation.

Returns:
true if successfully closed, false otherwise.

Creates a new window containing the selected sections of this file.

Returns:
true upon success, false otherwise.
virtual bool wxStfDoc::OnOpenDocument ( const wxString filename) [virtual]

Override default file opening.

Attempts to identify the file type from the filter extension (such as "*.dat")

Parameters:
filenameFull path of the file.
Returns:
true if successfully opened, false otherwise.
virtual bool wxStfDoc::OnOpenPyDocument ( const wxString filename) [virtual]

Open document without progress dialog.

Attempts to identify the file type from the filter extension (such as "*.dat")

Parameters:
filenameFull path of the file.
Returns:
true if successfully opened, false otherwise.

Swaps active and inactive channel.

Parameters:
eventThe menu event that made the call.
virtual void wxStfDoc::resize ( std::size_t  c_n_channels) [virtual]

Resize the Recording to a new number of channels.

Resizes both the channel and the global y units arrays.

Parameters:
c_n_channelsThe new number of channels.

Reimplemented from Recording.

virtual bool wxStfDoc::SaveAs ( ) [virtual]

Override default file saving.

Returns:
true if successfully saved, false otherwise.

Selects all sections.

Parameters:
eventThe menu event that made the call.
void wxStfDoc::SetBaseBeg ( int  value)

Sets the position of the left baseline cursor.

Parameters:
valueThe index of the left baseline cursor within the current section.
void wxStfDoc::SetBaseEnd ( int  value)

Sets the position of the right baseline cursor.

Parameters:
valueThe index of the left baseline cursor within the current section.
void wxStfDoc::SetData ( const Recording c_Data,
const wxStfDoc Sender,
const wxString title 
)

Sets the content of a newly created file.

Parameters:
c_DataThe data that is used for the new file.
SenderPointer to the document that generated this file.
titleTitle of the new document.
void wxStfDoc::SetDirection ( stf::direction  value) [inline]

Sets the direction of peak calculations.

Parameters:
valueThe new direction of peak calculations.

Definition at line 842 of file doc.h.

void wxStfDoc::SetFileMenu ( wxMenu *  menu) [inline]

Sets a pointer to the file menu attached to this document.

Parameters:
menuThe menu to be attached.

Definition at line 281 of file doc.h.

void wxStfDoc::SetFitBeg ( int  value)

Sets the position of the left fitting cursor.

Parameters:
valueThe index of the left fitting cursor within the current section.
void wxStfDoc::SetFitEnd ( int  value)

Sets the position of the right fitting cursor.

Parameters:
valueThe index of the right fitting cursor within the current section.
void wxStfDoc::SetFromBase ( bool  frombase) [inline]

Sets the reference for AP kinetics measurements.

Parameters:
frombasetrue if the baseline should be used, false if the threshold should be used.

Definition at line 847 of file doc.h.

void wxStfDoc::SetIsFitted ( std::size_t  nchannel,
std::size_t  nsection,
const Vector_double &  bestFitP_,
stf::storedFunc fitFunc_,
double  chisqr,
std::size_t  fitBeg,
std::size_t  fitEnd 
)

Sets the best-fit parameters when a fit has been performed on this section.

Parameters:
bestFitP_The best-fit parameters
fitFunc_The function used for fitting
chisqrThe sum of squared errors
fitBegSampling point index where the fit starts
fitEndSampling point index where the fit ends
void wxStfDoc::SetIsIntegrated ( std::size_t  nchannel,
std::size_t  nsection,
bool  value,
std::size_t  begin,
std::size_t  end,
const Vector_double &  quad_p_ 
)

Determines whether an integral has been calculated in this section.

Returns:
true if an integral has been calculated, false otherwise.
void wxStfDoc::SetLatency ( double  value) [inline]

Sets the latency.

Parameters:
valueThe latency, expressed in units of data points.

Definition at line 759 of file doc.h.

void wxStfDoc::SetLatencyBeg ( double  value)

Sets the position of the left latency cursor.

Parameters:
valueThe index of the left latency cursor within the current section. Note that by contrast to the other cursors, this is a double because the latency cursor may be set to an interpolated position between two data points.
void wxStfDoc::SetLatencyEnd ( double  value)

Sets the position of the right latency cursor.

Parameters:
valueThe index of the right latency cursor within the current section. Note that by contrast to the other cursors, this is a double because the latency cursor may be set to an interpolated position between two data points.

Sets the mode of the latency end cursor.

Parameters:
valueThe new mode of the latency end cursor..

Definition at line 813 of file doc.h.

void wxStfDoc::SetLatencyEndMode ( int  value)

Sets the mode of the latency end cursor.

Parameters:
valueThe new mode of the latency end cursor..

Sets the mode of the latency start cursor.

Parameters:
valueThe new mode of the latency start cursor..

Definition at line 808 of file doc.h.

void wxStfDoc::SetLatencyStartMode ( int  value)

Sets the mode of the latency start cursor.

Parameters:
valueThe new mode of the latency start cursor..

Sets the mode of the latency end cursor.

Parameters:
valueThe new mode of the latency end cursor..

Definition at line 820 of file doc.h.

void wxStfDoc::SetLatencyWindowMode ( int  value)

Sets the mode of the latency end cursor.

Parameters:
valueThe new mode of the latency end cursor..
void wxStfDoc::SetMeasCursor ( int  value)

Sets the position of the measurement cursor (crosshair).

Parameters:
valueThe index of the measurement cursor within the current section.
void wxStfDoc::SetPeakAtEnd ( bool  value) [inline]

Sets the right peak cursor to the end of a trace.

Parameters:
valuedetermines whether the peak cursor should be at the end of a trace.

Definition at line 196 of file doc.h.

void wxStfDoc::SetPeakBeg ( int  value)

Sets the position of the left peak cursor.

Parameters:
valueThe index of the left peak cursor within the current section.
void wxStfDoc::SetPeakEnd ( int  value)

Sets the position of the right peak cursor.

Parameters:
valueThe index of the right peak cursor within the current section.
void wxStfDoc::SetPM ( int  value) [inline]

Sets the number of points used for averaging during peak calculation.

Parameters:
valueThe number of points to be used.

Definition at line 797 of file doc.h.

void wxStfDoc::SetRTFactor ( int  value)

Sets the lower value (e.g 20) to calculate the rise time.

Parameters:
valueThe lower percentage (e.g 20) to be used to c calculate the rise time.
bool wxStfDoc::SetSection ( std::size_t  section)

Sets the current section to the specified value.

Checks for out-of-range errors

Parameters:
sectionThe 0-based index of the new section
void wxStfDoc::SetSlopeForThreshold ( double  value) [inline]

Sets the slope where the baseline should be set.

Parameters:
valueThe slope value where the baseline shoudl be set.

Definition at line 939 of file doc.h.

void wxStfDoc::SetViewBaseline ( bool  value) [inline]

Determines whether the baseline value should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 857 of file doc.h.

void wxStfDoc::SetViewBaseSD ( bool  value) [inline]

Determines whether the baseline's standard deviation should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 862 of file doc.h.

void wxStfDoc::SetViewCrosshair ( bool  value) [inline]

Determines whether the measurement cursor (crosshair) value should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 852 of file doc.h.

void wxStfDoc::SetViewCursors ( bool  value) [inline]

Determines whether two additional rows showing the positions of start and end cursors should be shown in the results table.

Parameters:
valueSet to true if they should be shown, false otherwise.

Definition at line 934 of file doc.h.

void wxStfDoc::SetViewInnerRiseTime ( bool  value) [inline]

Determines whether the inner rise time should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 892 of file doc.h.

void wxStfDoc::SetViewLatency ( bool  value) [inline]

Determines whether the latency should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 922 of file doc.h.

void wxStfDoc::SetViewOuterRiseTime ( bool  value) [inline]

Determines whether the outer rise time should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 897 of file doc.h.

void wxStfDoc::SetViewPeakBase ( bool  value) [inline]

Determines whether the peak value (measured from baseline) should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 877 of file doc.h.

void wxStfDoc::SetViewPeakThreshold ( bool  value) [inline]

Determines whether the peak value (measured from threshold) should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 882 of file doc.h.

void wxStfDoc::SetViewPeakZero ( bool  value) [inline]

Determines whether the peak value (measured from zero) should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 872 of file doc.h.

void wxStfDoc::SetViewRD ( bool  value) [inline]

Determines whether the ratio of the maximal slopes during rise and decay should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 907 of file doc.h.

void wxStfDoc::SetViewRTLoHi ( bool  value) [inline]

Determines whether the Lo to Hi% rise time should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 887 of file doc.h.

void wxStfDoc::SetViewSlopeDecay ( bool  value) [inline]

Determines whether the maximal slope during the decaying phase should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 917 of file doc.h.

void wxStfDoc::SetViewSlopeRise ( bool  value) [inline]

Determines whether the maximal slope during the rising phase should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 912 of file doc.h.

void wxStfDoc::SetViewT50 ( bool  value) [inline]

Determines whether the half duration should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 902 of file doc.h.

void wxStfDoc::SetViewThreshold ( bool  value) [inline]

Determines whether the threshold should be shown in the results table.

Parameters:
valueSet to true if it should be shown, false otherwise.

Definition at line 867 of file doc.h.

Subtracts the baseline of all selected traces.

Returns:
true upon success, false otherwise.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines