[10] | 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}
|
---|
[7] | 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 |
|
---|
| 23 | using std::string;
|
---|
| 24 | using namespace flair::core;
|
---|
| 25 | using namespace flair::gui;
|
---|
| 26 |
|
---|
| 27 | namespace flair
|
---|
| 28 | {
|
---|
| 29 | namespace filter
|
---|
| 30 | {
|
---|
| 31 |
|
---|
| 32 | EulerDerivative::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 |
|
---|
| 38 | EulerDerivative::~EulerDerivative()
|
---|
| 39 | {
|
---|
| 40 | delete pimpl_;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | cvmatrix* EulerDerivative::Matrix(void) const
|
---|
| 44 | {
|
---|
| 45 | return pimpl_->output;
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | float EulerDerivative::Output(int row,int col) const
|
---|
| 49 | {
|
---|
| 50 | return pimpl_->output->Value(row,col);
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | void 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
|
---|