#include <CBAlgoPolyOverlap.h>
|
TFile * | _fout |
| TFile pointer to an output file. More...
|
|
bool | _verbose |
| Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager's verbosity level is >= kPerMerging. More...
|
|
Definition at line 25 of file CBAlgoPolyOverlap.h.
cmtool::CBAlgoPolyOverlap::CBAlgoPolyOverlap |
( |
| ) |
|
virtual cmtool::CBAlgoPolyOverlap::~CBAlgoPolyOverlap |
( |
| ) |
|
|
inlinevirtual |
Core function: given the ClusterParamsAlg input, return whether a cluster should be merged or not.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 22 of file CBAlgoPolyOverlap.cxx.
26 if( (cluster1.GetParams().N_Hits <
_min_hits) ||
27 (cluster2.GetParams().N_Hits <
_min_hits) )
31 if ( (cluster1.GetParams().PolyObject.Size() < 2) or
32 (cluster2.GetParams().PolyObject.Size() < 2) ){
35 if (
_debug and cluster1.GetParams().N_Hits > 10 and cluster2.GetParams().N_Hits > 10) {
37 std::cout <<
"\tN_Hits: " << cluster1.GetParams().N_Hits <<
std::endl;
38 std::cout <<
"\tN Sides:" << cluster1.GetParams().PolyObject.Size() <<
std::endl;
39 for (
unsigned int n=0;
n < cluster1.GetParams().PolyObject.Size();
n++)
40 std::cout <<
"\t\t\t(" << cluster1.GetParams().PolyObject.Point(
n).first <<
", " 41 << cluster1.GetParams().PolyObject.Point(
n).second <<
")" <<
std::endl;
43 std::cout <<
"\tN_Hits: " << cluster2.GetParams().N_Hits <<
std::endl;
44 std::cout <<
"\tN Sides:" << cluster2.GetParams().PolyObject.Size() <<
std::endl;
45 for (
unsigned int n=0;
n < cluster2.GetParams().PolyObject.Size();
n++)
46 std::cout <<
"\t\t\t(" << cluster2.GetParams().PolyObject.Point(
n).first <<
", " 47 << cluster2.GetParams().PolyObject.Point(
n).second <<
")" <<
std::endl;
52 if ( cluster1.GetParams().PolyObject.PolyOverlapSegments(cluster2.GetParams().PolyObject) ){
QTextStream & endl(QTextStream &s)
void cmtool::CBAlgoPolyOverlap::reconfigure |
( |
| ) |
|
void cmtool::CBAlgoPolyOverlap::SetDebug |
( |
bool |
debug | ) |
|
|
inline |
void cmtool::CBAlgoPolyOverlap::SetMinNumHits |
( |
size_t |
nhits | ) |
|
|
inline |
bool cmtool::CBAlgoPolyOverlap::_debug |
|
private |
size_t cmtool::CBAlgoPolyOverlap::_min_hits |
|
private |
The documentation for this class was generated from the following files: