BTK  0.3dev.0
Open-source library to visualize/process biomechanical data
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
btk::MeasureFrameExtractor< T > Class Template Reference

Extracts a frame from a collection of btk::Measure objects. More...

#include <btkMeasureFrameExtractor.h>

Inheritance diagram for btk::MeasureFrameExtractor< T >:
Inheritance graph
[legend]

Public Types

typedef Collection< T >
::ConstPointer 
CollectionConstPointer
 
typedef Collection< T >::Pointer CollectionPointer
 
typedef btkSharedPtr< const
MeasureFrameExtractor
ConstPointer
 
typedef T::ConstPointer ItemConstPointer
 
typedef T::Pointer ItemPointer
 
typedef btkSharedPtr
< MeasureFrameExtractor
Pointer
 
- Public Types inherited from btk::ProcessObject
typedef btkSharedPtr< const
ProcessObject
ConstPointer
 
typedef btkSharedPtr
< ProcessObject
Pointer
 
- Public Types inherited from btk::Object
typedef btkSharedPtr< const
Object
ConstPointer
 
typedef btkSharedPtr< ObjectPointer
 

Public Member Functions

int GetIndex () const
 
CollectionPointer GetInput ()
 
ItemPointer GetOutput ()
 
void SetIndex (int idx)
 
void SetInput (CollectionPointer input)
 
virtual ~MeasureFrameExtractor ()
 
- Public Member Functions inherited from btk::ProcessObject
int GetInputNumber () const
 
int GetOutputNumber () const
 
int GetValidInputNumber () const
 
void ResetState ()
 
void Update ()
 
- Public Member Functions inherited from btk::Object
unsigned long int GetTimestamp () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

virtual void GenerateData ()
 
CollectionPointer GetInput (int idx)
 
ItemPointer GetOutput (int idx)
 
virtual DataObject::Pointer MakeOutput (int idx)
 
 MeasureFrameExtractor ()
 
- Protected Member Functions inherited from btk::ProcessObject
int GetInputIndex (DataObject::Pointer input)
 
DataObject::Pointer GetNthInput (int idx)
 
DataObject::ConstPointer GetNthInput (int idx) const
 
DataObject::Pointer GetNthOutput (int idx)
 
DataObject::ConstPointer GetNthOutput (int idx) const
 
int GetOutputIndex (DataObject::Pointer output)
 
bool IsModified () const
 
void Modified ()
 
 ProcessObject ()
 
void SetInputNumber (int num)
 
virtual void SetNthInput (int idx, DataObject::Pointer input)
 
virtual void SetNthOutput (int idx, DataObject::Pointer output)
 
void SetOutputNumber (int num)
 
virtual ~ProcessObject ()
 
- Protected Member Functions inherited from btk::Object
 Object ()
 
 Object (const Object &toCopy)
 
virtual ~Object ()
 

Additional Inherited Members

- Protected Attributes inherited from btk::Object
unsigned long int m_Timestamp
 

Detailed Description

template<class T>
class btk::MeasureFrameExtractor< T >

Extracts a frame from a collection of btk::Measure objects.

Template Parameters
TMust be a class inheriting of btk::Measure

Member Typedef Documentation

Smart pointer associated with a const Collection<T> object.

Smart pointer associated with a Collection<T> object.

template<class T >
btk::MeasureFrameExtractor< T >::ConstPointer

Smart pointer associated with a const MeasureFrameExtractor object.

template<class T >
btk::MeasureFrameExtractor< T >::ItemConstPointer

Smart const pointer associated with a T object.

template<class T >
btk::MeasureFrameExtractor< T >::ItemPointer

Smart pointer associated with a T object.

template<class T >
btk::MeasureFrameExtractor< T >::Pointer

Smart pointer associated with a MeasureFrameExtractor object.

Constructor & Destructor Documentation

template<class T >
template< class T > virtual btk::MeasureFrameExtractor< T >::~MeasureFrameExtractor ( )
inlinevirtual

Empty destructor.

template<class T >
btk::MeasureFrameExtractor< T >::MeasureFrameExtractor ( )
protected

Constructor. Sets the number of inputs and outputs to 1.

Member Function Documentation

template<class T >
void btk::MeasureFrameExtractor< T >::GenerateData ( )
protectedvirtual

Generates the outputs' data.

Implements btk::ProcessObject.

template<class T >
template< class T > int btk::MeasureFrameExtractor< T >::GetIndex ( ) const
inline

Gets the index of the frame to extract.

template<class T >
template< class T > CollectionPointer btk::MeasureFrameExtractor< T >::GetInput ( )
inline

Gets the input registered with this process.

template<class T >
template< class T > CollectionPointer btk::MeasureFrameExtractor< T >::GetInput ( int  idx)
inlineprotected

Returns the input at the index idx.

template<class T >
template< class T > ItemPointer btk::MeasureFrameExtractor< T >::GetOutput ( )
inline

Gets the output created with this process.

template<class T >
template< class T > ItemPointer btk::MeasureFrameExtractor< T >::GetOutput ( int  idx)
inlineprotected

Returns the output at the index idx.

template<class T >
DataObject::Pointer btk::MeasureFrameExtractor< T >::MakeOutput ( int  idx)
protectedvirtual

Creates a T:Pointer object and return it as a DataObject::Pointer.

Implements btk::ProcessObject.

template<class T >
template< class T > static Pointer btk::MeasureFrameExtractor< T >::New ( )
inlinestatic

Creates a smart pointer associated with a MeasureFrameExtractor<T> object.

template<class T >
void btk::MeasureFrameExtractor< T >::SetIndex ( int  idx)

Sets the index of the frame to extract.

template<class T >
template< class T > void btk::MeasureFrameExtractor< T >::SetInput ( CollectionPointer  input)
inline

Sets the input required with this process.