- Timestamp:
- May 20, 2010, 11:49:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/modeling/src/G4ModelingParameters.cc
r954 r1258 25 25 // 26 26 // 27 // $Id: G4ModelingParameters.cc,v 1.1 5 2006/11/14 14:42:08allison Exp $27 // $Id: G4ModelingParameters.cc,v 1.16 2010/05/11 11:13:35 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 37 37 #include "G4VisAttributes.hh" 38 38 #include "G4ExceptionSeverity.hh" 39 #include "G4 Polyhedron.hh"39 #include "G4VSolid.hh" 40 40 41 41 G4ModelingParameters::G4ModelingParameters (): … … 50 50 fExplodeFactor (1.), 51 51 fNoOfSides (24), 52 fpSection Polyhedron(0),53 fpCutaway Polyhedron(0),52 fpSectionSolid (0), 53 fpCutawaySolid (0), 54 54 fpEvent (0) 55 55 {} … … 75 75 fExplodeFactor (1.), 76 76 fNoOfSides (noOfSides), 77 fpSection Polyhedron(0),78 fpCutaway Polyhedron(0),79 fpEvent 77 fpSectionSolid (0), 78 fpCutawaySolid (0), 79 fpEvent (0) 80 80 {} 81 81 82 82 G4ModelingParameters::~G4ModelingParameters () 83 83 { 84 delete fpSection Polyhedron;85 delete fpCutaway Polyhedron;84 delete fpSectionSolid; 85 delete fpCutawaySolid; 86 86 } 87 87 … … 114 114 fNoOfSides = nSides; 115 115 return fNoOfSides; 116 } 117 118 void G4ModelingParameters::SetSectionSolid 119 (G4VSolid* pSectionSolid) { 120 delete fpSectionSolid; 121 fpSectionSolid = pSectionSolid; 122 } 123 124 void G4ModelingParameters::SetCutawaySolid 125 (G4VSolid* pCutawaySolid) { 126 delete fpCutawaySolid; 127 fpCutawaySolid = pCutawaySolid; 116 128 } 117 129 … … 166 178 << mp.fNoOfSides; 167 179 168 os << "\n Section (DCUT) polyhedronpointer: ";169 if (!mp.fpSection Polyhedron) os << "non-";180 os << "\n Section (DCUT) shape (G4VSolid) pointer: "; 181 if (!mp.fpSectionSolid) os << "non-"; 170 182 os << "null"; 171 183 172 os << "\n Cutaway (DCUT) polyhedronpointer: ";173 if (!mp.fpCutaway Polyhedron) os << "non-";184 os << "\n Cutaway (DCUT) shape (G4VSolid) pointer: "; 185 if (!mp.fpCutawaySolid) os << "non-"; 174 186 os << "null"; 175 187 … … 192 204 (fExplodeCentre != mp.fExplodeCentre) || 193 205 (fNoOfSides != mp.fNoOfSides) || 194 (fpSection Polyhedron != mp.fpSectionPolyhedron) ||195 (fpCutaway Polyhedron != mp.fpCutawayPolyhedron) ||206 (fpSectionSolid != mp.fpSectionSolid) || 207 (fpCutawaySolid != mp.fpCutawaySolid) || 196 208 (fpEvent != mp.fpEvent) 197 209 )
Note: See TracChangeset
for help on using the changeset viewer.