Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

VxFrmFtorGreaterThan.h

00001 /*
00002  *
00003  *  Copyright (c) 2001, TNO TPD, The Netherlands.
00004  *  All rights reserved. No part of this software may be handed to or used by persons 
00005  *  or organisation outside Kenniscentrum Watergraafsmeer (UvA-ISIS, TNO TPD) without 
00006  *  the written permission of TNO TPD.
00007  *
00008  *  Author(s):
00009  *      Jan Baan (baan@tpd.tno.nl)
00010  *      Jeroen Vendrig
00011  *
00012  * 
00013  */
00014 
00015 #ifndef VxFrmFtorGreaterThan_h
00016 #define VxFrmFtorGreaterThan_h
00017 
00018 #include "VxFrmFtorBfo.h"
00019 #include "HxClassName.h"
00020 
00021 template<class T, class S>
00022 class VxFrmFtorGreaterThan : public VxFrmFtorBfo {
00023 public:
00024     VxFrmFtorGreaterThan(){};
00025     
00026     virtual VxValue doIt(int frame, const VxValue& input1, const VxValue& input2) {
00027         if (input1.isNull() || input2.isNull())
00028             return VxValue();
00029         
00030         T val1, val2;
00031         input1.get(val1);
00032         input2.get(val2);
00033         
00034         return VxValue((S) (val1 > val2));
00035     };
00036         
00037     virtual HxString    getInputClass1() const {
00038         return HxClassName<T>(); 
00039     }
00040 
00041     virtual HxString    getInputClass2() const {
00042         return HxClassName<T>();
00043     }
00044 
00045     virtual HxString    getOutputClass() const {
00046         return HxClassName<S>();
00047     }
00048 
00049     virtual HxString    name() const {
00050         return HxString("GreaterThan");
00051     }
00052 
00053     virtual VxFrmFtorBfo* clone() const {
00054         return new VxFrmFtorGreaterThan();
00055     }
00056     
00057 private:    
00058     
00059 };
00060 #endif

Generated on Mon Jan 27 15:48:50 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001