summaryrefslogtreecommitdiffstats
path: root/tksao/frame/frame.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/frame.C')
-rw-r--r--tksao/frame/frame.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/tksao/frame/frame.C b/tksao/frame/frame.C
index 7d1e5a7..38f5175 100644
--- a/tksao/frame/frame.C
+++ b/tksao/frame/frame.C
@@ -34,6 +34,7 @@ Frame::Frame(Tcl_Interp* i, Tk_Canvas c, Tk_Item* item)
maskColorName = dupstr("red");
maskAlpha = 1;
maskMark = 1;
+ maskSystem = Coord::PHYSICAL;
}
Frame::~Frame()
@@ -387,6 +388,11 @@ void Frame::getMaskMarkCmd()
Tcl_AppendResult(interp, "0", NULL);
}
+void Frame::getMaskSystemCmd()
+{
+ printCoordSystem(maskSystem);
+}
+
void Frame::getMaskTransparencyCmd()
{
printDouble((1-maskAlpha)*100.);
@@ -406,6 +412,11 @@ void Frame::maskColorCmd(const char* color)
maskColorName = dupstr(color);
}
+void Frame::maskSystemCmd(Coord::CoordSystem sys)
+{
+ maskSystem = sys;
+}
+
void Frame::maskTransparencyCmd(float tt)
{
maskAlpha = 1-(tt/100.);