smoothers/SmootherBase.cpp

Go to the documentation of this file.
00001 // CollisionDetectorBase
00002 #include "CollisionDetectors\CD_BasicStyle.h"
00003 // PathBase
00004 #include "Paths\PathBase.h"
00005 // SmootherBase
00006 #include "Smoothers\SmootherBase.h"
00007 
00008 
00009 //=============================================================================
00010 // Constructor
00011 //
00012 // Description: constructor
00013 //=============================================================================
00014 SmootherBase::SmootherBase()
00015         :
00016         m_CollisionDetector( NULL ),
00017         m_PathToSmooth( NULL )
00018 {
00019 }
00020 
00021 
00022 //=============================================================================
00023 // Destructor
00024 //
00025 // Description: destructor
00026 //=============================================================================
00027 SmootherBase::~SmootherBase()
00028 {
00029 }
00030 
00031 //=============================================================================
00032 // SetCollisionDetector
00033 //
00034 // Description: assigns the collision detector that the smoother will use
00035 //=============================================================================
00036 void SmootherBase::SetCollisionDetector( CD_BasicStyle* collisionDetector )
00037 {
00038         this->m_CollisionDetector = collisionDetector;
00039 }
00040 
00041 
00042 //=============================================================================
00043 // SetPath
00044 //
00045 // Description: assigns the path that we're going to smooth
00046 //=============================================================================
00047 void SmootherBase::SetPath( const PA_Points* path )
00048 {
00049         this->m_PathToSmooth = path;
00050 }
00051 
00052 
00053 //=============================================================================
00054 // GetPath
00055 //
00056 // Description: returns the smoothed path
00057 //=============================================================================
00058 PA_Points SmootherBase::GetPath() const
00059 {
00060         return this->m_SmoothedPath;
00061 }

Generated on Sat Apr 1 21:30:47 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO