CMS 3D CMS Logo

List of all members | Public Member Functions
DDDivision Class Reference

#include <DDDivision.h>

Inheritance diagram for DDDivision:
DDBase< DDName, std::unique_ptr< DDI::Division > >

Public Member Functions

DDAxes axis () const
 
 DDDivision ()
 The default constructor provides an uninitialzed reference object. More...
 
 DDDivision (const DDName &name)
 Creates a refernce object referring to the appropriate XML specification. More...
 
 DDDivision (const DDName &name, const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
 Registers (creates) a reference object representing a Division. More...
 
 DDDivision (const DDName &name, const DDLogicalPart &parent, DDAxes axis, int nReplicas, double offset)
 Registers (creates) a reference object representing a Division. More...
 
 DDDivision (const DDName &name, const DDLogicalPart &parent, DDAxes axis, double width, double offset)
 Registers (creates) a reference object representing a Division. More...
 
int nReplicas () const
 
double offset () const
 
const DDLogicalPartparent () const
 
double width () const
 
- Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDI::Division > >
void create (const DDName &name, std::unique_ptr< DDI::Division > vals)
 
void create (const DDName &name)
 
 DDBase ()
 
const DDNameddname () const
 
def_type isDefined () const
 
bool isValid () const
 true, if the wrapped pointer is valid More...
 
const DDNamename () const
 
 operator bool () const
 
bool operator< (const DDBase &b) const
 
bool operator== (const DDBase &b) const
 
bool operator> (const DDBase &b) const
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep () const
 
DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep ()
 
std::string toString () const
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference val () const
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference val ()
 
virtual ~DDBase ()
 

Additional Inherited Members

- Public Types inherited from DDBase< DDName, std::unique_ptr< DDI::Division > >
using def_type = std::pair< const DDName *, bool >
 
using StoreT = DDI::Singleton< DDI::Store< DDName, std::unique_ptr< DDI::Division > > >
 
- Static Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDI::Division > >
static auto begin ()
 
static auto end ()
 

Detailed Description

Definition at line 79 of file DDDivision.h.

Constructor & Destructor Documentation

DDDivision::DDDivision ( )

The default constructor provides an uninitialzed reference object.

Definition at line 29 of file DDDivision.cc.

DDDivision::DDDivision ( const DDName name)

Creates a refernce object referring to the appropriate XML specification.

Definition at line 33 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::create().

35 {
36  create( name );
37 }
Definition: DDBase.h:10
void create(const DDName &name, std::unique_ptr< DDI::Division > vals)
Definition: DDBase.h:121
DDDivision::DDDivision ( const DDName name,
const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  width,
double  offset 
)

Registers (creates) a reference object representing a Division.

... Constructor with number of divisions and width

Definition at line 39 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::create().

46 {
47  create( name, std::make_unique<Division>( parent, axis, nReplicas, width, offset ));
48 }
Definition: DDBase.h:10
int nReplicas() const
Definition: DDDivision.cc:75
double offset() const
Definition: DDDivision.cc:87
DDAxes axis() const
Definition: DDDivision.cc:69
double width() const
Definition: DDDivision.cc:81
void create(const DDName &name, std::unique_ptr< DDI::Division > vals)
Definition: DDBase.h:121
DDDivision::DDDivision ( const DDName name,
const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  offset 
)

Registers (creates) a reference object representing a Division.

... Constructor with number of divisions

Definition at line 50 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::create().

55 {
56  create( name, std::make_unique<Division>( parent, axis, nReplicas, offset ));
57 }
int nReplicas() const
Definition: DDDivision.cc:75
double offset() const
Definition: DDDivision.cc:87
DDAxes axis() const
Definition: DDDivision.cc:69
void create(const DDName &name, std::unique_ptr< DDI::Division > vals)
Definition: DDBase.h:121
DDDivision::DDDivision ( const DDName name,
const DDLogicalPart parent,
DDAxes  axis,
double  width,
double  offset 
)

Registers (creates) a reference object representing a Division.

... Constructor with width

Definition at line 59 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::create().

64 {
65  create( name, std::make_unique<Division>( parent, axis, width, offset ));
66 }
double offset() const
Definition: DDDivision.cc:87
DDAxes axis() const
Definition: DDDivision.cc:69
double width() const
Definition: DDDivision.cc:81
void create(const DDName &name, std::unique_ptr< DDI::Division > vals)
Definition: DDBase.h:121

Member Function Documentation

DDAxes DDDivision::axis ( ) const

Definition at line 69 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::rep().

Referenced by DDDividedTrdX::makeDDTranslation(), DDDividedTrdY::makeDDTranslation(), DDDividedTrdZ::makeDDTranslation(), and DDLDivision::makeDivider().

70 {
71  return rep().axis();
72 }
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep() const
Definition: DDBase.h:80
int DDDivision::nReplicas ( ) const
double DDDivision::offset ( ) const

Definition at line 87 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::rep().

Referenced by DDDividedGeometryObject::checkNDivAndWidth(), DDDividedGeometryObject::checkOffset(), DDDividedPolyconeRho::checkParametersValidity(), DDDividedPolyhedraRho::checkParametersValidity(), DDDividedPolyhedraPhi::checkParametersValidity(), DDDividedPolyconeZ::checkParametersValidity(), DDDividedPolyhedraZ::checkParametersValidity(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedConsPhi::DDDividedConsPhi(), DDDividedConsRho::DDDividedConsRho(), DDDividedConsZ::DDDividedConsZ(), DDDividedPolyconePhi::DDDividedPolyconePhi(), DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyhedraPhi::DDDividedPolyhedraPhi(), DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraZ::DDDividedPolyhedraZ(), DDDividedTrdX::DDDividedTrdX(), DDDividedTrdY::DDDividedTrdY(), DDDividedTrdZ::DDDividedTrdZ(), DDDividedTubsPhi::DDDividedTubsPhi(), DDDividedTubsRho::DDDividedTubsRho(), DDDividedTubsZ::DDDividedTubsZ(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedTubsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedBoxX::makeDDTranslation(), DDDividedTrdX::makeDDTranslation(), DDDividedBoxY::makeDDTranslation(), DDDividedTrdY::makeDDTranslation(), DDDividedBoxZ::makeDDTranslation(), DDDividedTubsZ::makeDDTranslation(), DDDividedConsZ::makeDDTranslation(), and DDDividedTrdZ::makeDDTranslation().

88 {
89  return rep().offset();
90 }
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep() const
Definition: DDBase.h:80
const DDLogicalPart & DDDivision::parent ( ) const

Definition at line 93 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::rep().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), DDDividedGeometryObject::checkNDivAndWidth(), DDDividedPolyhedraRho::checkParametersValidity(), DDDividedPolyconeRho::checkParametersValidity(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdY::checkParametersValidity(), DDDividedPolyhedraPhi::checkParametersValidity(), DDDividedTrdZ::checkParametersValidity(), DDDividedPolyconeZ::checkParametersValidity(), DDDividedPolyhedraZ::checkParametersValidity(), DDDividedGeometryObject::checkParametersValidity(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedConsPhi::DDDividedConsPhi(), DDDividedConsRho::DDDividedConsRho(), DDDividedConsZ::DDDividedConsZ(), DDDividedPolyconePhi::DDDividedPolyconePhi(), DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyhedraPhi::DDDividedPolyhedraPhi(), DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraZ::DDDividedPolyhedraZ(), DDDividedTrdX::DDDividedTrdX(), DDDividedTrdY::DDDividedTrdY(), DDDividedTrdZ::DDDividedTrdZ(), DDDividedTubsPhi::DDDividedTubsPhi(), DDDividedTubsRho::DDDividedTubsRho(), DDDividedTubsZ::DDDividedTubsZ(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), DDDividedGeometryObject::execute(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), DDDividedTubsRho::getMaxParameter(), DDDividedBoxX::getMaxParameter(), DDDividedConsRho::getMaxParameter(), DDDividedPolyhedraRho::getMaxParameter(), DDDividedTrdX::getMaxParameter(), DDDividedPolyconeRho::getMaxParameter(), DDDividedConsPhi::getMaxParameter(), DDDividedTubsPhi::getMaxParameter(), DDDividedBoxY::getMaxParameter(), DDDividedPolyconePhi::getMaxParameter(), DDDividedTrdY::getMaxParameter(), DDDividedPolyhedraPhi::getMaxParameter(), DDDividedTubsZ::getMaxParameter(), DDDividedBoxZ::getMaxParameter(), DDDividedConsZ::getMaxParameter(), DDDividedTrdZ::getMaxParameter(), DDDividedPolyconeZ::getMaxParameter(), DDDividedPolyhedraZ::getMaxParameter(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), DDDividedTubsRho::makeDDLogicalPart(), DDDividedBoxX::makeDDLogicalPart(), DDDividedConsRho::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedGeometryObject::makeDDLogicalPart(), DDDividedBoxY::makeDDLogicalPart(), DDDividedTubsPhi::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDDividedTubsZ::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedBoxZ::makeDDLogicalPart(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), DDDividedTubsPhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDDividedBoxX::makeDDTranslation(), DDDividedTrdX::makeDDTranslation(), DDDividedBoxY::makeDDTranslation(), DDDividedTrdY::makeDDTranslation(), DDDividedTubsZ::makeDDTranslation(), DDDividedConsZ::makeDDTranslation(), DDDividedBoxZ::makeDDTranslation(), DDDividedTrdZ::makeDDTranslation(), DDDividedPolyconeZ::makeDDTranslation(), DDDividedPolyhedraZ::makeDDTranslation(), DDLDivision::makeDivider(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().

94 {
95  return rep().parent();
96 }
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep() const
Definition: DDBase.h:80
double DDDivision::width ( ) const

Definition at line 81 of file DDDivision.cc.

References DDBase< DDName, std::unique_ptr< DDI::Division > >::rep().

Referenced by Vispa.Main.MainWindow.MainWindow::_saveIni(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), DDDividedPolyconeZ::checkParametersValidity(), Vispa.Gui.VispaWidget.VispaWidget::contentRect(), DDDividedBoxX::DDDividedBoxX(), DDDividedBoxY::DDDividedBoxY(), DDDividedBoxZ::DDDividedBoxZ(), DDDividedConsPhi::DDDividedConsPhi(), DDDividedConsRho::DDDividedConsRho(), DDDividedConsZ::DDDividedConsZ(), DDDividedGeometryObject::DDDividedGeometryObject(), DDDividedPolyconePhi::DDDividedPolyconePhi(), DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyhedraPhi::DDDividedPolyhedraPhi(), DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraZ::DDDividedPolyhedraZ(), DDDividedTrdX::DDDividedTrdX(), DDDividedTrdY::DDDividedTrdY(), DDDividedTrdZ::DDDividedTrdZ(), DDDividedTubsPhi::DDDividedTubsPhi(), DDDividedTubsRho::DDDividedTubsRho(), DDDividedTubsZ::DDDividedTubsZ(), Vispa.Gui.VispaWidget.VispaWidget::defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget::drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget::drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget::imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView::resizeEvent(), Vispa.Views.PropertyView.PropertyView::sectionResized(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Main.MainWindow.MainWindow::updateStartupScreenGeometry().

82 {
83  return rep().width();
84 }
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Division > >::reference rep() const
Definition: DDBase.h:80