Scope
scope::PixelmapperBasic Class Reference

#include <PixelmapperBasic.h>

Inherited by scope::PixelmapperFrameBiDi, scope::PixelmapperFrameResonanceHW, scope::PixelmapperFrameResonanceSW, and scope::PixelmapperFrameSaw.

Public Member Functions

 PixelmapperBasic (const ScannerType &_scanner, const ScannerVectorType &_type)
 
virtual ~PixelmapperBasic ()
 
virtual void SetCurrentFrame (ScopeMultiImagePtr const _current_frame)
 
virtual void SetParameters (parameters::ScannerVectorFrameBasic *const _svparameters)
 
virtual void SetLookupVector (std::shared_ptr< const std::vector< std::size_t >> const _lookup)
 
virtual PixelmapperResult LookupChunk (DaqChunkPtr const _chunk, const uint16_t &_currentavgcount)
 
virtual PixelmapperResult LookupChunk (DaqChunkResonancePtr const _chunk, const uint16_t &_currentavgcount)
 

Static Public Member Functions

static std::unique_ptr< PixelmapperBasicFactory (const ScannerType &_scanner, const ScannerVectorType &_type)
 

Protected Attributes

const ScannerVectorTypeHelper::Mode type
 
ScopeMultiImagePtr current_frame
 
parameters::ScannerVectorFrameBasicsvparameters
 
std::shared_ptr< const std::vector< std::size_t > > lookup
 
std::vector< std::size_t >::const_iterator lastlookup
 

Detailed Description

Parent class for pixel mappers.

Definition at line 32 of file PixelmapperBasic.h.

Constructor & Destructor Documentation

scope::PixelmapperBasic::PixelmapperBasic ( const ScannerType _scanner,
const ScannerVectorType _type 
)

Initializes.

Parameters
[in]_scannerType of builting scanner
[in]_typeType of underlying scanner vector, set when derived class calls base constructor. Used to generate a fitting parameters set via parameters::ScannerVectorFrameBasic::Factory.

Definition at line 14 of file PixelmapperBasic.cpp.

scope::PixelmapperBasic::~PixelmapperBasic ( )
virtual

We need a virtual destructor here, so that derived types get correctly destroyed.

Definition at line 21 of file PixelmapperBasic.cpp.

Member Function Documentation

std::unique_ptr< PixelmapperBasic > scope::PixelmapperBasic::Factory ( const ScannerType _scanner,
const ScannerVectorType _type 
)
static

A static factor method for pixelmappers.

Definition at line 25 of file PixelmapperBasic.cpp.

void scope::PixelmapperBasic::SetCurrentFrame ( ScopeMultiImagePtr const  _current_frame)
virtual

Sets pointer to the current frame to be mapped into.

Definition at line 48 of file PixelmapperBasic.cpp.

void scope::PixelmapperBasic::SetParameters ( parameters::ScannerVectorFrameBasic *const  _svparameters)
virtual

Set current parameters.

Definition at line 57 of file PixelmapperBasic.cpp.

void scope::PixelmapperBasic::SetLookupVector ( std::shared_ptr< const std::vector< std::size_t >> const  _lookup)
virtual

Sets the vectors for lookup.

Definition at line 52 of file PixelmapperBasic.cpp.

PixelmapperResult scope::PixelmapperBasic::LookupChunk ( DaqChunkPtr const  _chunk,
const uint16_t &  _currentavgcount 
)
virtual

Different flavors of mapping a chunk.

Reimplemented in scope::PixelmapperFrameSaw, scope::PixelmapperFrameBiDi, and scope::PixelmapperFrameResonanceHW.

Definition at line 61 of file PixelmapperBasic.cpp.

Member Data Documentation

const ScannerVectorTypeHelper::Mode scope::PixelmapperBasic::type
protected

Type/scan mode of this pixelmapper.

Definition at line 36 of file PixelmapperBasic.h.

ScopeMultiImagePtr scope::PixelmapperBasic::current_frame
protected

pointer to the current frame to be mapped into

Definition at line 39 of file PixelmapperBasic.h.

parameters::ScannerVectorFrameBasic* scope::PixelmapperBasic::svparameters
protected

current scanner vector parameter set (needs to be pointer for dynamic_cast in derived classes and because the parameters object is localized in ScopeController)

Definition at line 42 of file PixelmapperBasic.h.

std::shared_ptr<const std::vector<std::size_t> > scope::PixelmapperBasic::lookup
protected

for position lookup

Definition at line 45 of file PixelmapperBasic.h.

std::vector<std::size_t>::const_iterator scope::PixelmapperBasic::lastlookup
protected

last position in lookup where we looked up last time

Definition at line 48 of file PixelmapperBasic.h.


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