summaryrefslogtreecommitdiffstats
path: root/tksao/frame/fitsmask.h
blob: c9ee388d8ab076633d2b9b3f74811791cda08663 (plain)
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
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __fitsmask_h__
#define __fitsmask_h__

#include "util.h"

class Base;
class FitsImage;

class FitsMask {
 private:
  Base* parent_;

  FitsImage* mask_;
  FitsImage* current_;
  FitsImage* mptr_;

  char* colorName_;
  XColor* color_;
  char trueColor_[4];

  int mark_;

 protected:
  FitsMask* previous_;
  FitsMask* next_;

 public:
  FitsMask(Base*, FitsImage*, char*, int);
  virtual ~FitsMask();

  FitsImage* mask() {return mask_;}
  FitsImage* current() {return current_;}
  FitsImage* mptr() {return mptr_;}
  XColor* color() {return color_;}
  char* trueColor() {return trueColor_;}
  int mark() {return mark_;}

  void initMosaic() {mptr_ = current_;}
  void nextMosaic();
  void nextSlice();

  FitsMask* previous() {return previous_;}
  void setPrevious(FitsMask* m) {previous_ = m;}
  FitsMask* next() {return next_;}
  void setNext(FitsMask* m) {next_ = m;}
};

#endif