Scope
scope::parameters::ScannerVectorFrameResonance Class Reference

#include <Framescan.h>

Inherits scope::parameters::ScannerVectorFrameBasic.

Classes

class  Preset
 

Public Member Functions

std::vector< boost::signals2::connection > ConnectCopyTrigger (signalchange_t::slot_type _slot) override
 
void ConnectRateUpdate (signalchange_t::slot_type _slot) override
 
void ConnectMicronPerPixelUpdate (signalchange_t::slot_type _slot) override
 
void ConnectOnlineUpdate (signalchange_t::slot_type _slot) override
 
uint32_t XTurnPixels () const
 
uint32_t XTurnPixelsLeft () const
 
uint32_t XTurnPixelsRight () const
 
uint32_t XTotalPixels () const override
 
uint32_t YCutoffLines () const
 
uint32_t YScanLines () const
 
uint32_t YRetraceLines () const
 
uint32_t YTotalLines () const override
 
uint32_t TotalPixels () const override
 
uint32_t TotalPixelsOneFrame () const override
 
void Load (const wptree &pt) override
 
void Save (wptree &pt) const override
 
void SetReadOnlyWhileScanning (const RunState &_runstate) override
 
std::unique_ptr< ScannerVectorFrameBasic::PresetMakePreset () const override
 
void SaveToPreset (const std::wstring &_name, const Daq &_daq) override
 
void LoadFromPreset (const std::wstring &_name, Daq &_daq) override
 
virtual void CoerceYResolution ()
 
virtual void UpdateXTurnFraction ()
 
- Public Member Functions inherited from scope::parameters::ScannerVectorFrameBasic
virtual void ConnectResolutionUpdate (signalchange_t::slot_type _slot)
 
virtual void ConnectResolutionChange (signalchange_t::slot_type _slot)
 
virtual uint32_t XImagePixels () const
 
virtual uint32_t YImageLines () const
 
virtual void DeletePreset (const std::wstring &_name)
 
virtual void CoerceOffset ()
 

Static Public Member Functions

static std::unique_ptr< ScannerVectorFrameBasicCreate ()
 
static std::unique_ptr< ScannerVectorFrameBasicCreate (const ScannerVectorFrameResonance &_o)
 
- Static Public Member Functions inherited from scope::parameters::ScannerVectorFrameBasic
static std::unique_ptr< ScannerVectorFrameBasicCreate ()
 
static std::unique_ptr< ScannerVectorFrameBasicCreate (const ScannerVectorFrameBasic &_o)
 
static std::unique_ptr< ScannerVectorFrameBasicFactory (const ScannerVectorType &_type, const ScannerVectorFrameBasic *const _o=nullptr)
 

Public Attributes

ScopeNumber< double > xturnfraction
 
ScopeNumber< double > ycutoff
 
ScopeNumber< double > yretrace
 
ScopeNumber< uint32_t > waitafterenqueuestorage
 
ScopeNumber< uint32_t > waitafterenqueuedisplay
 
- Public Attributes inherited from scope::parameters::ScannerVectorFrameBasic
std::vector< std::shared_ptr< Preset > > presets
 
ScopeNumber< uint32_t > xres
 
ScopeNumber< uint32_t > yres
 
ScopeNumber< double > xaspectratio
 
ScopeNumber< double > yaspectratio
 
ScopeNumber< bool > squarepixels
 
ScopeNumber< double > zoom
 
ScopeNumber< double > xoffset
 
ScopeNumber< double > yoffset
 
ScopeNumber< double > fastz
 
ScopeNumber< double > pockels
 
ScopeNumber< double > xrotation
 
ScopeNumber< double > yrotation
 

Additional Inherited Members

- Protected Types inherited from scope::parameters::ScannerVector
typedef boost::signals2::signal< void()> signalchange_t
 
- Protected Attributes inherited from scope::parameters::Base
std::vector< boost::signals2::connection > connection_collector
 

Detailed Description

Parameters for a ScannerVectorFrameResonance.

Definition at line 439 of file Framescan.h.

Member Function Documentation

static std::unique_ptr<ScannerVectorFrameBasic> scope::parameters::ScannerVectorFrameResonance::Create ( )
inlinestatic

Create function for factory.

Definition at line 471 of file Framescan.h.

static std::unique_ptr<ScannerVectorFrameBasic> scope::parameters::ScannerVectorFrameResonance::Create ( const ScannerVectorFrameResonance _o)
inlinestatic

Create copy function for factory.

Definition at line 474 of file Framescan.h.

std::vector< boost::signals2::connection > scope::parameters::ScannerVectorFrameResonance::ConnectCopyTrigger ( signalchange_t::slot_type  _slot)
overridevirtual

Connect a slot that is called if some member parameter changes, this can be used to copy certain changes in a master area to its slave areas.

Except changes in parameters that are area specific (e.g. pockels).

Returns
a vector with all connections made, for storage and destructor call
Parameters
[in]_slotThe slot that is connected to all ScopeValues in the ScannerVector

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 600 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::ConnectRateUpdate ( signalchange_t::slot_type  _slot)
overridevirtual

Connect a slot that is called if something in the ScannerVector changes that renders a recalculation of dependent rates (e.g.

framerate in parameters::Area) necessary

Parameters
[in]_slotThe slot that is connected to certain ScopeValues in the ScannerVector

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 610 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::ConnectMicronPerPixelUpdate ( signalchange_t::slot_type  _slot)
overridevirtual

Connect a slot that is called if something in the ScannerVector changes that renders a recalculation of the micron per pixel (e.g.

through in parameters::Area::CalculateMicronPerPixel) necessary

Parameters
[in]_slotThe slot that is connected to certain ScopeValues in the ScannerVector

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 619 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::ConnectOnlineUpdate ( signalchange_t::slot_type  _slot)
overridevirtual

Connect a slot that is called if something in the ScannerVector (which is displayed on the GUI) changes that makes an online update during scanning necessary.

Parameters
[in]_slotThe slot that is connected to certain/all ScopeValues in the ScannerVector, mainly this would be ScopeControllerImpl::UpdateAreaParametersFromGui

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 628 of file Framescan.cpp.

uint32_t scope::parameters::ScannerVectorFrameResonance::XTurnPixels ( ) const
inline
Returns
number of pixels per line spent for turning.

Definition at line 500 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::XTurnPixelsLeft ( ) const
inline
Returns
number of pixels per line spent for turning on the left side of the image.

Definition at line 503 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::XTurnPixelsRight ( ) const
inline
Returns
number of pixels per line spent for turning on the right side of the image.

Definition at line 506 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::XTotalPixels ( ) const
inlineoverridevirtual
Returns
total number of pixels per line (image pixels + turn pixels)

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 509 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::YCutoffLines ( ) const
inline
Returns
number of additional cutoff lines at framestart

Definition at line 512 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::YScanLines ( ) const
inline
Returns
number of lines during y scan ramp (image lines + cutoff lines)

Definition at line 515 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::YRetraceLines ( ) const
inline
Returns
number of lines during retrace

Definition at line 518 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::YTotalLines ( ) const
inlineoverridevirtual
Returns
total number of y pixels/lines (image lines + cutoff lines + retrace lines)

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 521 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::TotalPixels ( ) const
inlineoverridevirtual
Returns
total number of pixels

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 524 of file Framescan.h.

uint32_t scope::parameters::ScannerVectorFrameResonance::TotalPixelsOneFrame ( ) const
inlineoverridevirtual
Returns
total number of pixels for one image

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 527 of file Framescan.h.

void scope::parameters::ScannerVectorFrameResonance::Load ( const wptree &  pt)
overridevirtual

load parameters from a boost::property_tree

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 662 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::Save ( wptree &  pt) const
overridevirtual

save parameters into a boost:property_tree

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 671 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::SetReadOnlyWhileScanning ( const RunState _runstate)
overridevirtual

set values that must not be changed to read-only during scanning.

True = readonly, false = read&write

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 680 of file Framescan.cpp.

std::unique_ptr< ScannerVectorFrameBasic::Preset > scope::parameters::ScannerVectorFrameResonance::MakePreset ( ) const
overridevirtual

Since preset loading is done in base class (here), we need to generate a derived preset, this can be done by calling this function and overriding it in derived classes.

(Be careful which classes Preset class is meant!)

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 690 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::SaveToPreset ( const std::wstring &  _name,
const Daq _daq 
)
overridevirtual

Save parameters into a preset.

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 694 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::LoadFromPreset ( const std::wstring &  _name,
Daq _daq 
)
overridevirtual

Load parameters from a preset.

Reimplemented from scope::parameters::ScannerVectorFrameBasic.

Definition at line 714 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::CoerceYResolution ( )
virtual

Changes the y resolution to the allowed values for the resonance scanner.

Definition at line 732 of file Framescan.cpp.

void scope::parameters::ScannerVectorFrameResonance::UpdateXTurnFraction ( )
virtual

Updates the x turn fraction for the resonance scanner.

Definition at line 737 of file Framescan.cpp.

Member Data Documentation

ScopeNumber<double> scope::parameters::ScannerVectorFrameResonance::xturnfraction

fraction spent for turning the x resonance scanner around

Definition at line 485 of file Framescan.h.

ScopeNumber<double> scope::parameters::ScannerVectorFrameResonance::ycutoff

Cutoff fraction at beginning of frame, total lines per frame = yres * (1 + ycutoff + yretrace)

Definition at line 488 of file Framescan.h.

ScopeNumber<double> scope::parameters::ScannerVectorFrameResonance::yretrace

Cutoff fraction for retrace at end of frame.

Definition at line 491 of file Framescan.h.

ScopeNumber<uint32_t> scope::parameters::ScannerVectorFrameResonance::waitafterenqueuestorage

Time (in milliseconds) to wait after the PipelineController has enqueued the image to the storage queue (fixes a problem of wrong chunks in the wrong frames)

Definition at line 494 of file Framescan.h.

ScopeNumber<uint32_t> scope::parameters::ScannerVectorFrameResonance::waitafterenqueuedisplay

Time (in milliseconds) to wait after the PipelineController has enqueued the image to the display queue (fixes a problem of wrong chunks in the wrong frames)

Definition at line 497 of file Framescan.h.


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