hasInit = true;
myCutLines = VISU::TSameAsFactory<VISU::TCUTLINES>().Create(myPrsCopy, VISU::ColoredPrs3d_i::EDoNotPublish);
myCutLines->CopyCurvesInverted(myPrsCopy->GetCurvesInverted());
- if (myCutLines->IsAllCurvesInverted())
- myAllCurvesInvertedCheck->setChecked(true);
+ myAllCurvesInvertedCheck->setChecked( myCutLines->IsAllCurvesInverted() );
+ myUseAbsoluteLengthCheck->setChecked( myCutLines->IsUseAbsoluteLength() );
myBasePlanePos->setText( QString::number(myCutLines->GetBasePlanePosition()) );
myCBSetDef->setChecked(myPrsCopy->IsDefault());
DrawTable();
for (int i = 0; i < (int)myNbSpn->value(); ++i) {
if (!((QCheckTableItem*)myPosTable->item( i, 1 ))->isChecked())
myPrsCopy->SetLinePosition( i, myPosTable->text( i, 0 ).toDouble() );
- else myPrsCopy->SetDefaultPosition(i);
+ else
+ myPrsCopy->SetDefaultPosition(i);
}
- if (myAllCurvesInvertedCheck->isChecked())
- myPrsCopy->SetAllCurvesInverted(true);
+
+ myPrsCopy->SetAllCurvesInverted( myAllCurvesInvertedCheck->isChecked() );
+ myPrsCopy->SetUseAbsoluteLength( myUseAbsoluteLengthCheck->isChecked() );
VISU::TSameAsFactory<VISU::TCUTLINES>().Copy(myPrsCopy, thePrs);
*/
void VisuGUI_CutLinesDlg::onAllCurvesInvertedCheck(bool theInvert)
{
- if (myAllCurvesInvertedCheck->isChecked()){
- myCutLines->SetAllCurvesInverted(true);
- myPrsCopy->SetAllCurvesInverted(true);
- }
- else {
- myCutLines->SetAllCurvesInverted(false);
- myPrsCopy->SetAllCurvesInverted(false);
- }
+ bool anIsAllCurvesInverted = myAllCurvesInvertedCheck->isChecked();
+
+ myCutLines->SetAllCurvesInverted( anIsAllCurvesInverted );
+ myPrsCopy->SetAllCurvesInverted( anIsAllCurvesInverted );
+
updateGlyphs(true);
}