OpenWalnut  1.5.0dev
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WResampleBySegLengthKeepShortFibers Class Reference

Resamples fibers by segment length. More...

#include <WResampleBySegLengthKeepShortFibers.h>

+ Inheritance diagram for WResampleBySegLengthKeepShortFibers:
+ Collaboration diagram for WResampleBySegLengthKeepShortFibers:

Public Member Functions

 WResampleBySegLengthKeepShortFibers ()
 Constructor. More...
 
- Public Member Functions inherited from WObjectNDIP< WResampling_I >
virtual ~WObjectNDIP ()
 Destructor. More...
 
virtual std::string getName () const
 The name of the object. More...
 
virtual std::string getDescription () const
 The description of this object. More...
 
virtual const char ** getIcon () const
 The icon of this object. More...
 
virtual WProperties::SPtr getProperties ()
 Return the property group of this object. More...
 
- Public Member Functions inherited from WResampling_I
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
 The given fiber is resampled by segment length and a copy is returned. More...
 
- Protected Member Functions inherited from WObjectNDIP< WResampling_I >
 WObjectNDIP (std::string name, std::string description, const char **icon=NULL)
 Construct a NDIP'ed object. More...
 

Protected Attributes

WPropDouble m_segLength
 Number of new sample points all tracts are resampled to. More...
 
- Protected Attributes inherited from WObjectNDIP< WResampling_I >
WProperties::SPtr m_properties
 the properties of the object. More...
 

Additional Inherited Members

- Public Types inherited from WObjectNDIP< WResampling_I >
typedef std::shared_ptr< WObjectNDIPSPtr
 Shared ptr to an instance. More...
 
typedef std::shared_ptr< const WObjectNDIPConstSPtr
 Shared ptr to a const instance. More...
 

Detailed Description

Resamples fibers by segment length.

Does not discard any fibers.

Definition at line 37 of file WResampleBySegLengthKeepShortFibers.h.

Constructor & Destructor Documentation

◆ WResampleBySegLengthKeepShortFibers()

WResampleBySegLengthKeepShortFibers::WResampleBySegLengthKeepShortFibers ( )

Constructor.

Definition at line 34 of file WResampleBySegLengthKeepShortFibers.cpp.

References WObjectNDIP< WResampling_I >::m_properties, and m_segLength.

Member Function Documentation

◆ resample()

WFiber WResampleBySegLengthKeepShortFibers::resample ( WFiber  fib) const
protectedvirtual

The given fiber is resampled by segment length and a copy is returned.

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

Implements WResampling_I.

Definition at line 41 of file WResampleBySegLengthKeepShortFibers.cpp.

References m_segLength, and WLine::resampleBySegmentLengthKeepShortFibers().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_segLength

WPropDouble WResampleBySegLengthKeepShortFibers::m_segLength
protected

Number of new sample points all tracts are resampled to.

Definition at line 58 of file WResampleBySegLengthKeepShortFibers.h.

Referenced by resample(), and WResampleBySegLengthKeepShortFibers().


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