Skip to content
Snippets Groups Projects
Commit cb2cc758 authored by Sacha Percot-Tétu's avatar Sacha Percot-Tétu
Browse files

Added seperator op

parent d96c5e95
No related branches found
No related tags found
No related merge requests found
/*
* Copyright 2011-2012 INSA Rennes
*
* This file is part of EIImage.
*
* EIImage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* EIImage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with EIImage. If not, see <http://www.gnu.org/licenses/>.
*/
#include "SeparatorOp.h"
SeparatorOp::SeparatorOp() : GenericOperation("")
{
}
bool SeparatorOp::needCurrentImg() const {
return true;
}
bool SeparatorOp::isValidImgWnd(const genericinterface::ImageWindow*) const {
return false;
}
void SeparatorOp::operator()(const genericinterface::ImageWindow*, const std::vector<const genericinterface::ImageWindow*>&) {
return;
}
/*
* Copyright 2011-2012 INSA Rennes
*
* This file is part of EIImage.
*
* EIImage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* EIImage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with EIImage. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SEPARATOROP_H
#define SEPARATOROP_H
#include <Operation.h>
class SeparatorOp : public GenericOperation
{
public:
SeparatorOp();
virtual void operator()(const genericinterface::ImageWindow* currentWnd, const std::vector<const genericinterface::ImageWindow*>&);
bool needCurrentImg() const;
virtual bool isValidImgWnd(const genericinterface::ImageWindow* imgWnd) const;
};
#endif // SEPARATOROP_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment