Commit 1e1c8fbdd35091436c9d934d3afabb628d918e3f

Authored by Josh Klontz
1 parent fdee5406

removed event transform

Showing 1 changed file with 0 additions and 50 deletions
openbr/plugins/core/event.cpp deleted
1 -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
2 - * Copyright 2012 The MITRE Corporation *  
3 - * *  
4 - * Licensed under the Apache License, Version 2.0 (the "License"); *  
5 - * you may not use this file except in compliance with the License. *  
6 - * You may obtain a copy of the License at *  
7 - * *  
8 - * http://www.apache.org/licenses/LICENSE-2.0 *  
9 - * *  
10 - * Unless required by applicable law or agreed to in writing, software *  
11 - * distributed under the License is distributed on an "AS IS" BASIS, *  
12 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *  
13 - * See the License for the specific language governing permissions and *  
14 - * limitations under the License. *  
15 - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */  
16 -  
17 -#include <openbr/plugins/openbr_internal.h>  
18 -  
19 -namespace br  
20 -{  
21 -  
22 -/*!  
23 - * \brief DOCUMENT ME  
24 - * \author Unknown \cite unknown  
25 - */  
26 -class EventTransform : public UntrainableMetaTransform  
27 -{  
28 - Q_OBJECT  
29 - Q_PROPERTY(QString eventName READ get_eventName WRITE set_eventName RESET reset_eventName STORED false)  
30 - BR_PROPERTY(QString, eventName, "")  
31 -  
32 - TemplateEvent event;  
33 -  
34 - void project(const Template &src, Template &dst) const  
35 - {  
36 - dst = src;  
37 - event.pulseSignal(dst);  
38 - }  
39 -  
40 - TemplateEvent *getEvent(const QString &name)  
41 - {  
42 - return name == eventName ? &event : NULL;  
43 - }  
44 -};  
45 -  
46 -BR_REGISTER(Transform, EventTransform)  
47 -  
48 -} // namespace br  
49 -  
50 -#include "core/event.moc"