VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::ExtrudedSolid Class Reference

VGM implementation for Geant4 xtru solid. More...

#include <ExtrudedSolid.h>

Inheritance diagram for Geant4GM::ExtrudedSolid:

Public Member Functions

 ExtrudedSolid (const std::string &name, std::vector< VGM::TwoVector > polygon, std::vector< std::vector< double > > zsections)
 
 ExtrudedSolid (G4ExtrudedSolid *xtru, G4ReflectedSolid *reflXtru=0)
 
virtual ~ExtrudedSolid ()
 
virtual std::string Name () const
 Return the name of this solid.
 
int NofVertices () const
 Return the number of vertices of outline polygon.
 
VGM::TwoVector Vertex (int index) const
 Return the index-th vertex of outline polygon.
 
virtual int NofZSections () const
 Return the number of planes perpendicular to the z axis.
 
virtual double ZPosition (int iz) const
 Return the z position of the iz-th plane in mm.
 
virtual VGM::TwoVector Offset (int iz) const
 Return the polygon offset in iz-th side.
 
virtual double Scale (int iz) const
 Return the polygon scale in iz-th side.
 
- Public Member Functions inherited from BaseVGM::VExtrudedSolid
 VExtrudedSolid ()
 
virtual ~VExtrudedSolid ()
 
virtual VGM::SolidType Type () const
 Return the type of this solid.
 
virtual std::ostream & Put (std::ostream &out) const
 Put the printing of the solid parameters in the out stream.
 
- Public Member Functions inherited from VGM::IExtrudedSolid
virtual ~IExtrudedSolid ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 ExtrudedSolid ()
 
 ExtrudedSolid (const ExtrudedSolid &rhs)
 

Detailed Description

VGM implementation for Geant4 xtru solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 36 of file ExtrudedSolid.h.

Constructor & Destructor Documentation

◆ ExtrudedSolid() [1/4]

Geant4GM::ExtrudedSolid::ExtrudedSolid ( const std::string & name,
std::vector< VGM::TwoVector > polygon,
std::vector< std::vector< double > > zsections )

Standard constructor to define ExtrudedSolid from parameters

Parameters
polygonthe outline polygon
zsectionsthe vector of z-sections defined via 4 double numbers: z position (in mm), the polygon offset in x and y, the scale

Definition at line 33 of file ExtrudedSolid.cxx.

◆ ExtrudedSolid() [2/4]

Geant4GM::ExtrudedSolid::ExtrudedSolid ( G4ExtrudedSolid * xtru,
G4ReflectedSolid * reflXtru = 0 )

Standard constructor to define ExtrudedSolid from Geant4 object

Definition at line 115 of file ExtrudedSolid.cxx.

◆ ~ExtrudedSolid()

Geant4GM::ExtrudedSolid::~ExtrudedSolid ( )
virtual

Definition at line 179 of file ExtrudedSolid.cxx.

◆ ExtrudedSolid() [3/4]

Geant4GM::ExtrudedSolid::ExtrudedSolid ( )
protected

Protected default constructor

Definition at line 153 of file ExtrudedSolid.cxx.

◆ ExtrudedSolid() [4/4]

Geant4GM::ExtrudedSolid::ExtrudedSolid ( const ExtrudedSolid & rhs)
protected

Protected copy constructor

Definition at line 166 of file ExtrudedSolid.cxx.

Member Function Documentation

◆ Name()

std::string Geant4GM::ExtrudedSolid::Name ( ) const
virtual

Return the name of this solid.

Implements VGM::IExtrudedSolid.

Definition at line 279 of file ExtrudedSolid.cxx.

◆ NofVertices()

int Geant4GM::ExtrudedSolid::NofVertices ( ) const
inlinevirtual

Return the number of vertices of outline polygon.

Implements VGM::IExtrudedSolid.

Definition at line 285 of file ExtrudedSolid.cxx.

◆ Vertex()

VGM::TwoVector Geant4GM::ExtrudedSolid::Vertex ( int index) const
inlinevirtual

Return the index-th vertex of outline polygon.

Implements VGM::IExtrudedSolid.

Definition at line 291 of file ExtrudedSolid.cxx.

◆ NofZSections()

int Geant4GM::ExtrudedSolid::NofZSections ( ) const
virtual

Return the number of planes perpendicular to the z axis.

Implements VGM::IExtrudedSolid.

Definition at line 305 of file ExtrudedSolid.cxx.

◆ ZPosition()

double Geant4GM::ExtrudedSolid::ZPosition ( int iz) const
virtual

Return the z position of the iz-th plane in mm.

Implements VGM::IExtrudedSolid.

Definition at line 308 of file ExtrudedSolid.cxx.

◆ Offset()

VGM::TwoVector Geant4GM::ExtrudedSolid::Offset ( int iz) const
virtual

Return the polygon offset in iz-th side.

Implements VGM::IExtrudedSolid.

Definition at line 321 of file ExtrudedSolid.cxx.

◆ Scale()

double Geant4GM::ExtrudedSolid::Scale ( int iz) const
virtual

Return the polygon scale in iz-th side.

Implements VGM::IExtrudedSolid.

Definition at line 335 of file ExtrudedSolid.cxx.


The documentation for this class was generated from the following files: