OpenWalnut  1.5.0dev
Public Member Functions | Protected Member Functions | List of all members
WResampling_I Class Referenceabstract

Interface for Resampling fibers. More...

#include <WResampling_I.h>

+ Inheritance diagram for WResampling_I:

Public Member Functions

virtual WDataSetFibers::SPtr operator() (WProgress::SPtr progress, WBoolFlag const &shutdown, WDataSetFibers::SPtr fibers)
 Resample each fiber within the given fiber dataset according to the given implementation of virtual resample(). More...
 
virtual ~WResampling_I ()
 Destructor. More...
 

Protected Member Functions

virtual WFiber resample (WFiber fib) const =0
 All overrided methods should resample the fiber in their specific way. More...
 

Detailed Description

Interface for Resampling fibers.

Definition at line 35 of file WResampling_I.h.

Constructor & Destructor Documentation

◆ ~WResampling_I()

WResampling_I::~WResampling_I ( )
virtual

Destructor.

Definition at line 29 of file WResampling_I.cpp.

Member Function Documentation

◆ operator()()

WDataSetFibers::SPtr WResampling_I::operator() ( WProgress::SPtr  progress,
WBoolFlag const &  shutdown,
WDataSetFibers::SPtr  fibers 
)
virtual

Resample each fiber within the given fiber dataset according to the given implementation of virtual resample().

Parameters
progressThis will indicate progress.
shutdownPossibility to abort in case of shutdown.
fibersThe fibers which should be resampled.
Returns
Colored fibers

Definition at line 33 of file WResampling_I.cpp.

References wlog::debug(), and resample().

+ Here is the call graph for this function:

◆ resample()

virtual WFiber WResampling_I::resample ( WFiber  fib) const
protectedpure virtual

All overrided methods should resample the fiber in their specific way.

Parameters
fibThe fiber to resample.
Returns
Copy of the resampled fiber.

Implemented in WResampleBySegLengthKeepShortFibers, WResampleBySegLength, WResampleByNumPoints, and WResampleByMaxPoints.

Referenced by operator()().

+ Here is the caller graph for this function:

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