File: BrainSetAutoLoaderFileMetric.h

package info (click to toggle)
caret 5.6.4~dfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 31,904 kB
  • ctags: 28,901
  • sloc: cpp: 378,050; python: 6,718; ansic: 5,507; makefile: 333; sh: 46
file content (70 lines) | stat: -rw-r--r-- 2,168 bytes parent folder | download
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
#ifndef __BRAIN_SET_AUTO_LOADER_FILE_METRIC_H__
#define	__BRAIN_SET_AUTO_LOADER_FILE_METRIC_H__

#include "BrainSetAutoLoaderFile.h"
#include "SceneFile.h"

class BrainModelSurface;
class VolumeFile;

class BrainSetAutoLoaderFileMetric : public BrainSetAutoLoaderFile {
   public:
      /// constructor
      BrainSetAutoLoaderFileMetric(BrainSet* bsIn,
                               const int autoLoaderIndexIn);

      /// destructor
      ~BrainSetAutoLoaderFileMetric();

      /// reinitialize all display settings
      void reset();

      /// update any selections due to changes with loaded data files
      void update();

      /// apply a scene (set display settings)
      void showScene(const SceneFile::Scene& scene,
                             QString& errorMessage);

      /// create a scene (read display settings)
      void saveScene(SceneFile::Scene& scene,
                             const bool onlyIfSelectedFlag,
                             QString& errorMessage);

      /** get the auto load display surface */
      BrainModelSurface* getAutoLoadMetricDisplaySurface() {
         return this->autoLoadDisplaySurface;
      }

      /** set the auto load display surface */
      void setAutoLoadMetricDisplaySurface(BrainModelSurface* bms) {
         this->autoLoadDisplaySurface = bms;
      }

      /**
       * Get the last auto-loaded metric column number.
       */
      int getAutoLoadLastMetricColumnNumber() const {
         return this->autoLoadMetricLastColumnNumber;
      }

      /**
       * Set the last auto-loaded metric column number.
       */
      void setAutoLoadLastMetricColumnNumber(const int columnNumber)  {
         this->autoLoadMetricLastColumnNumber = columnNumber;
      }

      // auto load the metric file for the specified voxel (return error message)
      virtual QString loadFileForVoxel(const VoxelIJK& voxel);

   protected:
      /// auto load metric display surface
      BrainModelSurface* autoLoadDisplaySurface;

      /// column number of last auto-loaded metric (DO NOT SAVE TO SCENE)
      int autoLoadMetricLastColumnNumber;
};

#endif	/* __BRAIN_SET_AUTO_LOADER_FILE_METRIC_H__ */