source: flair-src/trunk/lib/FlairFilter/src/EulerDerivative.cpp @ 10

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 5 years ago

lic

File size: 1.3 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5//  created:    2011/05/01
6//  filename:   EulerDerivative.cpp
7//
8//  author:     Guillaume Sanahuja
9//              Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11//  version:    $Id: $
12//
13//  purpose:    Class defining an euler derivative
14//
15//
16/*********************************************************************/
17
18#include "EulerDerivative.h"
19#include "EulerDerivative_impl.h"
20#include <cvmatrix.h>
21#include <LayoutPosition.h>
22
23using std::string;
24using namespace flair::core;
25using namespace flair::gui;
26
27namespace flair
28{
29namespace filter
30{
31
32EulerDerivative::EulerDerivative(const IODevice* parent,const LayoutPosition* position,string name,const cvmatrix* init_value) : IODevice(parent,name)
33{
34    pimpl_=new EulerDerivative_impl(this,position,name,init_value);
35    AddDataToLog(pimpl_->output);
36}
37
38EulerDerivative::~EulerDerivative()
39{
40    delete pimpl_;
41}
42
43cvmatrix* EulerDerivative::Matrix(void) const
44{
45    return pimpl_->output;
46}
47
48float EulerDerivative::Output(int row,int col) const
49{
50    return pimpl_->output->Value(row,col);
51}
52
53void EulerDerivative::UpdateFrom(const io_data *data)
54{
55    pimpl_->UpdateFrom(data);
56    ProcessUpdate(pimpl_->output);
57}
58
59} // end namespace filter
60} // end namespace flair
Note: See TracBrowser for help on using the repository browser.