summaryrefslogtreecommitdiffstats
path: root/tksao/frame
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-11-08 19:42:12 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-11-08 19:42:12 (GMT)
commit82f796251e759a6cd7886a56b6631f2229545c5e (patch)
tree775411120671ff859c2aeb858bf543f1c0c1f5f0 /tksao/frame
parent50bf2c8ef50345a11e3fc301873a295c581fd61a (diff)
downloadblt-82f796251e759a6cd7886a56b6631f2229545c5e.zip
blt-82f796251e759a6cd7886a56b6631f2229545c5e.tar.gz
blt-82f796251e759a6cd7886a56b6631f2229545c5e.tar.bz2
add convert to mask
Diffstat (limited to 'tksao/frame')
-rw-r--r--tksao/frame/base.h2
-rw-r--r--tksao/frame/frame.C7
-rw-r--r--tksao/frame/frame.h1
-rw-r--r--tksao/frame/frmarker.C4
4 files changed, 9 insertions, 5 deletions
diff --git a/tksao/frame/base.h b/tksao/frame/base.h
index e8398ca..265b6a3 100644
--- a/tksao/frame/base.h
+++ b/tksao/frame/base.h
@@ -1385,7 +1385,7 @@ public:
void markerCommandVarCmd(MarkerFormat, const char*);
void markerCopyCmd();
void markerCopyCmd(const char*);
- void markerCreateMaskCmd(const char*);
+ virtual void markerCreateMaskCmd(const char*) {};
void markerCpandaCreateAnglesCmd(int, const Vector&);
void markerCpandaCreateRadiusCmd(int, const Vector&);
void markerCpandaDeleteCmd(int, int);
diff --git a/tksao/frame/frame.C b/tksao/frame/frame.C
index bb99824..47650da 100644
--- a/tksao/frame/frame.C
+++ b/tksao/frame/frame.C
@@ -512,6 +512,13 @@ void Frame::maskTransparencyCmd(float tt)
update(BASE);
}
+void Frame::markerCreateMaskCmd(const char* fn)
+{
+ // create image
+ // save it
+ // load as mask
+}
+
void Frame::colormapCmd(int id, float b, float c, int i,
unsigned char* cells, int cnt)
{
diff --git a/tksao/frame/frame.h b/tksao/frame/frame.h
index f385a60..346a824 100644
--- a/tksao/frame/frame.h
+++ b/tksao/frame/frame.h
@@ -73,6 +73,7 @@ class Frame : public FrameBase {
void maskRangeCmd(double ll, double hh) {maskLow=ll; maskHigh=hh;}
void maskSystemCmd(Coord::CoordSystem);
void maskTransparencyCmd(float);
+ void markerCreateMaskCmd(const char*);
void colormapCmd(int, float, float, int, unsigned char*, int);
void colormapBeginCmd();
diff --git a/tksao/frame/frmarker.C b/tksao/frame/frmarker.C
index 6c7e1fa..179561e 100644
--- a/tksao/frame/frmarker.C
+++ b/tksao/frame/frmarker.C
@@ -3285,10 +3285,6 @@ void Base::markerCopyCmd(const char* tag)
}
}
-void Base::markerCreateMaskCmd(const char* fn)
-{
-}
-
void Base::markerCpandaCreateAnglesCmd(int id, const Vector& vv)
{
Marker* mm=markers->head();