Logo Search packages:      
Sourcecode: caret version File versions  Download package

void GuiDisplayControlDialog::updateMiscItems (  ) 

update the misc items

Update the items on the misc page

Definition at line 6115 of file GuiDisplayControlDialog.cxx.

References WuQWidgetGroup::blockSignals(), DisplaySettingsSurface::getDrawMode(), DisplaySettingsSurface::getForceVectorDisplayLength(), DisplaySettingsSurface::getIdentifyNodeColor(), DisplaySettingsSurface::getLinkSize(), DisplaySettingsSurface::getNodeBrightness(), DisplaySettingsSurface::getNodeContrast(), DisplaySettingsSurface::getNodeSize(), DisplaySettingsSurface::getOpacity(), DisplaySettingsSurface::getShowMorphingAngularForces(), DisplaySettingsSurface::getShowMorphingLinearForces(), DisplaySettingsSurface::getShowMorphingTotalForces(), DisplaySettingsSurface::getShowNormals(), DisplaySettingsSurface::getSurfaceAxesInfo(), DisplaySettingsSurface::getViewingProjection(), miscActiveFiducialComboBox, miscAngularForcesCheckBox, miscAxesGroupBox, miscAxesLengthDoubleSpinBox, miscAxesOffsetDoubleSpinBox, miscAxesShowLettersCheckBox, miscAxesShowTickMarksCheckBox, miscBrightnessDoubleSpinBox, miscCerebellumFiducialVolumeInteractionComboBox, miscContrastDoubleSpinBox, miscDrawModeComboBox, miscForceVectorLengthDoubleSpinBox, miscIdentifyNodeColorComboBox, miscLeftFiducialVolumeInteractionComboBox, miscLinearForcesCheckBox, miscLinkSizeSpinBox, miscNodeSizeSpinBox, miscProjectionComboBox, miscRightFiducialVolumeInteractionComboBox, miscShowNormalsCheckBox, miscTotalForcesCheckBox, opacityDoubleSpinBox, pageSurfaceMisc, GuiBrainModelSelectionComboBox::setSelectedBrainModel(), surfaceMiscWidgetGroup, GuiBrainModelSelectionComboBox::updateComboBox(), and updatePageSelectionComboBox().

Referenced by GuiMainWindow::fileModificationUpdate(), showDisplayControlPage(), and updateAllItemsInDialog().

{
   updatePageSelectionComboBox();
   if (pageSurfaceMisc == NULL) {
      return;
   }
   
   surfaceMiscWidgetGroup->blockSignals(true);
   
   //
   // Display settings for nodes
   //
   DisplaySettingsSurface* dsn = theMainWindow->getBrainSet()->getDisplaySettingsSurface();
 
   miscLeftFiducialVolumeInteractionComboBox->updateComboBox();
   miscLeftFiducialVolumeInteractionComboBox->setSelectedBrainModel(theMainWindow->getBrainSet()->getLeftFiducialVolumeInteractionSurface());
   miscRightFiducialVolumeInteractionComboBox->updateComboBox();
   miscRightFiducialVolumeInteractionComboBox->setSelectedBrainModel(theMainWindow->getBrainSet()->getRightFiducialVolumeInteractionSurface());
   miscCerebellumFiducialVolumeInteractionComboBox->updateComboBox();
   miscCerebellumFiducialVolumeInteractionComboBox->setSelectedBrainModel(theMainWindow->getBrainSet()->getCerebellumFiducialVolumeInteractionSurface());
   miscActiveFiducialComboBox->updateComboBox();
   miscActiveFiducialComboBox->setSelectedBrainModel(theMainWindow->getBrainSet()->getActiveFiducialSurface());
   miscDrawModeComboBox->setCurrentIndex(dsn->getDrawMode());
   miscProjectionComboBox->setCurrentIndex(dsn->getViewingProjection());
   miscBrightnessDoubleSpinBox->setValue(dsn->getNodeBrightness());
   miscContrastDoubleSpinBox->setValue(dsn->getNodeContrast());
   opacityDoubleSpinBox->setValue(dsn->getOpacity());
   miscNodeSizeSpinBox->setValue(dsn->getNodeSize());
   miscLinkSizeSpinBox->setValue(dsn->getLinkSize());
   miscShowNormalsCheckBox->setChecked(dsn->getShowNormals());
   miscTotalForcesCheckBox->setChecked(dsn->getShowMorphingTotalForces());
   miscAngularForcesCheckBox->setChecked(dsn->getShowMorphingAngularForces());
   miscLinearForcesCheckBox->setChecked(dsn->getShowMorphingLinearForces());
   miscForceVectorLengthDoubleSpinBox->setValue(dsn->getForceVectorDisplayLength());
   miscIdentifyNodeColorComboBox->setCurrentIndex(dsn->getIdentifyNodeColor());
   bool showAxes, showLetters, showHashMarks;
   float axesLength, offset[3];
   dsn->getSurfaceAxesInfo(showAxes, showLetters, showHashMarks, axesLength, offset);
   miscAxesGroupBox->setChecked(showAxes);
   miscAxesShowLettersCheckBox->setChecked(showLetters);
   miscAxesShowTickMarksCheckBox->setChecked(showHashMarks);
   miscAxesLengthDoubleSpinBox->setValue(axesLength);
   miscAxesOffsetDoubleSpinBox[0]->setValue(offset[0]);
   miscAxesOffsetDoubleSpinBox[1]->setValue(offset[1]);
   miscAxesOffsetDoubleSpinBox[2]->setValue(offset[2]);

   surfaceMiscWidgetGroup->blockSignals(false);
}


Generated by  Doxygen 1.6.0   Back to index