manualContourModelPolygon.cpp

Go to the documentation of this file.
00001 #include "manualContourModelPolygon.h"
00002 
00003 // ----------------------------------------------------------------------------
00004 // ----------------------------------------------------------------------------
00005 // ----------------------------------------------------------------------------
00006 
00007 manualContourModelPolygon::manualContourModelPolygon()
00008 : manualContourModel()
00009 {
00010 }
00011 
00012 manualContourModelPolygon::~manualContourModelPolygon()
00013 {
00014 }
00015 
00016 
00017 // ----------------------------------------------------------------------------
00018 manualContourModelPolygon* manualContourModelPolygon :: Clone()  // virtual 
00019 {
00020         manualContourModelPolygon * clone = new manualContourModelPolygon();
00021         CopyAttributesTo(clone);
00022         return clone;
00023 }
00024 
00025 // ---------------------------------------------------------------------------
00026 
00027 void manualContourModelPolygon::CopyAttributesTo( manualContourModelPolygon * cloneObject)
00028 {
00029         manualContourModel::CopyAttributesTo(cloneObject);
00030 }
00031 
00032 //----------------------------------------------------------------
00033 int manualContourModelPolygon::GetTypeModel() //virtual 
00034 {
00035         return 10;
00036 }
00037 
00038 
00039 //----------------------------------------------------------------
00040 void manualContourModelPolygon::GetSpline_i_Point(int i, double *x, double *y, double *z) // virtual
00041 {
00042         if(i>=_lstPoints.size())
00043         {
00044                 i=0;
00045         }
00046 
00047         if (_lstPoints.size()==0)
00048         {
00049                 *x      = 0;
00050                 *y      = 0;
00051                 *z      = 0;
00052         }
00053         else
00054         {
00055                 manualPoint     *mp;
00056                 mp      = GetManualPoint(i);
00057                 *x      = mp->GetX();
00058                 *y      = mp->GetY();
00059                 *z      = mp->GetZ();
00060         }
00061 
00062 }
00063 
00064 
00065 void manualContourModelPolygon::UpdateSpline() // virtual
00066 {
00067         //SetNumberOfPointsSpline(_lstPoints.size()+1);
00068 }

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1