Changeset 239 in svn for trunk/Utilities/Hector/src
- Timestamp:
- Feb 3, 2009, 2:36:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/Hector/src/H_OpticalElement.cc
r216 r239 97 97 xpos = el.xpos; 98 98 ypos = el.ypos; 99 100 99 txpos = el.txpos; 100 typos = el.typos; 101 101 betax = el.betax; 102 102 betay = el.betay; … … 104 104 name = el.name; 105 105 typestring = el.typestring; 106 106 element_mat.ResizeTo(MDIM,MDIM); 107 107 element_mat = el.element_mat; 108 108 element_aperture = el.element_aperture->clone(); … … 121 121 return; 122 122 } 123 /* 124 void H_OpticalElement::setAperture(H_Aperture* ap) { 125 // do NOT use setAperture in your constructor, as element_aperture is not initialized 126 // this function do not take into account ap if ap=0 127 // do nothing if element_mat = ap 128 if (!ap) {cout << "<H_OpticalElement> Trying to set an empty pointer for the aperture ! Nothing done.\n"; return;} 129 if (element_aperture != ap) { 130 delete element_aperture; 131 element_aperture = ap; //->clone(); 132 } 133 return; 134 } 135 */ 136 137 123 138 124 139 void H_OpticalElement::printProperties() const {
Note:
See TracChangeset
for help on using the changeset viewer.