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

void GuiDisplayControlDialog::readMiscSelections (  )  [private, slot]

read the misc selections

Read the selections on the misc page

Definition at line 6168 of file GuiDisplayControlDialog.cxx.

References creatingDialog, BrainSet::getActiveFiducialSurface(), BrainModel::getBrainSet(), GuiBrainModelSelectionComboBox::getSelectedBrainModelSurface(), miscActiveFiducialComboBox, miscAngularForcesCheckBox, miscAxesGroupBox, miscAxesLengthDoubleSpinBox, miscAxesOffsetDoubleSpinBox, miscAxesShowLettersCheckBox, miscAxesShowTickMarksCheckBox, miscBrightnessDoubleSpinBox, miscCerebellumFiducialVolumeInteractionComboBox, miscContrastDoubleSpinBox, miscDrawModeComboBox, miscForceVectorLengthDoubleSpinBox, miscIdentifyNodeColorComboBox, miscLeftFiducialVolumeInteractionComboBox, miscLinearForcesCheckBox, miscLinkSizeSpinBox, miscNodeSizeSpinBox, miscProjectionComboBox, miscRightFiducialVolumeInteractionComboBox, miscShowNormalsCheckBox, miscTotalForcesCheckBox, opacityDoubleSpinBox, BrainSet::setActiveFiducialSurface(), DisplaySettingsSurface::setDrawMode(), DisplaySettingsSurface::setForceVectorDisplayLength(), DisplaySettingsSurface::setIdentifyNodeColor(), DisplaySettingsSurface::setLinkSize(), DisplaySettingsSurface::setNodeBrightness(), DisplaySettingsSurface::setNodeContrast(), DisplaySettingsSurface::setNodeSize(), DisplaySettingsSurface::setOpacity(), DisplaySettingsSurface::setShowMorphingAngularForces(), DisplaySettingsSurface::setShowMorphingLinearForces(), DisplaySettingsSurface::setShowMorphingTotalForces(), DisplaySettingsSurface::setShowNormals(), DisplaySettingsSurface::setSurfaceAxesInfo(), DisplaySettingsSurface::setViewingProjection(), and GuiBrainModelOpenGL::updateAllGL().

Referenced by applySelected(), and createSurfaceMiscPage().

{
   if (creatingDialog) {
      return;
   }
   
   //
   // Update fiducial/volume interaction surfaces
   //
   theMainWindow->getBrainSet()->setLeftFiducialVolumeInteractionSurface(
      miscLeftFiducialVolumeInteractionComboBox->getSelectedBrainModelSurface());
   theMainWindow->getBrainSet()->setRightFiducialVolumeInteractionSurface(
      miscRightFiducialVolumeInteractionComboBox->getSelectedBrainModelSurface());
   theMainWindow->getBrainSet()->setCerebellumFiducialVolumeInteractionSurface(
      miscCerebellumFiducialVolumeInteractionComboBox->getSelectedBrainModelSurface());
      
   //
   // Update active fiducial surface
   //
   BrainModelSurface* active = miscActiveFiducialComboBox->getSelectedBrainModelSurface();
   if (active != NULL) {
      BrainModelSurface* currentActive = theMainWindow->getBrainSet()->getActiveFiducialSurface();
      if (currentActive != active) {
         theMainWindow->getBrainSet()->setActiveFiducialSurface(active);
      }
   }
   
   //
   // Display settings for nodes
   //
   DisplaySettingsSurface* dsn = theMainWindow->getBrainSet()->getDisplaySettingsSurface();
   
   dsn->setDrawMode(
      static_cast<DisplaySettingsSurface::DRAW_MODE>(miscDrawModeComboBox->currentIndex()));
   dsn->setViewingProjection(static_cast<DisplaySettingsSurface::VIEWING_PROJECTION>(
                       miscProjectionComboBox->currentIndex()));
   dsn->setNodeBrightness(miscBrightnessDoubleSpinBox->value());
   dsn->setNodeContrast(miscContrastDoubleSpinBox->value());
   dsn->setOpacity(opacityDoubleSpinBox->value());
   dsn->setNodeSize(miscNodeSizeSpinBox->value());
   dsn->setLinkSize(miscLinkSizeSpinBox->value());
   dsn->setShowNormals(miscShowNormalsCheckBox->isChecked());
   dsn->setShowMorphingTotalForces(miscTotalForcesCheckBox->isChecked());
   dsn->setShowMorphingAngularForces(miscAngularForcesCheckBox->isChecked());
   dsn->setShowMorphingLinearForces(miscLinearForcesCheckBox->isChecked());
   dsn->setForceVectorDisplayLength(miscForceVectorLengthDoubleSpinBox->value());
   dsn->setIdentifyNodeColor(static_cast<DisplaySettingsSurface::IDENTIFY_NODE_COLOR>(
                                       miscIdentifyNodeColorComboBox->currentIndex()));
                                       
   const float offset[3] = {
      miscAxesOffsetDoubleSpinBox[0]->value(),
      miscAxesOffsetDoubleSpinBox[1]->value(),
      miscAxesOffsetDoubleSpinBox[2]->value()
   };
   dsn->setSurfaceAxesInfo(miscAxesGroupBox->isChecked(),
                           miscAxesShowLettersCheckBox->isChecked(),
                           miscAxesShowTickMarksCheckBox->isChecked(),
                           miscAxesLengthDoubleSpinBox->value(),
                           offset);

   theMainWindow->getBrainSet()->getNodeColoring()->assignColors();
   GuiBrainModelOpenGL::updateAllGL(NULL); 
}


Generated by  Doxygen 1.6.0   Back to index