CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDI::Division Class Reference

#include <Division.h>

Public Member Functions

DDAxes axis () const
 
 Division (const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, int nReplicas, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, double width, double offset)
 
int nReplicas () const
 
double offset () const
 
const DDLogicalPartparent () const
 
void stream (std::ostream &)
 
double width () const
 

Private Attributes

DDAxes axis_
 
int nReplicas_
 
double offset_
 
DDLogicalPart parent_
 
double width_
 

Detailed Description

Definition at line 13 of file Division.h.

Constructor & Destructor Documentation

Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  width,
double  offset 
)

Definition at line 9 of file Division.cc.

15 { }
double offset_
Definition: Division.h:47
double offset() const
Definition: Division.cc:34
int nReplicas() const
Definition: Division.cc:32
int nReplicas_
Definition: Division.h:45
DDAxes axis() const
Definition: Division.cc:31
double width() const
Definition: Division.cc:33
DDLogicalPart parent_
Definition: Division.h:43
DDAxes axis_
Definition: Division.h:44
double width_
Definition: Division.h:46
Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  offset 
)

Definition at line 17 of file Division.cc.

22 { }
double offset_
Definition: Division.h:47
double offset() const
Definition: Division.cc:34
int nReplicas() const
Definition: Division.cc:32
int nReplicas_
Definition: Division.h:45
DDAxes axis() const
Definition: Division.cc:31
DDLogicalPart parent_
Definition: Division.h:43
DDAxes axis_
Definition: Division.h:44
double width_
Definition: Division.h:46
Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
double  width,
double  offset 
)

Definition at line 24 of file Division.cc.

29 { }
double offset_
Definition: Division.h:47
double offset() const
Definition: Division.cc:34
int nReplicas_
Definition: Division.h:45
DDAxes axis() const
Definition: Division.cc:31
double width() const
Definition: Division.cc:33
DDLogicalPart parent_
Definition: Division.h:43
DDAxes axis_
Definition: Division.h:44
double width_
Definition: Division.h:46

Member Function Documentation

DDAxes Division::axis ( ) const

Definition at line 31 of file Division.cc.

References axis_.

Referenced by stream().

31 { return axis_; }
DDAxes axis_
Definition: Division.h:44
int Division::nReplicas ( ) const

Definition at line 32 of file Division.cc.

References nReplicas_.

Referenced by stream().

32 { return nReplicas_; }
int nReplicas_
Definition: Division.h:45
double Division::offset ( ) const

Definition at line 34 of file Division.cc.

References offset_.

Referenced by stream().

34 { return offset_; }
double offset_
Definition: Division.h:47
const DDLogicalPart & Division::parent ( ) const

Definition at line 35 of file Division.cc.

References parent_.

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(), 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(), 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(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), 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().

35 { return parent_; }
DDLogicalPart parent_
Definition: Division.h:43
void Division::stream ( std::ostream &  os)

Definition at line 37 of file Division.cc.

References axis(), DDAxesNames::name(), nReplicas(), offset(), parent_, DDLogicalPart::solid(), and width().

38 {
39  os << std::endl;
40  os << " LogicalPart: " << parent_ << std::endl;
41  os << " Solid: " << parent_.solid() << std::endl;
42  os << " axis: " << DDAxesNames::name( axis()) << " nReplicas: " << nReplicas()
43  << " width: " << width() << " offset: " << offset() << std::endl;
44 }
double offset() const
Definition: Division.cc:34
int nReplicas() const
Definition: Division.cc:32
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
DDAxes axis() const
Definition: Division.cc:31
double width() const
Definition: Division.cc:33
DDLogicalPart parent_
Definition: Division.h:43
static const std::string name(const DDAxes &s)
Definition: DDAxes.cc:29
double Division::width ( ) const

Member Data Documentation

DDAxes DDI::Division::axis_
private

Definition at line 44 of file Division.h.

Referenced by axis().

int DDI::Division::nReplicas_
private

Definition at line 45 of file Division.h.

Referenced by nReplicas().

double DDI::Division::offset_
private

Definition at line 47 of file Division.h.

Referenced by offset().

DDLogicalPart DDI::Division::parent_
private

Definition at line 43 of file Division.h.

Referenced by parent(), and stream().

double DDI::Division::width_
private

Definition at line 46 of file Division.h.

Referenced by width().