VGM Version 5.3
|
The abstract base class to positions of volumes. More...
#include <VPlacement.h>
Public Member Functions | |
VPlacement (VGM::IVolume *volume, VGM::IVolume *motherVolume) | |
virtual | ~VPlacement () |
virtual std::string | Name () const =0 |
Return the name of this placement. | |
virtual VGM::IVolume * | Volume () const |
Return the associated volume. | |
virtual VGM::IVolume * | Mother () const |
Return the associated mother volume. | |
virtual int | CopyNo () const =0 |
Return the copy number of this placement. | |
virtual VGM::Transform | Transformation () const =0 |
Return the 3D transformation (if simple placement) | |
virtual bool | MultiplePlacementData (VGM::Axis &axis, int &nofDivisions, double &width, double &offset, double &halfGap) const =0 |
Fill the multiple placement data if relevant and return true; return false if not multiple placement. | |
virtual std::ostream & | Put (std::ostream &out) const |
Put the printing of the placement parameters in the out stream. | |
void | SetVolume (VGM::IVolume *volume) |
Public Member Functions inherited from VGM::IPlacement | |
virtual | ~IPlacement () |
virtual PlacementType | Type () const =0 |
Return the type of this placement. | |
virtual bool | ParameterisedPlacementData (std::vector< VGM::Transform > &transforms, std::vector< VGM::IVolume * > &volumes) const =0 |
Fill the parameterised placement data if relevant and return true; return false if not parameterised placement. | |
Protected Member Functions | |
VPlacement () | |
VPlacement (const VPlacement &rhs) | |
The abstract base class to positions of volumes.
Definition at line 31 of file VPlacement.h.
BaseVGM::VPlacement::VPlacement | ( | VGM::IVolume * | volume, |
VGM::IVolume * | motherVolume ) |
Standard constructor
Definition at line 27 of file VPlacement.cxx.
|
virtual |
Definition at line 55 of file VPlacement.cxx.
|
protected |
Protected default constructor
Definition at line 43 of file VPlacement.cxx.
|
protected |
Protected copy constructor
Definition at line 49 of file VPlacement.cxx.
|
pure virtual |
Return the name of this placement.
Implements VGM::IPlacement.
Implemented in Geant4GM::Placement, and RootGM::Placement.
|
virtual |
Return the associated volume.
Implements VGM::IPlacement.
Definition at line 61 of file VPlacement.cxx.
|
virtual |
Return the associated mother volume.
Implements VGM::IPlacement.
Definition at line 68 of file VPlacement.cxx.
|
pure virtual |
Return the copy number of this placement.
Implements VGM::IPlacement.
Implemented in Geant4GM::Placement, and RootGM::Placement.
|
pure virtual |
Return the 3D transformation (if simple placement)
Implements VGM::IPlacement.
Implemented in Geant4GM::Placement, and RootGM::Placement.
|
pure virtual |
Fill the multiple placement data if relevant and return true; return false if not multiple placement.
Implements VGM::IPlacement.
Implemented in Geant4GM::Placement, and RootGM::Placement.
|
virtual |
Put the printing of the placement parameters in the out stream.
Implements VGM::IPlacement.
Definition at line 75 of file VPlacement.cxx.
void BaseVGM::VPlacement::SetVolume | ( | VGM::IVolume * | volume | ) |
Set the associated volume (Needed in a special case when a volume is created only when it is being placed)
Definition at line 112 of file VPlacement.cxx.