File: ellipseannulus.tcl

package info (click to toggle)
saods9 8.2%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,436 kB
  • sloc: tcl: 247,588; cpp: 69,307; ansic: 3,983; xml: 1,375; sh: 1,312; makefile: 183; perl: 68
file content (28 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
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
#  Copyright (C) 1999-2018
#  Smithsonian Astrophysical Observatory, Cambridge, MA, USA
#  For conditions of distribution and use, see copyright notice in "copyright"

package provide DS9 1.0

proc EllipseAnnulusDialog {varname} {
    upvar #0 $varname var
    global $varname

    # see if we already have a header window visible
    if {[winfo exists $var(top)]} {
	raise $var(top)
	return
    }

    # procs
    set var(which) ellipseannulus
    set var(proc,apply) MarkerBaseAnnulusRectApply
    set var(proc,close) MarkerBaseAnnulusRectClose
    set var(proc,generate) MarkerBaseAnnulusGenerateEllipse
    set var(proc,coordCB) MarkerBaseAnnulusRectCoordCB
    set var(proc,editCB) MarkerBaseAnnulusRectEditCB
    set var(proc,distCB) MarkerBaseAnnulusRectDistCB

    # base
    MarkerBaseAnnulusRectDialog $varname radius Major Minor
}