|  | @@ -15,7 +15,7 @@ SolidSurfaceWidget::SolidSurfaceWidget()
 | 
	
		
			
				|  |  |  * @date 20230104
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    showHideState = true;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -29,9 +29,9 @@ SolidSurfaceWidget::SolidSurfaceWidget()
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  void SolidSurfaceWidget::Setcolor(QColor color)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//   ldt_r->setText(QString::number(color.red()/255.0));
 | 
	
		
			
				|  |  | -//   ldt_g->setText(QString::number(color.green()/255.0));
 | 
	
		
			
				|  |  | -//   ldt_b->setText(QString::number(color.blue()/255.0));
 | 
	
		
			
				|  |  | +    //   ldt_r->setText(QString::number(color.red()/255.0));
 | 
	
		
			
				|  |  | +    //   ldt_g->setText(QString::number(color.green()/255.0));
 | 
	
		
			
				|  |  | +    //   ldt_b->setText(QString::number(color.blue()/255.0));
 | 
	
		
			
				|  |  |      number_r = color.red()/255.0;
 | 
	
		
			
				|  |  |      number_g = color.green()/255.0;
 | 
	
		
			
				|  |  |      number_b = color.blue()/255.0;
 | 
	
	
		
			
				|  | @@ -49,9 +49,9 @@ void SolidSurfaceWidget::Setcolor(QColor color)
 | 
	
		
			
				|  |  |  vector<double> SolidSurfaceWidget::GetColor()
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      vector<double> vec;
 | 
	
		
			
				|  |  | -//    vec.push_back(ldt_r->text().toDouble());
 | 
	
		
			
				|  |  | -//    vec.push_back(ldt_g->text().toDouble());
 | 
	
		
			
				|  |  | -//    vec.push_back(ldt_b->text().toDouble());
 | 
	
		
			
				|  |  | +    //    vec.push_back(ldt_r->text().toDouble());
 | 
	
		
			
				|  |  | +    //    vec.push_back(ldt_g->text().toDouble());
 | 
	
		
			
				|  |  | +    //    vec.push_back(ldt_b->text().toDouble());
 | 
	
		
			
				|  |  |      vec.push_back(number_r);
 | 
	
		
			
				|  |  |      vec.push_back(number_g);
 | 
	
		
			
				|  |  |      vec.push_back(number_b);
 | 
	
	
		
			
				|  | @@ -68,9 +68,9 @@ vector<double> SolidSurfaceWidget::GetColor()
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  void SolidSurfaceWidget::SetColor(vector<double> color)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//    ldt_r->setText(QString::number(color.at(0)));
 | 
	
		
			
				|  |  | -//    ldt_g->setText(QString::number(color.at(1)));
 | 
	
		
			
				|  |  | -//    ldt_b->setText(QString::number(color.at(2)));
 | 
	
		
			
				|  |  | +    //    ldt_r->setText(QString::number(color.at(0)));
 | 
	
		
			
				|  |  | +    //    ldt_g->setText(QString::number(color.at(1)));
 | 
	
		
			
				|  |  | +    //    ldt_b->setText(QString::number(color.at(2)));
 | 
	
		
			
				|  |  |      number_r = color.at(0);
 | 
	
		
			
				|  |  |      number_g = color.at(1);
 | 
	
		
			
				|  |  |      number_b = color.at(2);
 | 
	
	
		
			
				|  | @@ -86,7 +86,7 @@ void SolidSurfaceWidget::SetColor(vector<double> color)
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  void SolidSurfaceWidget::SetTransparency(double value)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//    ldt_trans->setText(QString::number(value));
 | 
	
		
			
				|  |  | +    //    ldt_trans->setText(QString::number(value));
 | 
	
		
			
				|  |  |      number_transparency = value;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -102,9 +102,9 @@ void SolidSurfaceWidget::SetTransparency(double value)
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  double SolidSurfaceWidget::GetTransparency()
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//    double value = ldt_trans->text().toDouble();
 | 
	
		
			
				|  |  | +    //    double value = ldt_trans->text().toDouble();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//    return value;
 | 
	
		
			
				|  |  | +    //    return value;
 | 
	
		
			
				|  |  |      return number_transparency;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -119,13 +119,13 @@ double SolidSurfaceWidget::GetTransparency()
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  bool SolidSurfaceWidget::GetShowHideState()
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//    if (rbt_show->isChecked())
 | 
	
		
			
				|  |  | -//    {
 | 
	
		
			
				|  |  | -        return true;
 | 
	
		
			
				|  |  | -//    }else
 | 
	
		
			
				|  |  | -//    {
 | 
	
		
			
				|  |  | -//        return false;
 | 
	
		
			
				|  |  | -//    }
 | 
	
		
			
				|  |  | +    //    if (rbt_show->isChecked())
 | 
	
		
			
				|  |  | +    //    {
 | 
	
		
			
				|  |  | +    return showHideState;
 | 
	
		
			
				|  |  | +    //    }else
 | 
	
		
			
				|  |  | +    //    {
 | 
	
		
			
				|  |  | +    //        return false;
 | 
	
		
			
				|  |  | +    //    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * @brief the destructor.
 | 
	
	
		
			
				|  | @@ -138,7 +138,7 @@ bool SolidSurfaceWidget::GetShowHideState()
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  SolidSurfaceWidget::~SolidSurfaceWidget()
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    showHideState = true;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * @brief
 | 
	
	
		
			
				|  | @@ -151,12 +151,6 @@ SolidSurfaceWidget::~SolidSurfaceWidget()
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  void SolidSurfaceWidget::SetShowHideState(bool flag)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -//    if(flag)
 | 
	
		
			
				|  |  | -//    {
 | 
	
		
			
				|  |  | -//        rbt_hide->setChecked(true);
 | 
	
		
			
				|  |  | -//    }else
 | 
	
		
			
				|  |  | -//    {
 | 
	
		
			
				|  |  | -//        rbt_show->setChecked(true);
 | 
	
		
			
				|  |  | -//    }
 | 
	
		
			
				|  |  | +   showHideState = flag;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 |