FixedRadiusCrossMatch.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2004 CSIRO ICT Centre
00003  *
00004  * $Id: FixedRadiusCrossMatch.cpp 1192 2005-09-20 15:21:27Z rsc $
00005  */
00006 
00007 #include "ActiveList.h"
00008 #include "CrossMatch.h"
00009 #include "FixedRadiusCrossMatch.h"
00010 #include "Object.h"
00011 #include "ObjectConsumer.h"
00012 #include "ObjectPairConsumer.h"
00013 #include "ObjectProducer.h"
00014 
00015 
00016 String const FixedRadiusCrossMatch::s_name("Fixed Radius Cross Match");
00017 
00018 
00019 FixedRadiusCrossMatch::FixedRadiusCrossMatch(ObjectProducer * activeProd,
00020                                              ObjectProducer * testProd,
00021                                              ActiveList * aList,
00022                                              ObjectPairConsumer * pairCons,
00023                                              ObjectConsumer * uActiveCons,
00024                                              ObjectConsumer * uTestCons,
00025                                              double maxD)
00026     : CrossMatch(activeProd, testProd, aList, pairCons, uActiveCons, uTestCons),
00027       maxDistance(maxD)
00028 {
00029 }
00030 
00031 FixedRadiusCrossMatch::~FixedRadiusCrossMatch()
00032 {
00033 }
00034 
00035 double FixedRadiusCrossMatch::getLowerBound(Object const * testObject)
00036 {
00037   return testObject->getDec() - maxDistance;
00038 }
00039 
00040 double FixedRadiusCrossMatch::getUpperBound(Object const * testObject)
00041 {
00042   return testObject->getDec() + maxDistance;
00043 }
Generated on Mon Oct 4 10:39:55 2010 for Matching.kdevelop by  doxygen 1.6.3