bem_graphs.itcl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #----------------------------------------------*-TCL-*------------
  2. #
  3. # mmtl_graphs.itcl
  4. #
  5. # Copyright 2002-2004 Mayo Foundation. All Rights Reserved.
  6. # $Id: bem_graphs.itcl,v 1.3 2004/02/12 22:28:28 techenti Exp $
  7. #
  8. #-----------------------------------------------------------------
  9. package provide bem 1.0
  10. package require Itcl
  11. itcl::class Header {
  12. public variable title ""
  13. public variable name ""
  14. public variable type ""
  15. public variable number 0
  16. }
  17. itcl::class Graphs {
  18. inherit Header
  19. public variable widthList ""
  20. public variable conductivityList ""
  21. public variable pitchList ""
  22. public variable heightList ""
  23. public variable xList ""
  24. public variable dielCList ""
  25. public variable rdcList ""
  26. public variable xOffList ""
  27. public variable yOffList ""
  28. public variable impList ""
  29. public variable impOddList ""
  30. public variable impEvenList ""
  31. public variable velocityList ""
  32. public variable delayList ""
  33. public variable fxtList ""
  34. public variable bxtList ""
  35. public variable xList_xt ""
  36. constructor { args } {
  37. eval configure $args
  38. }
  39. method addHeight { hght }
  40. method addNumber { num }
  41. method addImpedance { imp }
  42. method addOddImpedance { imp }
  43. method addEvenImpedance { imp }
  44. method addVelocity { vel }
  45. method addDelay { dly }
  46. method addDielectricConstant { dielC }
  47. method addWidth { wdth }
  48. method addConductivity { conductivity }
  49. method addPitch { pitch }
  50. method addX { xp }
  51. method addRdc { rdc }
  52. method addFXT { fxt }
  53. method addBXT { bxt }
  54. method addXxt { xp }
  55. method addXoff { xp }
  56. method addYoff { yp }
  57. }
  58. itcl::body Graphs::addWidth { value } {
  59. lappend widthList $value
  60. }
  61. itcl::body Graphs::addHeight { value } {
  62. lappend heightList $value
  63. }
  64. itcl::body Graphs::addConductivity { value } {
  65. lappend conductivityList $value
  66. }
  67. itcl::body Graphs::addPitch { value } {
  68. lappend pitchList $value
  69. }
  70. itcl::body Graphs::addImpedance { value } {
  71. lappend impList $value
  72. }
  73. itcl::body Graphs::addOddImpedance { value } {
  74. lappend impOddList $value
  75. }
  76. itcl::body Graphs::addEvenImpedance { value } {
  77. lappend impEvenList $value
  78. }
  79. itcl::body Graphs::addVelocity { value } {
  80. lappend velocityList $value
  81. }
  82. itcl::body Graphs::addDelay { value } {
  83. lappend delayList $value
  84. }
  85. itcl::body Graphs::addDielectricConstant { value } {
  86. lappend dielCList $value
  87. }
  88. itcl::body Graphs::addRdc { value } {
  89. lappend rdcList $value
  90. }
  91. itcl::body Graphs::addXoff { value } {
  92. lappend xOffList $value
  93. }
  94. itcl::body Graphs::addYoff { value } {
  95. lappend yOffList $value
  96. }
  97. itcl::body Graphs::addFXT { value } {
  98. lappend fxtList $value
  99. }
  100. itcl::body Graphs::addBXT { value } {
  101. lappend bxtList $value
  102. }
  103. itcl::body Graphs::addXxt { value } {
  104. lappend xList_xt $value
  105. }
  106. itcl::body Graphs::addX { value } {
  107. lappend xList $value
  108. }
  109. itcl::body Graphs::addXoff { value } {
  110. lappend xOffList $value
  111. }
  112. itcl::body Graphs::addYoff { value } {
  113. lappend yOffList $value
  114. }
  115. itcl::body Graphs::addNumber { num } {
  116. set number $num
  117. }