ctkXnatExperiment.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*=============================================================================
  2. Library: XNAT/Core
  3. Copyright (c) University College London,
  4. Centre for Medical Image Computing
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef ctkXnatExperiment_h
  16. #define ctkXnatExperiment_h
  17. #include "ctkXNATCoreExport.h"
  18. #include "ctkXnatObject.h"
  19. #include "ctkXnatDefaultSchemaTypes.h"
  20. class ctkXnatExperimentPrivate;
  21. /**
  22. * @ingroup XNAT_Core
  23. */
  24. class CTK_XNAT_CORE_EXPORT ctkXnatExperiment : public ctkXnatObject
  25. {
  26. public:
  27. ctkXnatExperiment(ctkXnatObject* parent = 0, const QString& schemaType = ctkXnatDefaultSchemaTypes::XSI_EXPERIMENT);
  28. virtual ~ctkXnatExperiment();
  29. virtual QString resourceUri() const;
  30. /// Sets the name, i.e. the label of the subject
  31. virtual void setName(const QString &name);
  32. /// Returns the name, i.e. the label of the subject
  33. virtual QString name() const;
  34. void setLabel(const QString &label);
  35. QString label() const;
  36. QString dateOfAcquisition() const;
  37. void setDateOfAcquisition(const QString &dateOfAcquisition);
  38. QString timeOfAcquisition() const;
  39. void setTimeOfAcquisition(const QString &timeOfAcquisition);
  40. QString scannerType() const;
  41. void setScannerType(const QString &scannerType);
  42. QString imageModality() const;
  43. void setImageModality(const QString &imageModality);
  44. void reset();
  45. static const QString DATE_OF_ACQUISITION;
  46. static const QString TIME_OF_ACQUISITION;
  47. static const QString SCANNER_TYPE;
  48. static const QString IMAGE_MODALITY;
  49. private:
  50. virtual void fetchImpl();
  51. virtual void downloadImpl(const QString&);
  52. Q_DECLARE_PRIVATE(ctkXnatExperiment)
  53. };
  54. #endif