예제 #1
0
void SettingsPanel::onCheckBoxLaserOutput( Gwen::Controls::Base* pControl ){
    
    Gwen::Controls::CheckBox* pCheckBox = ( Gwen::Controls::CheckBox* ) pControl;
    string controlName = pControl->GetName().c_str();
    if (controlName.compare("Draw Lines") == 0){
        mIldaFrame->params.draw.lines = pCheckBox->IsChecked() == 1;
//        console() <<  "mIldaFrame->params.draw.lines : " << mIldaFrame->params.draw.lines << std::endl;
    }
    else if (controlName.compare("Show Frame") == 0){
        mLaserPreview3D->paramsView.showFrame = pCheckBox->IsChecked() == 1;
    }
    else if (controlName.compare("Draw Points") == 0){
        mIldaFrame->params.draw.points = pCheckBox->IsChecked() == 1;
    }
    else if (controlName.compare("Show Dots on Gauze") == 0){
        mLaserPreview3D->paramsView.showDotsOnGauze = pCheckBox->IsChecked() == 1;
    }
    else if (controlName.compare("Show Lines on Gauze") == 0){
        mLaserPreview3D->paramsView.showLinesOnGauze = pCheckBox->IsChecked() == 1;
    }
    else if (controlName.compare("Show Rays") == 0){
        mLaserPreview3D->paramsView.showRays = pCheckBox->IsChecked() == 1;
    }
    else if (controlName.compare("Show Fans") == 0){
        mLaserPreview3D->paramsView.showFans = pCheckBox->IsChecked() == 1;
    }
    
}
예제 #2
0
	void	OnCheckChangedStiffnessWarping (Gwen::Controls::Base* pControl)
	{
		Gwen::Controls::CheckBox* labeled = (Gwen::Controls::CheckBox* )pControl;
		bool checked = labeled->IsChecked();
		//m_app->m_stiffness_warp_on  = checked;
	}