Ignore:
Timestamp:
May 20, 2010, 11:49:26 AM (14 years ago)
Author:
garnier
Message:

cvs update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/modeling/src/G4ModelingParameters.cc

    r954 r1258  
    2525//
    2626//
    27 // $Id: G4ModelingParameters.cc,v 1.15 2006/11/14 14:42:08 allison Exp $
     27// $Id: G4ModelingParameters.cc,v 1.16 2010/05/11 11:13:35 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    3737#include "G4VisAttributes.hh"
    3838#include "G4ExceptionSeverity.hh"
    39 #include "G4Polyhedron.hh"
     39#include "G4VSolid.hh"
    4040
    4141G4ModelingParameters::G4ModelingParameters ():
     
    5050  fExplodeFactor         (1.),
    5151  fNoOfSides             (24),
    52   fpSectionPolyhedron    (0),
    53   fpCutawayPolyhedron    (0),
     52  fpSectionSolid         (0),
     53  fpCutawaySolid         (0),
    5454  fpEvent                (0)
    5555{}
     
    7575  fExplodeFactor  (1.),
    7676  fNoOfSides      (noOfSides),
    77   fpSectionPolyhedron (0),
    78   fpCutawayPolyhedron (0),
    79   fpEvent             (0)
     77  fpSectionSolid (0),
     78  fpCutawaySolid (0),
     79  fpEvent         (0)
    8080{}
    8181
    8282G4ModelingParameters::~G4ModelingParameters ()
    8383{
    84   delete fpSectionPolyhedron;
    85   delete fpCutawayPolyhedron;
     84  delete fpSectionSolid;
     85  delete fpCutawaySolid;
    8686}
    8787
     
    114114  fNoOfSides = nSides;
    115115  return fNoOfSides;
     116}
     117
     118void G4ModelingParameters::SetSectionSolid
     119(G4VSolid* pSectionSolid) {
     120  delete fpSectionSolid;
     121  fpSectionSolid = pSectionSolid;
     122}
     123
     124void G4ModelingParameters::SetCutawaySolid
     125(G4VSolid* pCutawaySolid) {
     126  delete fpCutawaySolid;
     127  fpCutawaySolid = pCutawaySolid;
    116128}
    117129
     
    166178     << mp.fNoOfSides;
    167179
    168   os << "\n  Section (DCUT) polyhedron pointer: ";
    169   if (!mp.fpSectionPolyhedron) os << "non-";
     180  os << "\n  Section (DCUT) shape (G4VSolid) pointer: ";
     181  if (!mp.fpSectionSolid) os << "non-";
    170182  os << "null";
    171183
    172   os << "\n  Cutaway (DCUT) polyhedron pointer: ";
    173   if (!mp.fpCutawayPolyhedron) os << "non-";
     184  os << "\n  Cutaway (DCUT) shape (G4VSolid) pointer: ";
     185  if (!mp.fpCutawaySolid) os << "non-";
    174186  os << "null";
    175187
     
    192204      (fExplodeCentre          != mp.fExplodeCentre)          ||
    193205      (fNoOfSides              != mp.fNoOfSides)              ||
    194       (fpSectionPolyhedron     != mp.fpSectionPolyhedron)     ||
    195       (fpCutawayPolyhedron     != mp.fpCutawayPolyhedron)     ||
     206      (fpSectionSolid          != mp.fpSectionSolid)     ||
     207      (fpCutawaySolid          != mp.fpCutawaySolid)     ||
    196208      (fpEvent                 != mp.fpEvent)
    197209      )
Note: See TracChangeset for help on using the changeset viewer.