@@ -8,12 +8,17 @@ Line::Line(const QPair<QString,QString>& fromTo, ACLineSegment* ac, QObject *par
|
||||
}
|
||||
|
||||
|
||||
void Line::re_extract()
|
||||
{
|
||||
this->extract();
|
||||
}
|
||||
|
||||
void Line::extract()
|
||||
{
|
||||
//用YJV22-3x240
|
||||
ACLineSegment *ac=this->ac;
|
||||
double length=ac->getLength();
|
||||
this->length=length;
|
||||
// if((int)length==0)
|
||||
// {
|
||||
// std::cout<<"line length zeros "<<ac->getID().toStdString()<<std::endl;
|
||||
@@ -31,5 +36,5 @@ void Line::extract()
|
||||
this->g2=g0*length/1000;
|
||||
this->b1=b0*length/1000;
|
||||
this->b2=b0*length/1000;
|
||||
this->length=length/1000;
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ class Line:public Branch
|
||||
{
|
||||
public:
|
||||
Line(const QPair<QString, QString> &fromTo, ACLineSegment* ac,QObject* parent=0);
|
||||
void re_extract();
|
||||
double length;
|
||||
ACLineSegment *ac;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user