manualContourModelLine.cpp

Go to the documentation of this file.
00001 #include "manualContourModelLine.h"
00002 
00003 // ----------------------------------------------------------------------------
00004 // ----------------------------------------------------------------------------
00005 // ----------------------------------------------------------------------------
00006 
00007 //AD: 02-09
00008 
00009 manualContourModelLine::manualContourModelLine()
00010 : manualContourModel()
00011 {
00012         SetNumberOfPointsSpline(20);
00013         this->SetCloseContour(false);
00014 }
00015 
00016 manualContourModelLine::~manualContourModelLine()
00017 {
00018 }
00019 
00020 
00021 // ----------------------------------------------------------------------------
00022 manualContourModelLine * manualContourModelLine :: Clone()  // virtual 
00023 {
00024         manualContourModelLine * clone = new manualContourModelLine();
00025         CopyAttributesTo(clone);
00026         return clone;
00027 }
00028 
00029 // ---------------------------------------------------------------------------
00030 
00031 void manualContourModelLine::CopyAttributesTo( manualContourModelLine * cloneObject)
00032 {
00033         manualContourModel::CopyAttributesTo(cloneObject);
00034 }
00035 
00036 //----------------------------------------------------------------
00037 int manualContourModelLine::GetTypeModel() //virtual 
00038 {
00039         return 6;
00040 }
00041 
00042 
00043 //----------------------------------------------------------------
00044 /*
00045 void manualContourModelLine::GetSpline_i_Point(int i, double *x, double *y, double *z) // virtual
00046 {
00047         int np  = GetSizeLstPoints();
00048         if (np==0)
00049         {
00050                 *x      = 0;
00051                 *y      = 0;
00052                 *z      = 0;
00053         }
00054         if (np==1)
00055         {
00056                 manualPoint     *mp;
00057                 mp      = GetManualPoint(0);
00058                 *x      = mp->GetX();
00059                 *y      = mp->GetY();
00060                 *z      = mp->GetZ();
00061         }
00062         if (np==2)
00063         {
00064                 manualPoint     *mp;
00065 
00066                 if (i==0)
00067                 {
00068                         mp = GetManualPoint(0);
00069                 } 
00070                 else if (i==1)
00071                 {
00072                         mp = GetManualPoint(1);
00073                 }
00074 
00075                 *x      = mp->GetX();
00076                 *y      = mp->GetY();
00077                 *z      = mp->GetZ();
00078         }
00079 
00080 }
00081 */
00082 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1