00001 /************************************************************************ 00002 * CCD_Output.h 00003 ************************************************************************ 00004 * Author : Duksu Kim (bluekds@tclab.kaist.ac.kr) 00005 * Affiliation : SGLAB(http://sglab.kaist.ac.kr), Dept. of Computer Science(http://cs.kaist.ac.kr) , KAIST(http://www.kaist.ac.kr) 00006 * Version : 0.5 00007 * Create : 2009/02/18 00008 * Last update : 2009/03/10 00009 ************************************************************************/ 00010 00011 #pragma once 00012 00013 #include "typeDef.h" 00014 #include <vector> 00015 00016 #define DEFAULT_VECTOR_SIZE 100 00017 00018 using namespace std ; 00019 00021 00028 class CCD_Output { 00029 private : 00030 UINT numVFs ; 00031 UINT numEEs ; 00032 00033 vector<intersectingVF> VFs ; 00034 vector<intersectingEE> EEs ; 00035 00036 public : 00037 00038 CCD_Output(void) ; 00039 ~CCD_Output(void) ; 00040 00044 void init ( void ) ; 00045 00049 void printSummary ( void ) ; 00050 00055 FORCEINLINE int getNumVF (void) { return numVFs ; } 00056 00061 FORCEINLINE int getNumEE (void) { return numEEs ; } 00062 00070 int getIntersetingVFs ( intersectingVF* listVFs ) ; 00071 00079 int getIntersetingEEs ( intersectingEE* listEEs ) ; 00080 00081 /************************************************************************/ 00082 /* Add results */ 00083 /************************************************************************/ 00084 00094 void addVF ( UINT objV, UINT objF, UINT triV, UINT triF, UINT vID, float cTime ) ; 00095 00108 void addEE ( UINT obj1, UINT obj2, UINT tri1, UINT tri2, UINT e1_ID0, UINT e1_ID1, UINT e2_ID0, UINT e2_ID1, float cTime ) ; 00109 };