ROI_base.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------
00012 //---------------------------------------------------
00013 
00014 #include "ROI_base.h"
00015 
00016 namespace imedgine 
00017 {
00018   ROIBase::ROIBase(SoSeparator* root)
00019   : root_(root)
00020   {  
00021   }
00022   
00023   //--------------------------------------------------- 
00024   
00025   ROIBase::~ROIBase()
00026   {
00027   }
00028 
00029   //---------------------------------------------------  
00030   
00031   void ROIBase::addPoint(SbVec3f point)
00032   {
00033     float* current_point = new float[3];
00034     //TODO: delete this array
00035       
00036     current_point[0] = point.getValue()[X_DIMENSION];
00037     current_point[1] = point.getValue()[Y_DIMENSION];
00038     current_point[2] = point.getValue()[Z_DIMENSION];
00039     
00040     current_ROI_.push_back(current_point);
00041   }
00042   
00043   //---------------------------------------------------
00044   
00045   void ROIBase::finishROI()
00046   {
00047     ROI_container_.push_back(current_ROI_);
00048     current_ROI_.clear();  
00049   }
00050    
00051 }

Generated on Sun Aug 13 18:19:41 2006 for iMEDgine by  doxygen 1.4.6