1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
|
#ifndef __GUI_FLATTEN_FULL_HEMISPHERE_DIALOG_H__
#define __GUI_FLATTEN_FULL_HEMISPHERE_DIALOG_H__
/*LICENSE_START*/
/*
* Copyright 1995-2002 Washington University School of Medicine
*
* http://brainmap.wustl.edu
*
* This file is part of CARET.
*
* CARET is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* CARET is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CARET; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
/*LICENSE_END*/
#include <vector>
#include <QWizardPage>
#include "WuQWizard.h"
class BrainModelSurface;
class BrainModelSurfaceMultiresolutionMorphing;
class GuiBrainModelSurfaceSelectionComboBox;
class GuiFlattenFullHemisphereBorderUpdatePage;
class GuiFlattenFullHemisphereFiducialPage;
class GuiFlattenFullHemisphereFinishedPage;
class GuiFlattenFullHemisphereInitialFlatPage;
class GuiFlattenFullHemisphereIntroPage;
class GuiFlattenFullHemisphereMultiresolutionMorphingPage;
class GuiFlattenFullHemisphereSettingsPage;
class GuiFlattenFullHemisphereStartFlatteningPage;
class GuiFlattenFullHemisphereSurfaceAlignmentPage;
class GuiFlattenFullHemisphereSphericalPage;
class GuiFlattenFullHemisphereTemplateCutsPage;
class QCheckBox;
class QLabel;
/// class for dialog that flattens a full hemisphere
class GuiFlattenFullHemisphereDialog : public WuQWizard {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereDialog(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereDialog();
// update the dialog
void updateDialog();
// get the fiducial surface
BrainModelSurface* getFiducialSurface();
// get the inflated surface
BrainModelSurface* getInflatedSurface();
// get the very inflated surface
BrainModelSurface* getVeryInflatedSurface();
// get the spherical surface
BrainModelSurface* getSphericalSurface();
// get the auto save files status
bool getAutoSaveFilesSelected() const;
// called to validate the current page
bool validateCurrentPage();
// save new surfaces
void saveSurfaces(const int indexOfFirstCoordinateFileToSave,
const int indexOfFirstTopologyFileToSave = -1);
// set the central sulcus ventral tip node number
void setCentralSulcusVentralTip(const int nodeNum);
// set the central sulcus dorsal-medial tip node number
void setCentralSulcusDorsalMedialTip(const int nodeNum);
// show the first page
void showFirstPage();
public slots:
/// called when cancel button pressed
void reject();
protected:
// save borders, if needed
void saveNewBorders();
/// intro page
GuiFlattenFullHemisphereIntroPage* introPage;
/// settings page
GuiFlattenFullHemisphereSettingsPage* settingsPage;
/// topology page
GuiFlattenFullHemisphereFiducialPage* fiducialSurfacePage;
/// surface page
GuiFlattenFullHemisphereSphericalPage* sphericalSurfacePage;
/// template cuts page
GuiFlattenFullHemisphereTemplateCutsPage* templateCutsPage;
/// border draw and update page
GuiFlattenFullHemisphereBorderUpdatePage* borderDrawAndUpdatePage;
/// surface alignment page
GuiFlattenFullHemisphereSurfaceAlignmentPage* surfaceAlignmentPage;
/// start flattening page
GuiFlattenFullHemisphereStartFlatteningPage* startFlatteningPage;
/// initial flat page
GuiFlattenFullHemisphereInitialFlatPage* initialFlatPage;
/// multiresolution morph page
GuiFlattenFullHemisphereMultiresolutionMorphingPage* multiMorphPage;
/// finished page
GuiFlattenFullHemisphereFinishedPage* finishedPage;
/// flat multi-resolution morphing parameters
BrainModelSurfaceMultiresolutionMorphing* flatParameters;
/// spherical multi-resolution morphing parameters
BrainModelSurfaceMultiresolutionMorphing* sphericalParameters;
};
/// class for introduction page
class GuiFlattenFullHemisphereIntroPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereIntroPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereIntroPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
protected:
};
/// class for settings
class GuiFlattenFullHemisphereSettingsPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereSettingsPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereSettingsPage();
// get the auto save files checkbox status
bool getAutoSaveFilesSelected() const;
// get the create fiducial with smoothed medial wall checkbox status
bool getCreateFiducialWithSmoothedMedialWallSelected() const;
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected:
/// auto save files check box
QCheckBox* autoSaveFilesCheckBox;
// smooth medial wall check box
QCheckBox* smoothMedialWallCheckBox;
};
/// class for topology
class GuiFlattenFullHemisphereFiducialPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereFiducialPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereFiducialPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
// get the fiducial surface
BrainModelSurface* getFiducialSurface();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected:
/// surface selection combo box
GuiBrainModelSurfaceSelectionComboBox* fiducialSurfaceComboBox;
};
/// class for verifying surfaces
class GuiFlattenFullHemisphereSphericalPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereSphericalPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereSphericalPage();
// get the spherical surface
BrainModelSurface* getSphericalSurface();
// get the inflated surface
BrainModelSurface* getInflatedSurface();
// get the very inflated surface
BrainModelSurface* getVeryInflatedSurface();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected slots:
// called when generate surfaces button clicked
void slotGenerateSurfacesPushButton();
protected:
/// surface selection combo box
GuiBrainModelSurfaceSelectionComboBox* inflatedSurfaceComboBox;
/// surface selection combo box
GuiBrainModelSurfaceSelectionComboBox* veryInflatedSurfaceComboBox;
/// surface selection combo box
GuiBrainModelSurfaceSelectionComboBox* sphericalSurfaceComboBox;
};
/// class for generating template cuts
class GuiFlattenFullHemisphereTemplateCutsPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereTemplateCutsPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereTemplateCutsPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected slots:
// called to add border template cuts
void slotAddTemplateCutBordersPushButton();
// called to add landmark border cuts
void slotAddLandmarkBordersPushButton();
protected:
};
/// class for drawing updating medial wall and cuts
class GuiFlattenFullHemisphereBorderUpdatePage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereBorderUpdatePage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereBorderUpdatePage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected slots:
// called when draw borders button pressed
void slotDrawBordersPushButton();
// called when update borders button pressed
void slotUpdateBordersPushButton();
// called when example images button pressed
void slotBorderExampleImages();
// called when show only flattening borders selected
void slotShowOnlyFlattenBordersPushButton();
protected:
};
/// class for cleaning up initial flat surface
class GuiFlattenFullHemisphereInitialFlatPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereInitialFlatPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereInitialFlatPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected:
};
/// class for starting flattening surface
class GuiFlattenFullHemisphereStartFlatteningPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereStartFlatteningPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereStartFlatteningPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
// get loaded flattening borders
void getLoadedFlatteningBorders(std::vector<QString>& flattenBorderNamesOut) const;
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected:
/// names of borders that will be used
QLabel* bordersListLabel;
};
/// class for multi-resolution morphing
class GuiFlattenFullHemisphereMultiresolutionMorphingPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereMultiresolutionMorphingPage(
BrainModelSurfaceMultiresolutionMorphing* flatParametersIn,
BrainModelSurfaceMultiresolutionMorphing* sphericalParametersIn,
QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereMultiresolutionMorphingPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
// is flat multi-res morphing selected
bool getDoFlatMultiResMorphing() const;
// is spherical multi-res morphing selected
bool getDoSphericalMultiResMorphing() const;
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected slots:
// called to adjust flat multi-res morph parameters
void slotFlatParamsPushButton();
// called to adjust spherical multi-res morph parameters
void slotSphericalParamsPushButton();
protected:
/// perform flat multi-res morphing check box
QCheckBox* flatMultiMorphCheckBox;
/// perform spherical multi-res morphing check box
QCheckBox* sphericalMultiMorphCheckBox;
/// flat multi-resolution morphing parameters
BrainModelSurfaceMultiresolutionMorphing* flatParameters;
/// spherical multi-resolution morphing parameters
BrainModelSurfaceMultiresolutionMorphing* sphericalParameters;
};
/// class for standard surface alignment page
class GuiFlattenFullHemisphereSurfaceAlignmentPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereSurfaceAlignmentPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereSurfaceAlignmentPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
// get the central suclus ventral and dorsal-medial tips
void getCentralSulcusTips(int& ventralTipNodeNumberOut,
int& dorsalMedialTipNodeNumberOut) const;
// set the central sulcus ventral tip
void setCentralSulcusVentralTip(const int nodeNum);
// set the central sulcus dorsal-medial tip
void setCentralSulcusDorsalMedialTip(const int nodeNum);
signals:
/// emitted when "complete" status of page changes
void completeChanged();
protected slots:
// called when enable mouse button pressed
void slotEnableMousePushButton();
// called when Use LANDMARK.CentralSulcus button pressed
void slotUseLandmarkCentralSulcusPushButton();
protected:
// update the ces node numbers
void updateCentralSulcusLabels();
/// Use LANDMARK.CentralSulcus button
QPushButton* useLandmarkCentralSulcusPushButton;
/// ventral node label
QLabel* ventralNodeLabel;
/// dorsal-medial node Label
QLabel* dorsalMedialNodeLabel;
/// ventral tip node number
int ventralTipNodeNumber;
/// dorsal-medial tip node number
int dorsalMedialTipNodeNumber;
};
/// class for finished page
class GuiFlattenFullHemisphereFinishedPage : public QWizardPage {
Q_OBJECT
public:
// constructor
GuiFlattenFullHemisphereFinishedPage(QWidget* parent = 0);
// destructor
~GuiFlattenFullHemisphereFinishedPage();
// cleanup page (called when showing page after "Back" pressed)
void cleanupPage();
// initialize the page (called when showing page after "Next" pressed)
void initializePage();
// page is complete
bool isComplete();
// validate a page
bool validatePage();
signals:
/// emitted when "complete" status of page changes
void completeChanged();
};
#endif // __GUI_FLATTEN_FULL_HEMISPHERE_DIALOG_H__
|