00001 // This is oxl/mvl/TriTensorCompute.cxx 00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00003 #pragma implementation 00004 #endif 00005 //: 00006 // \file 00007 // Ported from TargetJr's MViewCompute by Peter Vanroose, 17 June 2002. 00008 00009 #include "TriTensorCompute.h" 00010 #include <mvl/TriTensor.h> 00011 00012 // Constructor. 00013 BaseTriTensorCompute::BaseTriTensorCompute () 00014 { 00015 // zero length list. 00016 matchlineseg_list_ptr_ = new vcl_list<HomgMatchLineSeg2D2D2D*> (); 00017 00018 // zero length list. 00019 matchpoint_list_ptr_ = new vcl_list<HomgMatchPoint2D2D2D*> (); 00020 } 00021 00022 // Destructor. 00023 BaseTriTensorCompute::~BaseTriTensorCompute() 00024 { 00025 } 00026 00027 //----------------------------------------------------------------------------- 00028 // 00029 //: append match_list to the list of matched linesegments 00030 00031 void 00032 BaseTriTensorCompute::add_matches (vcl_list<HomgMatchLineSeg2D2D2D*> *match_list) 00033 { 00034 delete matchlineseg_list_ptr_; 00035 matchlineseg_list_ptr_ = match_list; 00036 } 00037 00038 //----------------------------------------------------------------------------- 00039 // 00040 //: append match_list to the list of matched points 00041 00042 void 00043 BaseTriTensorCompute::add_matches (vcl_list<HomgMatchPoint2D2D2D*> *match_list) 00044 { 00045 delete matchpoint_list_ptr_; 00046 matchpoint_list_ptr_ = match_list; 00047 } 00048 00049 00050 //----------------------------------------------------------------------------- 00051 // 00052 //: clear all entries from the list of matched linesegments 00053 void 00054 BaseTriTensorCompute::clear_matches_line (void) 00055 { 00056 delete matchlineseg_list_ptr_; 00057 } 00058 00059 //----------------------------------------------------------------------------- 00060 // 00061 //: clear all entries from the list of matched points 00062 void 00063 BaseTriTensorCompute::clear_matches_point (void) 00064 { 00065 delete matchpoint_list_ptr_; 00066 }