CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
Vispa.Gui.VispaWidget.VispaWidget Class Reference
Inheritance diagram for Vispa.Gui.VispaWidget.VispaWidget:
Vispa.Gui.ZoomableWidget.ZoomableWidget Vispa.Gui.Zoomable.Zoomable Vispa.Gui.ConnectableWidget.ConnectableWidget Vispa.Gui.MenuWidget.MenuWidget Vispa.Gui.PortWidget.PortWidget Vispa.Main.StartupScreen.StartupScreen Vispa.Views.LineDecayView.ParticleWidget Vispa.Gui.WidgetContainer.WidgetContainer Vispa.Gui.PortWidget.SinkPort Vispa.Gui.PortWidget.SourcePort Vispa.Views.BoxDecayView.BoxDecayContainer Vispa.Views.LineDecayView.LineDecayContainer

Public Member Functions

def __init__
 
def autosize
 
def autosizeEnabled
 
def bodyWidget
 
def boundingRect
 
def colorHeaderBackgroundEnabled
 
def contentRect
 
def defineArrowBackgroundShape
 
def defineCircleBackgroundShape
 
def defineDistances
 
def defineRectBackgroundShape
 
def defineRoundRectBackgroundShape
 
def delete
 
def distances
 
def dragReferencePoint
 
def dragWidget
 
def drawBody
 
def drawHeaderBackground
 
def drawImage
 
def drawTextField
 
def drawTitle
 
def enableAutopositionizeWhenZooming
 
def enableAutosizing
 
def enableBackgroundGradient
 
def enableColorHeaderBackground
 
def getDistance
 
def height
 
def imageRectF
 
def imageSizeF
 
def isDeletable
 
def isDragable
 
def isSelectable
 
def isSelected
 
def isTitlePoint
 
def isUseBackgroundGradientEnabled
 
def keyPressEvent
 
def mouseDoubleClickEvent
 
def mouseMoveEvent
 
def mousePressEvent
 
def mouseReleaseEvent
 
def move
 
def noRearangeContent
 
def paint
 
def paintEvent
 
def penColor
 
def previousDragPosition
 
def rearangeContent
 
def resetMouseDragOffset
 
def resize
 
def scale
 
def scheduleCalculateDistances
 
def scheduleRearangeContent
 
def select
 
def setArrowShape
 
def setBodyWidget
 
def setColors
 
def setDeletable
 
def setDragable
 
def setDragReferencePoint
 
def setImage
 
def setMaximumSize
 
def setMinimumSize
 
def setPreviousDragPosition
 
def setSelectable
 
def setShape
 
def setText
 
def setTextFieldAutosizeFont
 
def setTextFieldAutotruncateText
 
def setTitle
 
def setZoom
 
def showEvent
 
def sizeHint
 
def text
 
def textField
 
def textFieldIsSet
 
def title
 
def titleField
 
def titleIsSet
 
def unzoomedX
 
def unzoomedY
 
def width
 
- Public Member Functions inherited from Vispa.Gui.ZoomableWidget.ZoomableWidget
def __init__
 
def exportImage
 
def setZoom
 
- Public Member Functions inherited from Vispa.Gui.Zoomable.Zoomable
def __init__
 
def decrementZoom
 
def incrementZoom
 
def setZoom
 
def zoom
 
def zoomFactor
 

Public Attributes

 fillColor1
 
 fillColor2
 
 framePenColor
 
 HEIGHT
 
 WIDTH
 

Static Public Attributes

 ARROW_SHAPE = None
 
int ARROW_SHAPE_BOTTOM = 2
 
int ARROW_SHAPE_LEFT = 1
 
int ARROW_SHAPE_RIGHT = 3
 
int ARROW_SHAPE_TOP = 0
 
int ARROW_SIZE = 30
 
 AUTOPOSITIONIZE_WHEN_ZOOMING_FLAG = True
 
 AUTOSIZE = False
 
 AUTOSIZE_KEEP_ASPECT_RATIO = True
 
string BACKGROUND_SHAPE = 'RECT'
 
int BOTTOM_MARGIN = 5
 
 COLOR_HEADER_BACKGROUND_FLAG = True
 
tuple FILL_COLOR1 = QColor(188, 215, 241)
 
tuple FILL_COLOR2 = QColor(242, 230, 242)
 
 FOCUSPOLICY = Qt.StrongFocus
 
int HEIGHT = 80
 
int HORIZONTAL_INNER_MARGIN = 5
 
int LEFT_MARGIN = 5
 
int MINIMUM_HEIGHT = 0
 
int MINIMUM_WIDTH = 30
 
tuple PEN_COLOR = QColor(128, 186, 224)
 
int RIGHT_MARGIN = 5
 
int ROUNDRECT_RADIUS = 30
 
tuple SELECT_COLOR = QColor('darkblue')
 
 SELECTABLE_FLAG = True
 
int SELECTED_FRAME_WIDTH = 2
 
 TEXTFIELD_AUTOSIZE_FONT_FLAG = False
 
 TEXTFIELD_AUTOTRUNCATE_TEXT_FLAG = False
 
 TEXTFIELD_FLAGS = Qt.TextWordWrap
 
int TEXTFIELD_FONTSIZE = 12
 
int TEXTFIELD_FONTSIZE_MAX = 20
 
int TEXTFIELD_FONTSIZE_MIN = 2
 
tuple TITLE_COLOR = QColor(Qt.white)
 
int TITLEFIELD_FONTSIZE = 12
 
int TOP_MARGIN = 5
 
 USE_BACKGROUND_GRADIENT_FLAG = True
 
int VERTICAL_INNTER_MARGIN = 5
 
int WIDTH = 100
 

Private Member Functions

def _initTextField
 
def _initTitleField
 

Private Attributes

 _arrowShape
 
 _autopositioninzeWhenZoomingFlag
 
 _autosizeFlag
 
 _autosizeKeepAspectRatioFlag
 
 _backgroundGradientEnabledFlag
 
 _backgroundShape
 
 _backgroundShapePath
 
 _bodyWidget
 
 _colorHeaderBackgroundFlag
 
 _deletableFlag
 
 _distances
 
 _distancesHaveToBeRecalculatedFlag
 
 _distancesLastScale
 
 _distancesLastScaleHeight
 
 _distancesLastScaleWidth
 
 _dragableFlag
 
 _dragMouseXrel
 
 _dragMouseYrel
 
 _image
 
 _noRearangeContentFlag
 
 _previusDragPosition
 
 _rearangeContentFlag
 
 _scale
 
 _scaleHeight
 
 _scaleWidth
 
 _selectableFlag
 
 _selectedFlag
 
 _textField
 
 _titleField
 
 _unzoomedPositionX
 
 _unzoomedPositionY
 

Detailed Description

Class supporting random shapes, title and text field.

Title and text field content are stored in TextField objects.
You can influence the behavior of the widget by severals flags.
If you want the widget's size to fit the content size (increases / decreases widget) use enableAutosizing().
You can also chose the decrease the text field's font size, if text does not fit in. See setTextFieldAutosizeFont().
Additionally the text can be truncated instead using setTextFieldAutotruncateText().   

Definition at line 337 of file VispaWidget.py.

Constructor & Destructor Documentation

def Vispa.Gui.VispaWidget.VispaWidget.__init__ (   self,
  parent = None 
)
Constructor

Definition at line 415 of file VispaWidget.py.

416  def __init__(self, parent=None):
417  """ Constructor
418  """
419  #print "VispaWidget.__init__()"
420  self._autosizeFlag = False
422  self._titleField = None
426  self._scale = 1
427  self._scaleWidth = 1
428  self._scaleHeight = 1
429 
430  self.framePenColor = None
431  self.fillColor1 = None
432  self.fillColor2 = None
433 
434  self._textField = None
435  self._selectableFlag = False
436  self._selectedFlag = False
437  self._deletableFlag = True
438  self._dragableFlag = True
439  self._dragMouseXrel = 0
440  self._dragMouseYrel = 0
441 
442  self._distances = None
449 
452  self._arrowShape = None
453 
454  self._unzoomedPositionX = 0 # These values are set by the overridden move() function.
455  self._unzoomedPositionY = 0 # With these values the widgets position can be scaled when zooming.
457 
458  self._bodyWidget = None
459  self._image = None
460 
461  ZoomableWidget.__init__(self, parent)
462 
463  self.setColors(self.PEN_COLOR, self.FILL_COLOR1, self.FILL_COLOR2)
464  self.setSelectable(self.SELECTABLE_FLAG)
465  self.setShape(self.BACKGROUND_SHAPE)
466  self.setArrowShape(self.ARROW_SHAPE)
472 
473  self.noRearangeContent(False)
475  self._previusDragPosition = self.pos()

Member Function Documentation

def Vispa.Gui.VispaWidget.VispaWidget._initTextField (   self)
private

Definition at line 700 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget._textField, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_AUTOSIZE_FONT_FLAG, Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_AUTOTRUNCATE_TEXT_FLAG, Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FLAGS, Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE, Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE_MAX, and Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE_MIN.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.setText(), Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutosizeFont(), and Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutotruncateText().

701  def _initTextField(self):
702  if self._textField == None:
703  self._textField = TextField()
704  self._textField.setFontSizeRange(self.TEXTFIELD_FONTSIZE_MIN, self.TEXTFIELD_FONTSIZE_MAX)
705  self._textField.setDefaultWidth(self.getDistance('textFieldWidth', 1, True))
706  self._textField.setDefaultHeight(self.getDistance('textFieldHeight', 1, True))
707  self._textField.setDefaultFontSize(self.TEXTFIELD_FONTSIZE)
708  self._textField.setAutosizeFont(self.TEXTFIELD_AUTOSIZE_FONT_FLAG)
709  self._textField.setAutotruncate(self.TEXTFIELD_AUTOTRUNCATE_TEXT_FLAG)
710  self._textField.setOutputFlags(self.TEXTFIELD_FLAGS)
711  self._textField.setAutoscale(self._autosizeFlag, self._autosizeKeepAspectRatioFlag)
def Vispa.Gui.VispaWidget.VispaWidget._initTitleField (   self)
private
Initializes title field.

Sets default flags for title field.

Definition at line 662 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._titleField, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.MenuWidget.MenuWidget.TITLE_COLOR, Vispa.Gui.PortWidget.SinkPort.TITLE_COLOR, Vispa.Gui.PortWidget.SourcePort.TITLE_COLOR, Vispa.Gui.VispaWidget.VispaWidget.TITLE_COLOR, Vispa.Gui.VispaWidget.VispaWidget.titleField(), Vispa.Gui.PortWidget.PortWidget.TITLEFIELD_FONTSIZE, and Vispa.Gui.VispaWidget.VispaWidget.TITLEFIELD_FONTSIZE.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.setTitle().

663  def _initTitleField(self):
664  """ Initializes title field.
665 
666  Sets default flags for title field.
667  """
668  if self._titleField == None:
669  self._titleField = TextField()
670  self._titleField.setDefaultWidth(self.getDistance('titleFieldWidth', 1, True))
671  self._titleField.setDefaultFontSize(self.TITLEFIELD_FONTSIZE)
672  self._titleField.setAutotruncate(False)
673  #self._titleField.setAutoscale(self._autosizeFlag, self._autosizeKeepAspectRatioFlag)
674  self.titleField().setAutoscale(True, False)
675  self._titleField.setPenColor(self.TITLE_COLOR)
def Vispa.Gui.VispaWidget.VispaWidget.autosize (   self,
  skipSizeHint = False 
)
Calculates scale factors and resizes widget accordingly.

Calculates by which factor width and height of this widget should be scaled
depending on the content of the widget.
If skipSizeHint is True only the resize part is performed.

Definition at line 832 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.MenuWidget.MenuWidget.HEIGHT, Vispa.Gui.PortWidget.PortWidget.HEIGHT, cscdqm::StripClusterFitData.height(), GifDisplay.height, Vispa.Gui.VispaWidget.TextField.HEIGHT, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), Vispa.Gui.VispaWidget.VispaWidget.HEIGHT, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min, Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.MenuWidget.MenuWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), DDDWorldObserver< Event >.update(), PTStatistics.update(), PixelTrackFilter.update(), SaveSimTrack.update(), HIPixelTrackFilter.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), HIProtoTrackFilter.update(), GenericMVAComputerCache.update(), KalmanAlignmentMetricsUpdator.update(), reco::KalmanGhostTrackUpdater.update(), PrintTrackNumberAction.update(), HICMuonUpdator.update(), SimpleMetricsUpdator.update(), MSLayersAtAngle.update(), DDG4ProductionCuts.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), MultiMetricsUpdator.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), FedTimingTask.update(), VpspScanTask.update(), ErrorCorrelation.update(), GsfMultiStateUpdator.update(), OptoScanTask.update(), PedestalsTask.update(), DummyMetricsUpdator.update(), ApvTimingHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), CalibrationScanTask.update(), CalibrationTask.update(), LatencyTask.update(), FineDelayTask.update(), MonopoleSteppingAction.update(), CurrentAlignmentKFUpdator.update(), RHStopTracer.update(), FastFedCablingHistosUsingDb.update(), FedCablingTask.update(), PrintSensitive.update(), SamplingHistosUsingDb.update(), TkPixelMeasurementDet.update(), KFStrip1DUpdator.update(), KFStripUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), NoiseTask.update(), PedsOnlyTask.update(), EcalUnpackerWorkerBase.update(), CalibrationHistosUsingDb.update(), KFSwitchingUpdator.update(), ChildUpdator.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), FineDelayHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintMaterialBudgetInfo.update(), MeasurementTracker.update(), KinematicConstrainedVertexUpdator.update(), ora::PVectorUpdater.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), ESUnpackerWorker.update(), OnDemandMeasurementTracker.update(), BinomialProbability.update(), StoreSecondary.update(), TrackingMaterialProducer.update(), MuonServiceProxy.update(), GraphPath< N, E >.update(), EcalSimHitsValidProducer.update(), MaterialBudgetForward.update(), EcalUnpackerWorker.update(), funct::Master< F >.update(), GflashG4Watcher.update(), KFSwitching1DUpdator.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfJob * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), Observer< const EndOfRun * >.update(), Observer< const T * >.update(), Observer< const DDDWorld * >.update(), Observer< const BeginOfRun * >.update(), pat::CandidateSummaryTable::Record.update(), CheckSecondary.update(), Observer< T >.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), KFUpdator.update(), HLTMonBTagClient.update(), HcaluLUTTPGCoder.update(), CaloTrkProcessing.update(), HcalTestAnalysis.update(), TkStripMeasurementDet.update(), pos::PixelConfig.update(), jptJetAnalysis::TrackPropagatorToCalo.update(), ora::IRelationalUpdater.update(), FWJobMetadataManager.update(), KalmanAlignmentUserVariables.update(), BasicMultiTrajectoryState.update(), PhysicsTools::TreeReader.update(), TrackingVerboseAction.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), FiberSD.update(), ora::QueryableVectorUpdater.update(), SimG4HcalValidation.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), FWParameterSetterBase.update(), MuonTrajectoryUpdator.update(), simwatcher::BeginOfTrackCounter.update(), progressbar.Timer.update(), TotemTestGem.update(), PLTSensitiveDetector.update(), DQMOldReceiver.update(), MuonUpdatorAtVertex.update(), TkAccumulatingSensitiveDetector.update(), ora::OraPtrUpdater.update(), jptJetAnalysis::StripSignalOverNoiseCalculator.update(), LaserAlignmentSimulation.update(), HcalTB02Analysis.update(), ora::PrimitiveUpdater.update(), ora::UniqueRefUpdater.update(), ora::CArrayUpdater.update(), ora::OraReferenceUpdater.update(), BTagPerformanceAnalyzerOnData.update, ApvAnalysisFactory.update(), HcalTB06Analysis.update(), progressbar.WidgetHFill.update(), TotemSD.update(), ora::ObjectUpdater.update(), ora::BlobUpdater.update(), MeasurementTrackerImpl.update(), StMeasurementDetSet.update(), MuonSensitiveDetector.update(), HcalForwardAnalysis.update(), ora::InlineCArrayUpdater.update(), SimTracer.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), ora::STLContainerUpdater.update(), DynamicTruncation.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< T >.update(), EcalTBH4Trigger.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), CaloSD.update(), BTagPerformanceAnalyzerMC.update, BscSD.update(), edm::service::SimpleMemoryCheck.update(), edm::BMixingModule.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), ora::Container.update(), BetafuncEvtVtxGenerator.update(), PhysicsTools::TreeReader::Value.update(), progressbar.Bar.update(), FP420SD.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), HLTScalersClient::CountLSFifo_t.update(), CastorShowerLibraryMaker.update(), MonitorElement.update(), ora::Database.update(), StandAloneMuonFilter.update(), DTRecSegment2D.update(), DQMNet::Peer.update, FWPSetTableManager.update(), CommissioningTask.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, G4StepStatistics.update(), FWLiteESRecordWriterAnalyzer.update(), python.seqvaluedict.seqdict.update(), FP420Test.update(), Folder.update(), BscTest.update(), TrajectoryStateOnSurface.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), edmNew::DetSetVector< T >.update(), evf::iDie::lsStat.update(), Random_struct.width, TmModule.width, Vispa.Gui.PortWidget.PortWidget.WIDTH, OpenBounds.width(), Vispa.Gui.VispaWidget.TextField.WIDTH, SimpleDiskBounds.width(), GifDisplay.width, PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, SimpleCylinderBounds.width(), Bounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), LA_Filler_Fitter.WIDTH, FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), btag::SimpleMatrix< T >.width, function::ZMuMuFunction.width, lhef::SimpleMatrix< T >.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, Vispa.Gui.VispaWidget.VispaWidget.WIDTH, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.autolayoutPostprocess(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse(), and Vispa.Gui.WidgetContainer.WidgetContainer.widgetDragged().

833  def autosize(self, skipSizeHint=False):
834  """ Calculates scale factors and resizes widget accordingly.
835 
836  Calculates by which factor width and height of this widget should be scaled
837  depending on the content of the widget.
838  If skipSizeHint is True only the resize part is performed.
839  """
840  #logging.debug(self.__class__.__name__ +": autosize()")
841  if not skipSizeHint:
842  neededSpace = self.sizeHint()
843  neededWidth = neededSpace.width()
844  neededHeight = neededSpace.height()
845 
846  self._scaleWidth = 1.0 * neededWidth / self.WIDTH
847  self._scaleHeight = 1.0 * neededHeight / self.HEIGHT
848 
850  self._scaleWidth = min(self._scaleWidth, self._scaleHeight)
851  self._scaleHeight = self._scaleWidth
852 
853  if self._bodyWidget:
854  self._bodyWidget.move(self.getDistance("contentStartX"), self.getDistance("contentStartY"))
855 
856  ZoomableWidget.resize(self, self.width(), self.height())
857  self.update()
858  # update() is sometimes required
859  # if content has changed but size did not.
860  # user can expect repainting after calling autosize()? TODO: think about this
#define min(a, b)
Definition: mlp_lapack.h:161
def Vispa.Gui.VispaWidget.VispaWidget.autosizeEnabled (   self)
Returns True if auto resizing is enabled.

See enableAutosizing().

Definition at line 581 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.widgetDragged().

582  def autosizeEnabled(self):
583  """ Returns True if auto resizing is enabled.
584 
585  See enableAutosizing().
586  """
587  return self._autosizeFlag
def Vispa.Gui.VispaWidget.VispaWidget.bodyWidget (   self)
Returns body widget if there is one or None otherwise.

Definition at line 1484 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget.

1485  def bodyWidget(self):
1486  """ Returns body widget if there is one or None otherwise.
1487  """
1488  return self._bodyWidget
def Vispa.Gui.VispaWidget.VispaWidget.boundingRect (   self)

Definition at line 1470 of file VispaWidget.py.

References cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, Random_struct.width, TmModule.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, RooCB.width, GeneralNSurfaceDelimitedBounds.width(), Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), function::ZMuMuFunction.width, lhef::SimpleMatrix< T >.width, btag::SimpleMatrix< T >.width, FWColumnLabelCellRenderer.width(), function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), svgfig.Dots.width, Quad.x, RPFlatParams::EP.x, reco::MuonRPCHitMatch.x, gen::PdfInfo.x, reco::MuonChamberMatch.x, EnergyDepositUnit.x(), SimplePixel.x, AmplitudeSegmentFP420.x(), lumiregperbunch.bsmeas.x, TkLayerMap::XYbin.x, QuantileCalculator::point.x, SignalPoint.x(), TwoBodyDecayParameters.x, reco::MuonMETCorrectionData.x(), cmsmath::MinimizerContext.x, Geom::Polar2Cartesian< T >.x(), SiStripFineDelayTOF.x(), EnergySegmentFP420.x(), RooCB.x, HFShowerPhoton.x(), BinomialProbHelper.x(), reco::MuonSegmentMatch.x, SiPixelCluster::Pixel.x, ClusterShape.x, EcalTBHodoscopeRecInfoAlgo::BeamTrack.x, RHStopTracer::StopPoint.x, VerticalInterpHistPdf.x(), BeamSpotFakeConditions.x, PGlobalSimHit::Vtx.x, RooPower.x, QcdLowPtDQM::Pixel.x(), TotemTestHistoClass::Hit.x, Point2DBase< Scalar, LocalTag >.x(), Point2DBase< U, FrameTag >.x(), Vector2DBase< U, FrameTag >.x(), Point2DBase< T, Frame >.x(), Vector2DBase< U, Frame >.x(), Vector2DBase< T, Frame >.x(), Point2DBase< U, Frame >.x(), Point2DBase< T, FrameTag >.x(), PV2DBase< T, PVType, FrameType >.x(), Vector2DBase< T, FrameTag >.x(), PV2DBase< float, PointTag, LocalTag >.x(), PV2DBase< T, VectorTag, FrameTag >.x(), PV2DBase< float, VectorTag, GlobalTag >.x(), PV2DBase< T, PointTag, FrameTag >.x(), PV2DBase< double, PointTag, LocalTag >.x(), mathSSE::Rot3< Scalar >.x(), mathSSE::Rot3< double >.x(), mathSSE::Rot3< float >.x(), mathSSE::Rot3< align::Scalar >.x(), Rot3< T >.x(), mathSSE::Rot3< T >.x(), Geom::Cylindrical2Cartesian< T >.x(), HcalForwardAnalysis::Photon.x, ParabolaFit::Point.x, BeamSpotOnline.x(), VertexType.x, MuScleFitMuon.x(), RooCMSShape.x, Pixinfo.x, funct::GaussLegendreIntegrator.x, RooDoubleCB.x, reco::CastorCell.x(), Hit.x, Basic2DVector< U >.x(), Basic2DVector< T >.x(), Basic2DVector< double >.x(), Basic2DVector< float >.x(), Basic2DVector< TmpType >.x(), PV3DBase< align::Scalar, PointTag, GlobalTag >.x(), PV3DBase< float, PointTag, GlobalTag >.x(), PV3DBase< long double, PointTag, GlobalTag >.x(), Point3DBase< U, LocalTag >.x(), Vector3DBase< U, LocalTag >.x(), Point3DBase< U, GlobalTag >.x(), Vector3DBase< U, GlobalTag >.x(), Point3DBase< U, FrameTag >.x(), Vector3DBase< U, FrameTag >.x(), Point3DBase< T, Frame >.x(), Vector3DBase< U, Frame >.x(), Vector3DBase< T, Frame >.x(), Point3DBase< U, Frame >.x(), PV3DBase< T, PVType, FrameType >.x(), Vector3DBase< T, FrameTag >.x(), PV3DBase< float, VectorTag, LocalTag >.x(), PV3DBase< float, PointTag, LocalTag >.x(), PV3DBase< Scalar, VectorTag, GlobalTag >.x(), PV3DBase< T, PointTag, GlobalTag >.x(), PV3DBase< T, VectorTag, FrameTag >.x(), PV3DBase< Scalar, PointTag, GlobalTag >.x(), PV3DBase< T, PointTag, FrameTag >.x(), Clust.x, PrimaryVertexAnalyzer::simPrimaryVertex.x, python.rootplot.utilities.Hist2D.x, reco::BeamSpot.x(), Geom::Spherical2Cartesian< T >.x(), Basic3DVector< long double >.x(), QcdLowPtDQM::Vertex.x(), PixelUnpackingRegions::Module.x, SiPixelCluster.x(), Rechit.x, reco::CastorEgamma.x(), reco::CastorJet.x(), MoveFlatParamsToDB.x, HcalForwardAnalysis.x, RooFermi.x, hit.x, Basic3DVector< U >.x(), Basic3DVector< T >.x(), Basic3DVector< double >.x(), Basic3DVector< Scalar >.x(), Basic3DVector< float >.x(), Basic3DVector< align::Scalar >.x(), Geom::Cartesian2Cartesian3D< T >.x(), stAPVGain.x, reco::Vertex.x(), reco::CastorTower.x(), reco::CastorCluster.x(), cmsmath::OneDimMinimizer.x(), GaussianSumUtilities1D::FinderState.x, PrimaryVertexAnalyzer4PU::simPrimaryVertex.x, VertexClassifier::GeneratedPrimaryVertex.x, RooRelBW.x, funct::GaussIntegrator.x, SiPixelDigitizerAlgorithm::EnergyDepositUnit.x(), XHistogram::position.x, mathSSE::Rot2< double >.x(), Rot2< T >.x(), mathSSE::Rot2< T >.x(), MuonGeometryArrange::MGACollection.x, python.rootplot.utilities.Hist.x, PrimaryVertexAnalyzer4PU::SimEvent.x, TrackClassifier::GeneratedPrimaryVertex.x, SiPixelDigitizerAlgorithm::SignalPoint.x(), reco::CaloCluster.x(), lhef::HEPEUP::FiveVector.x, EPOS::EPOS_Wrapper.x(), BeamSpotOnlineRaw_v4.x, RooLevelledExp.x, RawParticle.x(), MuScleFitUtils.x, perftools::detail::Hist.x, TkRotation< T >.x(), TkRotation< U >.x(), TkRotation< Scalar >.x(), TkRotation< double >.x(), TkRotation< float >.x(), TkRotation< align::Scalar >.x(), hitfit::Fourvec_Event.x(), TkRotation2D< T >.x(), TkRotation2D< double >.x(), PDF.x, svgfig.Plot.x, svgfig.Frame.x, Vispa.Views.LineDecayView.DecayNode.x(), PMuonSimHit::Vtx.x, PTrackerSimHit::Vtx.x, svgfig.Text.x, svgfig.TextGlobal.x, svgfig.VLine.x, Quad.y, RPFlatParams::EP.y, EnergyDepositUnit.y(), reco::MuonChamberMatch.y, TkLayerMap::XYbin.y, SimplePixel.y, AmplitudeSegmentFP420.y(), lumiregperbunch.bsmeas.y, SignalPoint.y(), TwoBodyDecayParameters.y, reco::MuonMETCorrectionData.y(), Geom::Polar2Cartesian< T >.y(), EnergySegmentFP420.y(), SiStripFineDelayTOF.y(), HFShowerPhoton.y(), ClusterShape.y, SiPixelCluster::Pixel.y, reco::MuonSegmentMatch.y, RHStopTracer::StopPoint.y, BeamSpotFakeConditions.y, PGlobalSimHit::Vtx.y, QcdLowPtDQM::Pixel.y(), TotemTestHistoClass::Hit.y, PV2DBase< T, VectorTag, FrameTag >.y(), PV2DBase< float, VectorTag, GlobalTag >.y(), PV2DBase< double, PointTag, LocalTag >.y(), Vector2DBase< T, Frame >.y(), PV2DBase< float, PointTag, LocalTag >.y(), Point2DBase< U, FrameTag >.y(), Vector2DBase< U, Frame >.y(), Point2DBase< Scalar, LocalTag >.y(), Vector2DBase< U, FrameTag >.y(), PV2DBase< T, PVType, FrameType >.y(), Point2DBase< T, Frame >.y(), Vector2DBase< T, FrameTag >.y(), PV2DBase< T, PointTag, FrameTag >.y(), Point2DBase< T, FrameTag >.y(), Point2DBase< U, Frame >.y(), mathSSE::Rot3< T >.y(), mathSSE::Rot3< float >.y(), mathSSE::Rot3< Scalar >.y(), mathSSE::Rot3< align::Scalar >.y(), Rot3< T >.y(), mathSSE::Rot3< double >.y(), ParabolaFit::Point.y, HcalForwardAnalysis::Photon.y, Geom::Cylindrical2Cartesian< T >.y(), BeamSpotOnline.y(), VertexType.y, MuScleFitMuon.y(), Pixinfo.y, Hit.y, Vector3DBase< T, FrameTag >.y(), PV3DBase< align::Scalar, PointTag, GlobalTag >.y(), PV3DBase< T, PointTag, FrameTag >.y(), PV3DBase< T, PointTag, GlobalTag >.y(), PV3DBase< T, VectorTag, FrameTag >.y(), PV3DBase< long double, PointTag, GlobalTag >.y(), PV3DBase< Scalar, PointTag, GlobalTag >.y(), Point3DBase< U, Frame >.y(), PV3DBase< float, PointTag, LocalTag >.y(), PV3DBase< float, PointTag, GlobalTag >.y(), Vector3DBase< U, Frame >.y(), Point3DBase< U, FrameTag >.y(), Vector3DBase< U, FrameTag >.y(), Point3DBase< U, GlobalTag >.y(), Vector3DBase< U, GlobalTag >.y(), PV3DBase< T, PVType, FrameType >.y(), Point3DBase< U, LocalTag >.y(), PV3DBase< Scalar, VectorTag, GlobalTag >.y(), Vector3DBase< T, Frame >.y(), Point3DBase< T, Frame >.y(), Vector3DBase< U, LocalTag >.y(), PV3DBase< float, VectorTag, LocalTag >.y(), Basic2DVector< double >.y(), Basic2DVector< TmpType >.y(), reco::CastorCell.y(), Basic2DVector< float >.y(), Basic2DVector< U >.y(), Basic2DVector< T >.y(), PrimaryVertexAnalyzer::simPrimaryVertex.y, Clust.y, python.rootplot.utilities.Hist2D.y, reco::BeamSpot.y(), Geom::Spherical2Cartesian< T >.y(), QcdLowPtDQM::Vertex.y(), Basic3DVector< long double >.y(), PixelUnpackingRegions::Module.y, Rechit.y, reco::CastorJet.y(), reco::CastorEgamma.y(), HcalForwardAnalysis.y, ProtoJet.y(), SiPixelCluster.y(), MoveFlatParamsToDB.y, hit.y, Geom::Cartesian2Cartesian3D< T >.y(), Basic3DVector< U >.y(), Basic3DVector< T >.y(), Basic3DVector< double >.y(), Basic3DVector< float >.y(), Basic3DVector< align::Scalar >.y(), Basic3DVector< Scalar >.y(), stAPVGain.y, reco::Vertex.y(), reco::CastorTower.y(), reco::Particle.y(), reco::CastorCluster.y(), GaussianSumUtilities1D::FinderState.y, reco::Candidate.y(), PrimaryVertexAnalyzer4PU::simPrimaryVertex.y, VertexClassifier::GeneratedPrimaryVertex.y, SiPixelDigitizerAlgorithm::EnergyDepositUnit.y(), XHistogram::position.y, LeafRefCandidateT< T >.y(), reco::LeafRefCandidateT< T >.y(), Rot2< T >.y(), mathSSE::Rot2< T >.y(), mathSSE::Rot2< double >.y(), MuonGeometryArrange::MGACollection.y, python.rootplot.utilities.Hist.y, PrimaryVertexAnalyzer4PU::SimEvent.y, TrackClassifier::GeneratedPrimaryVertex.y, python.rootplot.root2matplotlib.Hist.y, reco::LeafCandidate.y(), CandidateWithRef< Ref >.y(), SiPixelDigitizerAlgorithm::SignalPoint.y(), reco::CaloCluster.y(), EPOS::EPOS_Wrapper.y(), BeamSpotOnlineRaw_v4.y, ParticleBase.y(), RawParticle.y(), TkRotation< float >.y(), TkRotation< T >.y(), TkRotation< Scalar >.y(), TkRotation< U >.y(), TkRotation< double >.y(), TkRotation< align::Scalar >.y(), Exhume::CrossSection.y, TkRotation2D< double >.y(), TkRotation2D< T >.y(), svgfig.Plot.y, svgfig.Frame.y, Vispa.Views.LineDecayView.DecayNode.y(), PMuonSimHit::Vtx.y, svgfig.Curve.Sample.y, PTrackerSimHit::Vtx.y, svgfig.Text.y, svgfig.TextGlobal.y, and svgfig.HLine.y.

Referenced by Vispa.Views.LineDecayView.DecayNode.containsPoint(), and Vispa.Views.LineDecayView.DecayNode.move().

1471  def boundingRect(self):
1472  return QRect(self.x(), self.y(), self.width(), self.height())
def Vispa.Gui.VispaWidget.VispaWidget.colorHeaderBackgroundEnabled (   self)

Definition at line 616 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag.

618  return self._colorHeaderBackgroundFlag
def Vispa.Gui.VispaWidget.VispaWidget.contentRect (   self)

Definition at line 1229 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.SELECTED_FRAME_WIDTH, Vispa.Gui.VispaWidget.VispaWidget.SELECTED_FRAME_WIDTH, Random_struct.width, TmModule.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), btag::SimpleMatrix< T >.width, function::ZMuMuFunction.width, lhef::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paintEvent().

1230  def contentRect(self):
1231  frame_width = 2
1232  if self.isSelected():
1233  frame_width = self.SELECTED_FRAME_WIDTH
1234  return QRect(frame_width, self.getDistance("titleFieldBottom"),
1235  self.width() - 2* frame_width -1,
1236  self.height() - self.getDistance("titleFieldBottom") - frame_width -1)
def Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape (   self)

Definition at line 1100 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_BOTTOM, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_LEFT, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_RIGHT, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_TOP, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, Vispa.Gui.MenuWidget.MenuWidget.ROUNDRECT_RADIUS, Vispa.Gui.VispaWidget.VispaWidget.ROUNDRECT_RADIUS, Random_struct.width, TmModule.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), btag::SimpleMatrix< T >.width, function::ZMuMuFunction.width, lhef::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1101  def defineArrowBackgroundShape(self):
1102  if not hasattr(self._backgroundShapePath, "united"):
1103  logging.warning(self.__class__.__name__ +": defineArrowBackgroundShape() - Upgrade your Qt version at least to 4.3 to use this feature. Aborting...")
1104  return
1105 
1106  #logging.debug(self.__class__.__name__ +":defineArrowBackgroundShape()")
1107 
1108  offset = 0
1109  if self._backgroundShape == "ROUNDRECT":
1110  offset = (self.ROUNDRECT_RADIUS) * self._scale * 0.2
1111  p = self._backgroundShapePath.toFillPolygon()
1112  #print "background shape", [p[i] for i in range(len(p))]
1113  arrowPath = None
1114  if self._arrowShape == self.ARROW_SHAPE_TOP:
1115  arrowPath = QPainterPath()
1116  arrowPath.moveTo(self.getDistance('frameLeft'), self.getDistance('frameTop') + offset)
1117  arrowPath.lineTo(0.5 * self.width(), 1)
1118  arrowPath.lineTo(self.getDistance('frameRight'), self.getDistance('frameTop') + offset)
1119  arrowPath.closeSubpath()
1120  elif self._arrowShape == self.ARROW_SHAPE_RIGHT:
1121  arrowPath = QPainterPath()
1122  arrowPath.moveTo(self.getDistance('frameRight') - offset, self.getDistance('frameTop'))
1123  arrowPath.lineTo(self.width(), 0.5 * self.height())
1124  arrowPath.lineTo(self.getDistance('frameRight') - offset, self.getDistance('frameBottom'))
1125  arrowPath.closeSubpath()
1126  elif self._arrowShape == self.ARROW_SHAPE_BOTTOM:
1127  arrowPath = QPainterPath()
1128  arrowPath.moveTo(self.getDistance('frameLeft'), self.getDistance('frameBottom') - offset)
1129  arrowPath.lineTo(0.5 * self.width(), self.height())
1130  arrowPath.lineTo(self.getDistance('frameRight'), self.getDistance('frameBottom') - offset)
1131  arrowPath.closeSubpath()
1132  elif self._arrowShape == self.ARROW_SHAPE_LEFT:
1133  arrowPath = QPainterPath()
1134  arrowPath.moveTo(self.getDistance('frameLeft') + offset, self.getDistance('frameTop'))
1135  arrowPath.lineTo(1, 0.5 * self.height())
1136  arrowPath.lineTo(self.getDistance('frameLeft') + offset, self.getDistance('frameBottom'))
1137  arrowPath.closeSubpath()
1138 
1139  if arrowPath:
1140  self._backgroundShapePath = arrowPath.united(self._backgroundShapePath).simplified()
def Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape (   self,
  painter 
)
Draws background for circular shape.

Definition at line 1062 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min, TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), GifDisplay.width, PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, btag::SimpleMatrix< T >.width, lhef::SimpleMatrix< T >.width, function::ZMuMuFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1063  def defineCircleBackgroundShape(self, painter):
1064  """ Draws background for circular shape.
1065  """
1066  w = self.width()
1067  h = self.height()
1068  r = min(w, h) - 3 # radius
1069 
1070  self._backgroundShapePath = QPainterPath()
1071  self._backgroundShapePath.addEllipse(0.5 * (w -r), 0.5 * (h -r), r, r)
#define min(a, b)
Definition: mlp_lapack.h:161
def Vispa.Gui.VispaWidget.VispaWidget.defineDistances (   self,
  keepDefaultRatio = False 
)
Defines supported distances.

The distances are needed for drawing widget content and are scaled according to current scale / zoom factors.
The distances are stored in an dictionary (see distances()).

Definition at line 924 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._distances, Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScale, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleHeight, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleWidth, Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_BOTTOM, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_LEFT, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_RIGHT, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_TOP, Vispa.Gui.VispaWidget.VispaWidget.ARROW_SIZE, Vispa.Gui.VispaWidget.VispaWidget.BOTTOM_MARGIN, python.multivaluedict.dict, Vispa.Gui.MenuWidget.MenuWidget.HEIGHT, Vispa.Gui.PortWidget.PortWidget.HEIGHT, Vispa.Gui.VispaWidget.TextField.HEIGHT, Vispa.Gui.VispaWidget.VispaWidget.HEIGHT, Vispa.Gui.VispaWidget.VispaWidget.HORIZONTAL_INNER_MARGIN, Vispa.Gui.VispaWidget.VispaWidget.LEFT_MARGIN, Vispa.Gui.ConnectableWidget.ConnectableWidget.rearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.RIGHT_MARGIN, Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), Vispa.Gui.VispaWidget.VispaWidget.TOP_MARGIN, Vispa.Gui.VispaWidget.VispaWidget.VERTICAL_INNTER_MARGIN, Vispa.Gui.PortWidget.PortWidget.WIDTH, Vispa.Gui.VispaWidget.TextField.WIDTH, LA_Filler_Fitter.WIDTH, and Vispa.Gui.VispaWidget.VispaWidget.WIDTH.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.getDistance().

925  def defineDistances(self, keepDefaultRatio=False):
926  """ Defines supported distances.
927 
928  The distances are needed for drawing widget content and are scaled according to current scale / zoom factors.
929  The distances are stored in an dictionary (see distances()).
930  """
931  if self._rearangeContentFlag and not self._noRearangeContentFlag:# and self.isVisible():
932  self.rearangeContent()
933 
934  scale = 1.0 # remove if works without
935  if keepDefaultRatio:
936  scaleWidth = 1.0
937  scaleHeight = 1.0
938  else:
939  scaleWidth = self._scaleWidth
940  scaleHeight = self._scaleHeight
941 
942  if not self._distancesHaveToBeRecalculatedFlag and \
943  scaleWidth == self._distancesLastScaleWidth and \
944  scaleHeight == self._distancesLastScaleHeight:
945  return False
946 
947  #logging.debug(self.__class__.__name__ +": defineDistances() - scale = '"+ str(scale) +"'")
948 
949  self._distancesLastScale = scale
950  self._distancesLastScaleWidth = scaleWidth
951  self._distancesLastScaleHeight = scaleHeight
953 
954  self._distances = dict()
955  self._distances['width'] = self.WIDTH * scale * scaleWidth
956  self._distances['height'] = self.HEIGHT * scale * scaleHeight
957 
958  self._distances['frameTop'] = 1
959  self._distances['frameLeft'] = 1
960  self._distances['frameBottom'] = self._distances['height'] - 1
961  self._distances['frameRight'] = self._distances['width'] - 1
962 
963  if self._arrowShape == self.ARROW_SHAPE_TOP:
964  self._distances['frameTop'] = self.ARROW_SIZE * scale
965  self._distances['height'] += self._distances['frameTop']
966  self._distances['frameBottom'] = self._distances['height'] -1
967  elif self._arrowShape == self.ARROW_SHAPE_RIGHT:
968  self._distances['frameRight'] = self._distances['width']
969  self._distances['width'] += self.ARROW_SIZE * scale
970  elif self._arrowShape == self.ARROW_SHAPE_BOTTOM:
971  self._distances['frameBottom'] = self._distances['height']
972  self._distances['height'] += self.ARROW_SIZE * scale
973  elif self._arrowShape == self.ARROW_SHAPE_LEFT:
974  self._distances['frameLeft'] = self.ARROW_SIZE * scale
975  self._distances['width'] += self._distances['frameLeft']
976  self._distances['frameRight'] = self._distances['width'] -1
977 
978  self._distances['topMargin'] = self.TOP_MARGIN * scale
979  self._distances['leftMargin'] = self.LEFT_MARGIN * scale
980  self._distances['bottomMargin'] = self.BOTTOM_MARGIN * scale
981  self._distances['rightMargin'] = self.RIGHT_MARGIN * scale
982 
983  self._distances['horizontalInnerMargin'] = self.HORIZONTAL_INNER_MARGIN * scale
984  self._distances['verticalInnerMargin'] = self.VERTICAL_INNTER_MARGIN * scale
985 
986  self._distances['titleFieldX'] = self._distances['frameLeft'] + self._distances['leftMargin']
987  self._distances['titleFieldY'] = self._distances['frameTop'] + self._distances['topMargin']
988  if self.titleIsSet():
989  self._distances['titleFieldWidth'] = self._titleField.getWidth() * scale
990  self._distances['titleFieldHeight'] = self._titleField.getHeight() * scale
991  self._distances['titleFieldBottom'] = self._distances['titleFieldY'] + self._distances['titleFieldHeight']
992  else:
993  self._distances['titleFieldHeight'] = 0
994  self._distances['titleFieldBottom'] = self._distances['frameTop']
995  self._distances['titleFieldWidth'] = self._distances['width'] - self._distances['leftMargin'] - self._distances['rightMargin']
996 
997  self._distances['contentStartX'] = self._distances['frameLeft'] + self._distances['leftMargin']
998  self._distances['contentStartY'] = self._distances['titleFieldBottom'] + self._distances['topMargin']
999 
1000  self._distances['textFieldX'] = self._distances['contentStartX']
1001  self._distances['textFieldY'] = self._distances['contentStartY']
1002  if self.textFieldIsSet():
1003  self._distances['textFieldWidth'] = self._textField.getWidth() * scale
1004  self._distances['textFieldHeight'] = self._textField.getHeight() * scale
1005  else:
1006  self._distances['textFieldWidth'] = self._distances['width'] - self._distances['textFieldX'] - self._distances['rightMargin']
1007  self._distances['textFieldHeight'] = self._distances['height'] - self._distances['textFieldY'] - self._distances['bottomMargin']
1008  self._distances['textFieldRight'] = self._distances['textFieldX'] + self._distances['textFieldWidth']
1009 
1010  return True # indicates changes for overridden function of sub classes
def Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape (   self,
  painter 
)
Draws background for rectangular shape.

Definition at line 1051 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1052  def defineRectBackgroundShape(self, painter):
1053  """ Draws background for rectangular shape.
1054  """
1055  l = self.getDistance('frameLeft')
1056  t = self.getDistance('frameTop')
1057  r = self.getDistance('frameRight')
1058  b = self.getDistance('frameBottom')
1059  myRect = QRectF(l, t, r - l , b - t)
1060  self._backgroundShapePath = QPainterPath()
1061  self._backgroundShapePath.addRect(myRect)
def Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape (   self,
  painter 
)
Draws background for rectangular shape with rounded corners.

Definition at line 1072 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._scale, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min, Vispa.Gui.MenuWidget.MenuWidget.ROUNDRECT_RADIUS, Vispa.Gui.VispaWidget.VispaWidget.ROUNDRECT_RADIUS, Random_struct.width, TmModule.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), lhef::SimpleMatrix< T >.width, btag::SimpleMatrix< T >.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1073  def defineRoundRectBackgroundShape(self, painter):
1074  """ Draws background for rectangular shape with rounded corners.
1075  """
1076  r = (self.ROUNDRECT_RADIUS) * self._scale
1077  w = self.width()# - 2
1078  h = self.height()# - 2
1079 
1080  w = self.getDistance("frameRight")
1081  h = self.getDistance("frameBottom")
1082  t = self.getDistance("frameTop")
1083  l = self.getDistance("frameLeft")
1084 
1085  # Prevent nasty lines when box too small
1086  f = 0.8
1087  r = min(r, f * h, f * w)
1088 
1089  self._backgroundShapePath = QPainterPath()
1090  self._backgroundShapePath.moveTo(w, r + t)
1091  self._backgroundShapePath.arcTo(w - r, t, r, r, 0, 90)
1092  self._backgroundShapePath.lineTo(r + l, t)
1093  self._backgroundShapePath.arcTo(l, t, r, r, 90, 90)
1094  self._backgroundShapePath.lineTo(l, h - r)
1095  self._backgroundShapePath.arcTo(l, h - r, r, r, 180, 90)
1096  self._backgroundShapePath.lineTo(w - r, h)
1097  self._backgroundShapePath.arcTo(w - r, h - r, r, r, 270, 90)
1098  self._backgroundShapePath.closeSubpath()
1099  self._backgroundShapePath = self._backgroundShapePath.simplified()
#define min(a, b)
Definition: mlp_lapack.h:161
def Vispa.Gui.VispaWidget.VispaWidget.delete (   self)
Deletes this widget.

Definition at line 1354 of file VispaWidget.py.

References Vispa.Gui.ConnectableWidget.ConnectableWidget.deleteLater(), edm::ELlog4cplus.emit(), Vispa.Gui.PortConnection.PointToPointConnection.isDeletable(), Vispa.Gui.VispaWidget.VispaWidget.isDeletable(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< N, E >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent(), and Vispa.Gui.VispaWidget.VispaWidget.keyPressEvent().

1355  def delete(self):
1356  """ Deletes this widget.
1357  """
1358  if not self.isDeletable():
1359  logging.warning(self.__class__.__name__ +": delete() - Tried to remove undeletable widget. Aborting...")
1360  return False
1361 
1362  if isinstance(self.parent(), VispaWidgetOwner):
1363  self.parent().widgetAboutToDelete(self)
1364 
1365  self.deleteLater()
1366  self.emit(SIGNAL("widgetDeleted"))
1367  return True
def Vispa.Gui.VispaWidget.VispaWidget.distances (   self)
Returns dictionary containing distances as defined in defineDistances().

Definition at line 919 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distances.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.defineDistances().

920  def distances(self):
921  """ Returns dictionary containing distances as defined in defineDistances().
922  """
923  return self._distances
def Vispa.Gui.VispaWidget.VispaWidget.dragReferencePoint (   self)

Definition at line 1298 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, and Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel.

1299  def dragReferencePoint(self):
1300  return QPoint(self._dragMouseXrel, self._dragMouseYrel)
def Vispa.Gui.VispaWidget.VispaWidget.dragWidget (   self,
  pPos 
)
Perform dragging when user moves cursor while left mouse button is pressed.

Definition at line 1379 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition, max(), AlignableDetUnit.move(), AlignableBeamSpot.move(), AlignableComposite.move(), CaloGeometryHelper.move(), Alignable.move(), GloballyPositioned< T >.move(), Vispa.Gui.ConnectableWidget.ConnectableWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.move(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< N, E >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, Vispa.Views.LineDecayView.DecayObject.parent(), AlignableData< T >.pos(), PhysicsTools::SourceVariableSet::PosVar.pos, CaloNavigator< DetId >.pos(), CaloNavigator< CaloTowerDetId >.pos(), CaloNavigator< ESDetId >.pos(), CaloNavigator< T >.pos(), CaloNavigator< EBDetId >.pos(), CaloNavigator< EEDetId >.pos(), CaloNavigator< EcalDetId >.pos(), geometryXMLparser.Alignable.pos(), DTSegmentExtendedCand::DTSLRecClusterForFit.pos, STLInputStream.pos, CaloG4Hit.pos, MatacqProducer::PosEstimator.pos(), PhysicsTools::BitSet::Iterator.pos, lhef::CBInputStream.pos, lhef::STLInputStream.pos, lhef::StorageInputStream.pos, and CLookToRead.pos.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.mouseMoveEvent().

1380  def dragWidget(self, pPos):
1381  """ Perform dragging when user moves cursor while left mouse button is pressed.
1382  """
1383  if not self._dragableFlag:
1384  return
1385 
1386  self._previusDragPosition = self.pos()
1387  #pPos = self.mapToParent(event.pos())
1388  self.move(max(0,pPos.x() - self._dragMouseXrel), max(0,pPos.y() - self._dragMouseYrel))
1389 
1390  # Tell parent, a widget moved to trigger file modification.
1391  if isinstance(self.parent(), VispaWidgetOwner):
1392  self.parent().widgetDragged(self)
const T & max(const T &a, const T &b)
def Vispa.Gui.VispaWidget.VispaWidget.drawBody (   self,
  painter 
)
This function calls drawTextField() and drawImage().

Inheriting classes should overwrite this function if they wish to draw different things or alter the order of drawing.

Definition at line 1221 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.drawImage(), Vispa.Gui.PortWidget.PortWidget.drawTextField(), and Vispa.Gui.VispaWidget.VispaWidget.drawTextField().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1222  def drawBody(self, painter):
1223  """ This function calls drawTextField() and drawImage().
1224 
1225  Inheriting classes should overwrite this function if they wish to draw different things or alter the order of drawing.
1226  """
1227  self.drawTextField(painter)
1228  self.drawImage(painter)
def Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground (   self,
  painter 
)
Color background of title in frame pen color.

Definition at line 1141 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag, Vispa.Gui.VispaWidget.VispaWidget.framePenColor, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), CaloMeanResponse.scale, LocalError.scale(), CaloSamples.scale(), DQMRivetClient::ScaleFactorOption.scale, python.rootplot.rootmath.Target.scale, reco::PattRecoPeak< Real >.scale(), python.rootplot.tree2hists.RootTree.scale, MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), Vispa.Gui.PortConnection.PointToPointConnection.SELECTED_FRAME_WIDTH, Vispa.Gui.VispaWidget.VispaWidget.SELECTED_FRAME_WIDTH, Random_struct.width, TmModule.width, OpenBounds.width(), SimpleDiskBounds.width(), GifDisplay.width, PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, RooCB.width, GeneralNSurfaceDelimitedBounds.width(), Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), function::ZMuMuFunction.width, FWColumnLabelCellRenderer.width(), lhef::SimpleMatrix< T >.width, btag::SimpleMatrix< T >.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawTitle().

1142  def drawHeaderBackground(self, painter):
1143  """ Color background of title in frame pen color.
1144  """
1145  if not self._colorHeaderBackgroundFlag or self._backgroundShapePath == None:
1146  # Cannot color background
1147  return
1148 
1149  if hasattr(self._backgroundShapePath, "intersected"):
1150  # Available since Qt 4.3
1151  topRectPath = QPainterPath()
1152  topRectPath.addRect(QRectF(0, 0, self.getDistance('width'), self.getDistance('titleFieldBottom')))
1153  headerPath = topRectPath.intersected(self._backgroundShapePath)
1154  painter.setPen(QColor(self.framePenColor))
1155  painter.setBrush(self.framePenColor)
1156  painter.drawPath(headerPath)
1157  return
1158 
1159  # Fallback for Qt versions prior to 4.3
1160 
1161  backgroundShapePolygon = self._backgroundShapePath.toFillPolygon()
1162  headerPolygonPoints = []
1163  i = 0
1164  headerBottom = 0
1165  nearlyBottom = 0
1166  if self.isSelected():
1167  selectedWidth = (self.SELECTED_FRAME_WIDTH +4) * self.scale()
1168  else:
1169  selectedWidth = 0
1170  while i < backgroundShapePolygon.count():
1171  thisP = backgroundShapePolygon.value(i)
1172  i += 1
1173  # selectedWidth prevents horizontal line in SELECT_COLOR
1174  if thisP.y() <= self.getDistance('titleFieldBottom') - selectedWidth:
1175  if thisP.y() > headerBottom:
1176  headerBottom = thisP.y()
1177  elif thisP.y() > nearlyBottom:
1178  nearlyBottom = thisP.y()
1179  headerPolygonPoints.append(thisP)
1180  headerPolygon = QPolygonF(headerPolygonPoints)
1181 
1182  painter.setPen(Qt.NoPen)
1183  painter.setBrush(self.framePenColor)
1184  titleBgPath = QPainterPath()
1185  titleBgPath.addPolygon(headerPolygon)
1186  painter.drawPath(titleBgPath)
1187 
1188  headerBottom = nearlyBottom # test whether second lowest header point works better
1189  if (self._backgroundShape == 'ROUNDRECT' or self._backgroundShape == 'RECT') and headerBottom < self.getDistance('titleFieldBottom'):
1190  #if (headerBottom) < self.getDistance('titleFieldBottom'): # This condition unfortunately does not work correctly on round shapes.
1191  # backgroundShapePolygon does not have a sufficient number of points at the straight lines on the side, so this is a work around.
1192  # This is not a clean solution as most functions should be independent from chosen backgroundShape.
1193  xBorder = 0
1194  if self.isSelected():
1195  # do not paint on frame
1196  if headerBottom == 0:
1197  headerBottom = self.SELECTED_FRAME_WIDTH - 2
1198  xBorder = self.SELECTED_FRAME_WIDTH - 2
1199  #painter.setPen(Qt.NoPen)
1200  painter.setPen(self.framePenColor)
1201  painter.drawRect(QRectF(xBorder, headerBottom, self.width() - 2 * xBorder - 2, self.getDistance('titleFieldBottom') - headerBottom))
def Vispa.Gui.VispaWidget.VispaWidget.drawImage (   self,
  painter 
)
Draws image onto the widget's centre. See setImage().

Definition at line 1423 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image, and Vispa.Gui.VispaWidget.VispaWidget.imageRectF().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), and Vispa.Gui.VispaWidget.VispaWidget.drawBody().

1424  def drawImage(self, painter):
1425  """ Draws image onto the widget's centre. See setImage().
1426  """
1427  if not self._image:
1428  return
1429 
1430  if isinstance(self._image, QSvgRenderer):
1431  #rect = self.imageRectF(self._image.defaultSize().width() * self.scale(), self._image.defaultSize().height() * self.scale())
1432  self._image.render(painter, self.imageRectF())
1433  elif isinstance(self._image, QPixmap):
1434  #rect = self.imageRectF(self._image.width() * self.scale(), self._image.height() * self.scale())
1435  painter.drawPixmap(self.imageRectF(), self._image, QRectF(self._image.rect()))
1436 
1437  # debug
1438  #painter.drawRect(self.imageRectF())
def Vispa.Gui.VispaWidget.VispaWidget.drawTextField (   self,
  painter 
)
Tells TextField object of text field to draw title on widget.

Definition at line 1212 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._scale, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), and Vispa.Gui.VispaWidget.VispaWidget.drawBody().

1213  def drawTextField(self, painter):
1214  """ Tells TextField object of text field to draw title on widget.
1215  """
1216  if not self.textFieldIsSet():
1217  return
1218 
1219  painter.setPen(QPen())
1220  self._textField.paint(painter, self.getDistance('textFieldX'), self.getDistance('textFieldY'), self._scale)
def Vispa.Gui.VispaWidget.VispaWidget.drawTitle (   self,
  painter 
)
Tells TextField object of title to draw title on widget.

Definition at line 1202 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1203  def drawTitle(self, painter):
1204  """ Tells TextField object of title to draw title on widget.
1205  """
1206  if not self.titleIsSet():
1207  return
1208  self.drawHeaderBackground(painter)
1209 
1210  painter.setPen(QPen())
1211  self._titleField.paint(painter, self.getDistance('titleFieldX'), self.getDistance('titleFieldY'), self._scale)
def Vispa.Gui.VispaWidget.VispaWidget.enableAutopositionizeWhenZooming (   self,
  auto 
)
If True the position of this widget will be corrected according to it unzoomed position.

Prevents unexpected moving when zoom is enabled due to rounding errors.

Definition at line 509 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag.

510  def enableAutopositionizeWhenZooming(self, auto):
511  """ If True the position of this widget will be corrected according to it unzoomed position.
512 
513  Prevents unexpected moving when zoom is enabled due to rounding errors.
514  """
515  self._autopositioninzeWhenZoomingFlag = bool(auto)
def Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing (   self,
  auto,
  keepAspectRatio = True 
)
Sets flag for auto resizing this widget.

If auto is True the size of this widget will be adjusted to widget size.
If keepAspectRatio is False the aspect ratio may change according to widget content.

Definition at line 559 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), DDDWorldObserver< Event >.update(), SaveSimTrack.update(), PixelTrackFilter.update(), PTStatistics.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), HIPixelTrackFilter.update(), HIProtoTrackFilter.update(), PrintTrackNumberAction.update(), KalmanAlignmentMetricsUpdator.update(), GenericMVAComputerCache.update(), reco::KalmanGhostTrackUpdater.update(), SimpleMetricsUpdator.update(), DDG4ProductionCuts.update(), HICMuonUpdator.update(), MSLayersAtAngle.update(), TrajectoryStateUpdator.update(), MultiMetricsUpdator.update(), FastFedCablingTask.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), VpspScanTask.update(), ErrorCorrelation.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), FedTimingTask.update(), OptoScanTask.update(), PedestalsTask.update(), GsfMultiStateUpdator.update(), DummyMetricsUpdator.update(), LatencyTask.update(), MonopoleSteppingAction.update(), ApvTimingHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), CalibrationTask.update(), CalibrationScanTask.update(), FineDelayTask.update(), RHStopTracer.update(), CurrentAlignmentKFUpdator.update(), FastFedCablingHistosUsingDb.update(), PrintSensitive.update(), FedCablingTask.update(), SamplingHistosUsingDb.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), EcalUnpackerWorkerBase.update(), KFStrip1DUpdator.update(), KFStripUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), CalibrationHistosUsingDb.update(), KFSwitchingUpdator.update(), ChildUpdator.update(), PedsFullNoiseTask.update(), CountProcessesAction.update(), PrintMaterialBudgetInfo.update(), PrintGeomInfoAction.update(), progressbar.Widget.update(), FineDelayHistosUsingDb.update(), ora::PVectorUpdater.update(), MeasurementTracker.update(), KinematicConstrainedVertexUpdator.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), StoreSecondary.update(), ESUnpackerWorker.update(), BinomialProbability.update(), OnDemandMeasurementTracker.update(), TrackingMaterialProducer.update(), GraphPath< N, E >.update(), MuonServiceProxy.update(), GflashG4Watcher.update(), EcalUnpackerWorker.update(), EcalSimHitsValidProducer.update(), funct::Master< F >.update(), MaterialBudgetForward.update(), CheckSecondary.update(), Observer< T >.update(), Observer< const EndOfEvent * >.update(), pat::CandidateSummaryTable::Record.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfTrack * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const Event * >.update(), KFSwitching1DUpdator.update(), Observer< const BeginOfJob * >.update(), HLTMonBTagClient.update(), KFUpdator.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), CaloTrkProcessing.update(), HcalTestAnalysis.update(), HcaluLUTTPGCoder.update(), pos::PixelConfig.update(), TkStripMeasurementDet.update(), jptJetAnalysis::TrackPropagatorToCalo.update(), ora::IRelationalUpdater.update(), FWJobMetadataManager.update(), BasicMultiTrajectoryState.update(), KalmanAlignmentUserVariables.update(), PhysicsTools::TreeReader.update(), TrackingVerboseAction.update(), MaterialBudgetAction.update(), ora::QueryableVectorUpdater.update(), FiberSD.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), SimG4HcalValidation.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), simwatcher::BeginOfTrackCounter.update(), FWParameterSetterBase.update(), MuonTrajectoryUpdator.update(), progressbar.Timer.update(), TotemTestGem.update(), PLTSensitiveDetector.update(), DQMOldReceiver.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), ora::OraPtrUpdater.update(), LaserAlignmentSimulation.update(), jptJetAnalysis::StripSignalOverNoiseCalculator.update(), HcalTB02Analysis.update(), ora::PrimitiveUpdater.update(), ora::UniqueRefUpdater.update(), ora::OraReferenceUpdater.update(), ora::CArrayUpdater.update(), HcalTB06Analysis.update(), BTagPerformanceAnalyzerOnData.update, ApvAnalysisFactory.update(), ora::ObjectUpdater.update(), progressbar.WidgetHFill.update(), TotemSD.update(), MuonSensitiveDetector.update(), HcalForwardAnalysis.update(), ora::BlobUpdater.update(), MeasurementTrackerImpl.update(), StMeasurementDetSet.update(), SimTracer.update(), ora::InlineCArrayUpdater.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), DTSegmentUpdator.update(), ora::STLContainerUpdater.update(), DynamicTruncation.update(), EcalTBH4Trigger.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< G4Step >.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), CaloSD.update(), BTagPerformanceAnalyzerMC.update, BscSD.update(), edm::service::SimpleMemoryCheck.update(), edm::BMixingModule.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), ora::Container.update(), BetafuncEvtVtxGenerator.update(), PhysicsTools::TreeReader::Value.update(), progressbar.Bar.update(), FP420SD.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), HLTScalersClient::CountLSFifo_t.update(), CastorShowerLibraryMaker.update(), MonitorElement.update(), ora::Database.update(), StandAloneMuonFilter.update(), DTRecSegment2D.update(), DQMNet::Peer.update, CommissioningTask.update(), FWPSetTableManager.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, G4StepStatistics.update(), FWLiteESRecordWriterAnalyzer.update(), python.seqvaluedict.seqdict.update(), FP420Test.update(), Folder.update(), BscTest.update(), TrajectoryStateOnSurface.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), edmNew::DetSetVector< T >.update(), and evf::iDie::lsStat.update().

560  def enableAutosizing(self, auto, keepAspectRatio=True):
561  """ Sets flag for auto resizing this widget.
562 
563  If auto is True the size of this widget will be adjusted to widget size.
564  If keepAspectRatio is False the aspect ratio may change according to widget content.
565  """
566  if self._autosizeKeepAspectRatioFlag != auto or self._autosizeKeepAspectRatioFlag != keepAspectRatio:
567  changed = True
568  else:
569  changed = False
570 
571  self._autosizeFlag = auto
572  self._autosizeKeepAspectRatioFlag = keepAspectRatio
573  if self.titleIsSet():
574  self._titleField.setAutoscale(auto, keepAspectRatio)
575  if self.textFieldIsSet():
576  self._textField.setAutoscale(auto, keepAspectRatio)
577 
578  if changed:
580  self.update()
def Vispa.Gui.VispaWidget.VispaWidget.enableBackgroundGradient (   self,
  enable = True 
)
If set to True the background color is painted using a QLinearGradient with the two fill colors.

See setColors().

Definition at line 619 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

620  def enableBackgroundGradient(self, enable=True):
621  """ If set to True the background color is painted using a QLinearGradient with the two fill colors.
622 
623  See setColors().
624  """
625  self._backgroundGradientEnabledFlag = enable
def Vispa.Gui.VispaWidget.VispaWidget.enableColorHeaderBackground (   self,
  enable = True 
)
If set to True the background of the header is painted using pen color.

See setColors().

Definition at line 609 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

610  def enableColorHeaderBackground(self, enable=True):
611  """ If set to True the background of the header is painted using pen color.
612 
613  See setColors().
614  """
615  self._colorHeaderBackgroundFlag = enable
def Vispa.Gui.VispaWidget.VispaWidget.getDistance (   self,
  name,
  scale = None,
  keepDefaultRatio = False 
)
Gets the length of the element called 'name'.

Definition at line 1011 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distances, Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.ConnectableWidget.ConnectableWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), Vispa.Gui.VispaWidget.VispaWidget._initTitleField(), Vispa.Gui.ConnectableWidget.ConnectableWidget.arrangePorts(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.ConnectableWidget.ConnectableWidget.centerSinglePortVertically(), Vispa.Views.LineDecayView.LineDecayContainer.childrenRect(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.WidgetContainer.WidgetContainer.contentStartX(), Vispa.Gui.WidgetContainer.WidgetContainer.contentStartY(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.MenuWidget.MenuWidget.drawMenuEntries(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget.drawTextField(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.ConnectableWidget.ConnectableWidget.dropArea(), Vispa.Gui.VispaWidget.VispaWidget.height(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint(), Vispa.Gui.WidgetContainer.WidgetContainer.mouseDoubleClickEvent(), Vispa.Gui.WidgetContainer.WidgetContainer.mouseMoveEvent(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.WidgetContainer.WidgetContainer.sizeHint(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.width().

1012  def getDistance(self, name, scale=None, keepDefaultRatio=False):
1013  """ Gets the length of the element called 'name'.
1014  """
1015  self.defineDistances(keepDefaultRatio)
1016  if scale == None:
1017  scale = self._scale
1018  elif scale == 1:
1019  scale = 1.0
1020 
1021  if name in self._distances:
1022  #logging.debug(self.__class__.__name__ +": getdistance() - name = '"+ name +"' - "+ str(self._distances[name]))
1023  return self._distances[name] * scale
1024  else:
1025  logging.warning(self.__class__.__name__ +": getdistance() - Unknown distance '"+ name +"'")
1026  return 0
def Vispa.Gui.VispaWidget.VispaWidget.height (   self)
Returns height of this widget.

Definition at line 1034 of file VispaWidget.py.

References ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.ConnectableWidget.ConnectableWidget.centerSinglePortVertically(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Views.LineDecayView.ParticleWidget.mouseMoveEvent(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

1035  def height(self):
1036  """ Returns height of this widget.
1037  """
1038  # TODO: implement this more flexible regarding different QSizePolicies (also width())
1039  #if self.parent() and self.parent().layout():
1040  # return QWidget.height(self)
1041  return self.getDistance('height')
def Vispa.Gui.VispaWidget.VispaWidget.imageRectF (   self,
  width = None,
  height = None 
)
Returns draw area as QRectF for drawImage.

Definition at line 1451 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, Vispa.Gui.VispaWidget.VispaWidget.imageSizeF(), min, CaloMeanResponse.scale, LocalError.scale(), CaloSamples.scale(), DQMRivetClient::ScaleFactorOption.scale, python.rootplot.rootmath.Target.scale, reco::PattRecoPeak< Real >.scale(), python.rootplot.tree2hists.RootTree.scale, MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), Random_struct.width, TmModule.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), RooCB.width, Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), function::ZMuStandaloneFunction.width, FWCheckedTextTableCellRenderer.width(), btag::SimpleMatrix< T >.width, lhef::SimpleMatrix< T >.width, function::ZMuMuFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawImage().

1452  def imageRectF(self, width=None, height=None):
1453  """ Returns draw area as QRectF for drawImage.
1454  """
1455  if not width or not height:
1456  size = self.imageSizeF() * self.scale()
1457  width = size.width()
1458  height = size.height()
1459 
1460  if width > self.width() or height > self.height():
1461  widthScale = 1.0 * self.width() / width
1462  heightScale = 1.0 *self.height() / height
1463  scale = min(widthScale, heightScale)
1464  width *= scale
1465  height *= scale
1466 
1467  rect = QRectF((self.width() - width) * 0.5, (self.height() - height + self.getDistance("titleFieldBottom")) * 0.5, width, height)
1468  #print "rect ", rect
1469  return rect
#define min(a, b)
Definition: mlp_lapack.h:161
def Vispa.Gui.VispaWidget.VispaWidget.imageSizeF (   self)
Returns QSizeF object representing the unzoomed size of the image. See setImage().

Definition at line 1439 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.sizeHint().

1440  def imageSizeF(self):
1441  """ Returns QSizeF object representing the unzoomed size of the image. See setImage().
1442  """
1443  if not self._image:
1444  return QSizeF(0, 0)
1445  if isinstance(self._image, QSvgRenderer):
1446  return QSizeF(self._image.defaultSize())
1447  if isinstance(self._image, QPixmap):
1448  return QSizeF(self._image.size())
1449  logging.warning(self.__class__.__name__ +": imageSizeF() - Unknown image type.")
1450  return QSizeF(0, 0)
def Vispa.Gui.VispaWidget.VispaWidget.isDeletable (   self)

Definition at line 606 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._deletableFlag, and Vispa.Gui.VispaWidget.VispaWidget._deletableFlag.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.delete().

607  def isDeletable(self):
608  return self._deletableFlag
def Vispa.Gui.VispaWidget.VispaWidget.isDragable (   self)

Definition at line 527 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag.

528  def isDragable(self):
529  return self._dragableFlag
def Vispa.Gui.VispaWidget.VispaWidget.isSelectable (   self)
Returns True if widget can be selected.

Definition at line 598 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectableFlag, and Vispa.Gui.VispaWidget.VispaWidget._selectableFlag.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.isSelected(), and Vispa.Gui.VispaWidget.VispaWidget.select().

599  def isSelectable(self):
600  """ Returns True if widget can be selected.
601  """
602  return self._selectableFlag
def Vispa.Gui.VispaWidget.VispaWidget.isSelected (   self)
Returns True if widget is selected.

Definition at line 654 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectedFlag, Vispa.Gui.VispaWidget.VispaWidget._selectedFlag, Vispa.Gui.PortConnection.PointToPointConnection.isSelectable(), and Vispa.Gui.VispaWidget.VispaWidget.isSelectable().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget.leaveEvent(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Views.LineDecayView.ParticleWidget.paint(), and Vispa.Gui.VispaWidget.VispaWidget.select().

655  def isSelected(self):
656  """ Returns True if widget is selected.
657  """
658  if not self.isSelectable():
659  return False
660 
661  return self._selectedFlag
def Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint (   self,
  point 
)
Returns True if this point is part of the tile field, otherwise False is returned.

Definition at line 1042 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.mouseMoveEvent(), and Vispa.Views.LineDecayView.LineDecayContainer.mousePressEvent().

1043  def isTitlePoint(self, point):
1044  """ Returns True if this point is part of the tile field, otherwise False is returned.
1045  """
1046  if not self.titleIsSet():
1047  return False
1048  if point.y() >= self.getDistance("titleFieldY") and point.y() <= self.getDistance("titleFieldBottom"):
1049  return True
1050  return False
def Vispa.Gui.VispaWidget.VispaWidget.isUseBackgroundGradientEnabled (   self)

Definition at line 626 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag.

def Vispa.Gui.VispaWidget.VispaWidget.keyPressEvent (   self,
  event 
)
Calls delete() method if backspace or delete key is pressed when widget has focus.

Definition at line 1337 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection.delete(), Vispa.Gui.PortConnection.PortConnection.delete(), Vispa.Gui.VispaWidget.VispaWidget.delete(), edm::ELlog4cplus.emit(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), graphwalker< N, E >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

1338  def keyPressEvent(self, event):
1339  """ Calls delete() method if backspace or delete key is pressed when widget has focus.
1340  """
1341  if event.key() == Qt.Key_Backspace or event.key() == Qt.Key_Delete:
1342  if hasattr(self.parent(), "multiSelectEnabled") and self.parent().multiSelectEnabled() and \
1343  hasattr(self.parent(), "selectedWidgets") and len(self.parent().selectedWidgets()) > 1:
1344  # let parent handle button event if multi-select is enabled
1345  self.parent().setFocus(Qt.OtherFocusReason)
1346  QCoreApplication.instance().sendEvent(self.parent(), event)
1347  else:
1348  self.emit(SIGNAL("deleteButtonPressed"))
1349  self.delete()
1350  else:
1351  # let parent handle all other events
1352  self.parent().setFocus(Qt.OtherFocusReason)
1353  QCoreApplication.instance().sendEvent(self.parent(), event)
def Vispa.Gui.VispaWidget.VispaWidget.mouseDoubleClickEvent (   self,
  event 
)

Definition at line 650 of file VispaWidget.py.

References python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), graphwalker< N, E >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

651  def mouseDoubleClickEvent(self, event):
652  if isinstance(self.parent(), VispaWidgetOwner):
653  self.parent().widgetDoubleClicked(self)
def Vispa.Gui.VispaWidget.VispaWidget.mouseMoveEvent (   self,
  event 
)
Call dragWidget().

Definition at line 1323 of file VispaWidget.py.

References Vispa.Gui.ConnectableWidget.ConnectableWidget.dragWidget(), and Vispa.Gui.VispaWidget.VispaWidget.dragWidget().

1324  def mouseMoveEvent(self, event):
1325  """ Call dragWidget().
1326  """
1327  #logging.debug("%s: mouseMoveEvent()" % self.__class__.__name__)
1328  if bool(event.buttons() & Qt.LeftButton):
1329  self.dragWidget(self.mapToParent(event.pos()))
1330  return
def Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent (   self,
  event 
)
Register mouse offset for dragging and calls select().

Definition at line 1305 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), graphwalker< N, E >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, Vispa.Views.LineDecayView.DecayObject.parent(), FWViewContextMenuHandlerGL.select(), pf2pat::PdgIdPFCandidateSelectorDefinition.select(), pf2pat::GenericPFJetSelectorDefinition.select(), pf2pat::PtMinPFCandidateSelectorDefinition.select(), SeedConfigSelector.select(), pf2pat::GenericPFCandidateSelectorDefinition.select(), ipf2pat::ObjectSelector< Selector, CollectionType >.select(), AlignmentSeedSelector.select(), CSCBeamHaloConfigSelector.select(), CSCOverlapConfigSelector.select(), AlignmentCSCBeamHaloSelector.select(), AlignmentCSCOverlapSelector.select(), StringCutEventSelector< Object >.select(), AlignmentTwoBodyDecayTrackSelector.select(), EventSelector.select(), CSCTrackConfigSelector.select(), RPCMonitorLinkSynchro.select(), pf2pat::IsolatedPFCandidateSelectorDefinition.select(), pf2pat::MuonIDPFCandidateSelectorDefinition.select(), AlignmentGlobalTrackSelector.select(), CalibrationTrackSelector.select(), AlignmentCSCTrackSelector.select(), pf2pat::IPCutPFCandidateSelectorDefinition.select(), SingleElementCollectionSelectorPlusEvent< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), RawDataFEDSelector.select(), AlignmentTrackSelector.select(), HLTTauDQMFilter.select(), SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SiStripCalTrackConfigSelector.select(), SingleEleCalibSelector.select(), reco::modules::MatcherBase< C1, C2, M >.select(), SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >.select(), MuonConfigSelector.select(), AlignmentMuonSelector.select(), reco::modulesNew::Matcher< C1, C2, S, D >.select(), ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >.select(), FWModelExpressionSelector.select(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), TrackConfigSelector.select(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >.select(), RecoTrackRefSelector.select(), ora::PVectorReader.select(), pf2pat::ElectronIDPFCandidateSelectorDefinition.select(), RecoTrackSelector.select(), ora::IRelationalReader.select(), FWModelId.select(), reco::modules::Matcher< C1, C2, S, D, M >.select(), FWSelectionManager.select(), CosmicTrackingParticleSelector.select(), FWViewContextMenuHandlerBase.select(), HSCPTrackSelector.select(), CandCombinerBase< OutputCollection, CandPtr >.select(), ora::QueryableVectorReader.select(), ora::PrimitiveReader.select(), NamedCandCombinerBase.select(), StringCutsEventSelector< Object, existenceMatter >.select(), ora::OraReferenceReader.select(), ora::BlobReader.select(), ora::OraPtrReader.select(), ora::UniqueRefReader.select(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.select(), ora::CArrayReader.select(), ora::InlineCArrayReader.select(), ora::ObjectReader.select(), ora::STLContainerReader.select(), ora::NamedRefReader.select(), Vispa.Gui.PortConnection.PointToPointConnection.select(), AlgoPos.select(), NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.select(), MuonResidualsFitter::MuonAlignmentTreeRow.select, CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.select(), SelectionStep< Object >.select(), ora::QVQueryMaker.select(), FWEventItem.select(), ora::QueryableVector< Tp >.select(), Vispa.Gui.ConnectableWidget.ConnectableWidget.select(), and Vispa.Gui.VispaWidget.VispaWidget.select().

1306  def mousePressEvent(self, event):
1307  """ Register mouse offset for dragging and calls select().
1308  """
1309  parentIsVispaWidgetOwner = isinstance(self.parent(), VispaWidgetOwner)
1310  if event.modifiers() == Qt.ControlModifier:
1311  # allow deselect of individual widgets in selection
1312  self.select(not self.isSelected(), True)
1313  elif parentIsVispaWidgetOwner and not self.isSelected():
1314  self.select(True)
1315 
1316  if not self._dragableFlag:
1317  return
1318  self._dragMouseXrel = event.x()
1319  self._dragMouseYrel = event.y()
1320 
1321  if parentIsVispaWidgetOwner:
1322  self.parent().initWidgetMovement(self)
def Vispa.Gui.VispaWidget.VispaWidget.mouseReleaseEvent (   self,
  event 
)

Definition at line 1331 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, edm::ELlog4cplus.emit(), and Vispa.Gui.VispaWidget.VispaWidget.resetMouseDragOffset().

1332  def mouseReleaseEvent(self, event):
1333  #logging.debug("%s: mouseReleaeEvent()" % self.__class__.__name__)
1334  if self._dragMouseXrel != 0 and self._dragMouseYrel != 0:
1335  self.resetMouseDragOffset()
1336  self.emit(SIGNAL("dragFinished"))
def Vispa.Gui.VispaWidget.VispaWidget.move (   self,
  target 
)
Move widgt to new position.

You can either give x and y coordinates as parameters or a QPosition object.

Definition at line 1393 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY, CaloMeanResponse.scale, LocalError.scale(), CaloSamples.scale(), DQMRivetClient::ScaleFactorOption.scale, python.rootplot.rootmath.Target.scale, reco::PattRecoPeak< Real >.scale(), python.rootplot.tree2hists.RootTree.scale, MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), vdt.x, and detailsBasic3DVector.y.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().

1394  def move(self, *target):
1395  """ Move widgt to new position.
1396 
1397  You can either give x and y coordinates as parameters or a QPosition object.
1398  """
1399  if len(target) == 1:
1400  # Got point as argument
1401  targetX = target[0].x()
1402  targetY = target[0].y()
1403  else:
1404  # Got x and y as arguments
1405  targetX = target[0]
1406  targetY = target[1]
1407 
1408  self._unzoomedPositionX = 1.0 * targetX / self.scale()
1409  self._unzoomedPositionY = 1.0 * targetY / self.scale()
1410  # In self.setZoome() the widgets position can be set with these values
1411 
1412  QWidget.move(self, targetX, targetY)
1413 
1414  #import traceback
1415  #traceback.print_stack()
x
Definition: VDTMath.h:216
def Vispa.Gui.VispaWidget.VispaWidget.noRearangeContent (   self,
  no = True 
)
Flag disables any rearanging.

Definition at line 895 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag.

896  def noRearangeContent(self,no=True):
897  """ Flag disables any rearanging.
898  """
899  self._noRearangeContentFlag=no
def Vispa.Gui.VispaWidget.VispaWidget.paint (   self,
  painter,
  event = None 
)
Takes care of painting widget content on given painter.

Definition at line 1255 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag, Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), Vispa.Gui.VispaWidget.VispaWidget.drawBody(), Vispa.Gui.PortWidget.PortWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.fillColor1, Vispa.Gui.VispaWidget.VispaWidget.fillColor2, Vispa.Gui.VispaWidget.VispaWidget.framePenColor, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, lhef::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.SELECT_COLOR, Vispa.Gui.VispaWidget.VispaWidget.SELECT_COLOR, Vispa.Gui.PortConnection.PointToPointConnection.SELECTED_FRAME_WIDTH, and Vispa.Gui.VispaWidget.VispaWidget.SELECTED_FRAME_WIDTH.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), and Vispa.Gui.VispaWidget.VispaWidget.paintEvent().

1256  def paint(self, painter, event=None):
1257  """ Takes care of painting widget content on given painter.
1258  """
1259  if not self._backgroundGradientEnabledFlag or painter.redirected(painter.device()):
1260  # TODO: find condition which fits QPixmap but not QPicture (pdf export)
1261  # e.q. QPixmap.grabWidget()
1262  backgroundBrush = self.fillColor1
1263  else:
1264  backgroundBrush = QLinearGradient(0, self.getDistance('titleFieldBottom'), 0, self.height())
1265  backgroundBrush.setColorAt(0, self.fillColor1)
1266  backgroundBrush.setColorAt(1, self.fillColor2)
1267 
1268  painter.setPen(self.framePenColor)
1269  painter.pen().setJoinStyle(Qt.RoundJoin)
1270  painter.setBrush(backgroundBrush)
1271 
1272  if self._backgroundShape == 'CIRCLE':
1273  self.defineCircleBackgroundShape(painter)
1274  elif self._backgroundShape == 'ROUNDRECT':
1275  self.defineRoundRectBackgroundShape(painter)
1276  else:
1277  self.defineRectBackgroundShape(painter)
1278 
1279  if self._arrowShape != None:
1281 
1282  painter.drawPath(self._backgroundShapePath)
1283 
1284  self.drawTitle(painter)
1285  self.drawBody(painter)
1286 
1287  if self.isSelected():
1288  # color frame
1289  framePen = QPen(self.SELECT_COLOR)
1290  framePen.setWidth(self.SELECTED_FRAME_WIDTH)
1291  painter.setPen(framePen)
1292  painter.setBrush(Qt.NoBrush)
1293  painter.drawPath(self._backgroundShapePath)
def Vispa.Gui.VispaWidget.VispaWidget.paintEvent (   self,
  event 
)
Reacts on paint event and calls paint() method.

Definition at line 1237 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.MenuWidget.MenuWidget.paint(), Vispa.Gui.VispaWidget.TextField.paint(), Vispa.Gui.VispaWidget.VispaWidget.paint(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< DDLogicalPart, DDPosData * >.parent(), graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< N, E >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, Vispa.Views.LineDecayView.DecayObject.parent(), AlignableData< T >.pos(), PhysicsTools::SourceVariableSet::PosVar.pos, CaloNavigator< DetId >.pos(), CaloNavigator< EcalDetId >.pos(), CaloNavigator< EBDetId >.pos(), CaloNavigator< T >.pos(), CaloNavigator< CaloTowerDetId >.pos(), CaloNavigator< EEDetId >.pos(), CaloNavigator< ESDetId >.pos(), geometryXMLparser.Alignable.pos(), DTSegmentExtendedCand::DTSLRecClusterForFit.pos, STLInputStream.pos, CaloG4Hit.pos, MatacqProducer::PosEstimator.pos(), PhysicsTools::BitSet::Iterator.pos, lhef::CBInputStream.pos, lhef::STLInputStream.pos, lhef::StorageInputStream.pos, CLookToRead.pos, and Vispa.Gui.Zoomable.Zoomable.zoom().

1238  def paintEvent(self, event):
1239  """ Reacts on paint event and calls paint() method.
1240  """
1241  #logging.debug(self.__class__.__name__ +": paintEvent()")
1242  painter = QPainter(self)
1243  if isinstance(self.parent(), VispaWidget):
1244  painter.setClipRegion(event.region().intersected(QRegion(self.parent().contentRect().translated(- self.pos()))))
1245  else:
1246  painter.setClipRegion(event.region())
1247 
1248  if self.zoom() > 30:
1249  painter.setRenderHint(QPainter.Antialiasing)
1250  else:
1251  painter.setRenderHint(QPainter.Antialiasing, False)
1252 
1253  self.paint(painter)
1254  ZoomableWidget.paintEvent(self, event)
def Vispa.Gui.VispaWidget.VispaWidget.penColor (   self)
Returns pen color for this widget.

Definition at line 504 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.framePenColor.

505  def penColor(self):
506  """ Returns pen color for this widget.
507  """
508  return self.framePenColor
def Vispa.Gui.VispaWidget.VispaWidget.previousDragPosition (   self)
Returns position from before previous drag operation.

E.g. used for undo function.

Definition at line 1371 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition.

1372  def previousDragPosition(self):
1373  """ Returns position from before previous drag operation.
1374 
1375  E.g. used for undo function.
1376  """
1377  #print "VispaWidget.previousDragPosition()", self._previusDragPosition
1378  return self._previusDragPosition
def Vispa.Gui.VispaWidget.VispaWidget.rearangeContent (   self)
Checks which components have to be regarded for size calculation.

If you want to make sure this function is called next time a distance is requested use call scheduleRearangeContent().
This function is stronger than autosize, as it also recalculates dimensions of children (e.g. text field).
If content did not change autosize is probably the better approach.  

Definition at line 861 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget.autosize(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.showEvent().

862  def rearangeContent(self):
863  """ Checks which components have to be regarded for size calculation.
864 
865  If you want to make sure this function is called next time a distance is requested use call scheduleRearangeContent().
866  This function is stronger than autosize, as it also recalculates dimensions of children (e.g. text field).
867  If content did not change autosize is probably the better approach.
868  """
869  self._rearangeContentFlag = False
870  # does not work with box decay tree (needs correct sizes before on screen)
871  #if not self.isVisible():
872  # return
873 
874  #logging.debug(self.__class__.__name__ +": rearangeContent() ")
875 
876  if self.textFieldIsSet():
877  self._textField.setDefaultWidth(self.getDistance('textFieldWidth', 1, True))
878  self._textField.setDefaultHeight(self.getDistance('textFieldHeight', 1, True))
879  self._textField.calculateDimensions()
880  if self.titleIsSet():
881  self._titleField.setDefaultWidth(self.getDistance('titleFieldWidth', 1, True))
882  self._titleField.setDefaultHeight(self.getDistance('titleFieldHeight', 1, True))
883  self._titleField.calculateDimensions()
884 
886  if self._autosizeFlag:
887  self.autosize()
def Vispa.Gui.VispaWidget.VispaWidget.resetMouseDragOffset (   self)

Definition at line 1301 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, and Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.mouseReleaseEvent().

1302  def resetMouseDragOffset(self):
1303  self._dragMouseXrel = 0
1304  self._dragMouseYrel = 0
def Vispa.Gui.VispaWidget.VispaWidget.resize (   self,
  width,
  height 
)

Definition at line 827 of file VispaWidget.py.

Referenced by Vispa.Gui.TextDialog.TextDialog.__init__(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog.__init__(), Vispa.Main.MainWindow.MainWindow._loadIni(), and Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().

828  def resize(self, width, height):
829  self.WIDTH = width / self.zoomFactor()
830  self.HEIGHT = height / self.zoomFactor()
831  ZoomableWidget.resize(self, self.width(), self.height())
def Vispa.Gui.VispaWidget.VispaWidget.scale (   self)
Return scale factor of widget.

Definition at line 488 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._scale.

Referenced by Vispa.Gui.PortWidget.PortWidget.connectionPoint(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), Vispa.Gui.ConnectableWidget.ConnectableWidget.getEffectivePortHeight(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.VispaWidget.VispaWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), and Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint().

489  def scale(self):
490  """ Return scale factor of widget.
491  """
492  return self._scale
def Vispa.Gui.VispaWidget.VispaWidget.scheduleCalculateDistances (   self)
Sets distancesHaveToBeRecalculatedFlag to True.

Next time defineDistances() is called distances are recalculated even if zoom has not changed.

Definition at line 888 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag.

889  def scheduleCalculateDistances(self):
890  """ Sets distancesHaveToBeRecalculatedFlag to True.
891 
892  Next time defineDistances() is called distances are recalculated even if zoom has not changed.
893  """
def Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent (   self)
Makes sure rearangeContent() will be called next time a distance is requested.

See rearangeContent().

Definition at line 900 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget._addPort(), Vispa.Gui.MenuWidget.MenuWidget.addEntry(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), Vispa.Gui.ConnectableWidget.ConnectableWidget.removePort(), Vispa.Gui.ConnectableWidget.ConnectableWidget.removePorts(), Vispa.Gui.VispaWidget.VispaWidget.setBodyWidget(), Vispa.Gui.MenuWidget.MenuWidget.setEntryText(), Vispa.Gui.VispaWidget.VispaWidget.setMaximumSize(), Vispa.Gui.VispaWidget.VispaWidget.setMinimumSize(), Vispa.Gui.VispaWidget.VispaWidget.setText(), Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutosizeFont(), Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutotruncateText(), and Vispa.Gui.VispaWidget.VispaWidget.setTitle().

901  def scheduleRearangeContent(self):
902  """ Makes sure rearangeContent() will be called next time a distance is requested.
903 
904  See rearangeContent().
905  """
906  self._rearangeContentFlag = True
def Vispa.Gui.VispaWidget.VispaWidget.select (   self,
  sel = True,
  multiSelect = False 
)
Marks this widget as selected and informs parent if parent is VispaWidetOwner.

If multiSelect is True e.g. due to a pressed Ctrl button while clicking (see mousePressEvent()),
the VispaWidgetOwner will also be informed and might not deselect all widgets.

Definition at line 629 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectedFlag, Vispa.Gui.VispaWidget.VispaWidget._selectedFlag, Vispa.Gui.PortConnection.PointToPointConnection.isSelectable(), Vispa.Gui.VispaWidget.VispaWidget.isSelectable(), DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), python.multivaluedict.MyUserList.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), EmDQMReco::FourVectorMonitorElements.parent, graphwalker< N, E >.parent(), graphwalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), graphwalker< DDLogicalPart, DDPosData * >.parent(), OpticalObject.parent(), DDLSAX2FileHandler.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, DDFilteredView.parent(), confdb.HLTProcess.parent, DDExpandedView.parent(), DDDivision.parent(), stor::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), argparse.HelpFormatter._Section.parent, python.rootplot.argparse.HelpFormatter._Section.parent, globcontrol.parent, TiXmlNode.parent, Vispa.Views.LineDecayView.DecayObject.parent(), DDDWorldObserver< Event >.update(), SaveSimTrack.update(), PTStatistics.update(), PixelTrackFilter.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), HIPixelTrackFilter.update(), HIProtoTrackFilter.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), KalmanAlignmentMetricsUpdator.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), HICMuonUpdator.update(), SimpleMetricsUpdator.update(), MSLayersAtAngle.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), MultiMetricsUpdator.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), VpspScanTask.update(), ErrorCorrelation.update(), FedTimingTask.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), PedestalsTask.update(), OptoScanTask.update(), DummyMetricsUpdator.update(), GsfMultiStateUpdator.update(), MonopoleSteppingAction.update(), ApvTimingHistosUsingDb.update(), NoiseHistosUsingDb.update(), PedestalsHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), CalibrationScanTask.update(), CalibrationTask.update(), FineDelayTask.update(), LatencyTask.update(), RHStopTracer.update(), CurrentAlignmentKFUpdator.update(), FastFedCablingHistosUsingDb.update(), PrintSensitive.update(), FedCablingTask.update(), SamplingHistosUsingDb.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), EcalUnpackerWorkerBase.update(), KFStrip1DUpdator.update(), KFStripUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), CalibrationHistosUsingDb.update(), KFSwitchingUpdator.update(), ChildUpdator.update(), PedsFullNoiseTask.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintMaterialBudgetInfo.update(), FineDelayHistosUsingDb.update(), progressbar.Widget.update(), ora::PVectorUpdater.update(), MeasurementTracker.update(), KinematicConstrainedVertexUpdator.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), StoreSecondary.update(), ESUnpackerWorker.update(), BinomialProbability.update(), OnDemandMeasurementTracker.update(), TrackingMaterialProducer.update(), GraphPath< N, E >.update(), MuonServiceProxy.update(), EcalUnpackerWorker.update(), GflashG4Watcher.update(), EcalSimHitsValidProducer.update(), MaterialBudgetForward.update(), funct::Master< F >.update(), CheckSecondary.update(), pat::CandidateSummaryTable::Record.update(), Observer< T >.update(), KFSwitching1DUpdator.update(), Observer< const DDDWorld * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfTrack * >.update(), Observer< const T * >.update(), Observer< const BeginOfJob * >.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const EndOfRun * >.update(), KalmanVertexTrackUpdator< 5 >.update(), HLTMonBTagClient.update(), KFUpdator.update(), KalmanVertexTrackUpdator< N >.update(), HcalTestAnalysis.update(), HcaluLUTTPGCoder.update(), CaloTrkProcessing.update(), pos::PixelConfig.update(), TkStripMeasurementDet.update(), jptJetAnalysis::TrackPropagatorToCalo.update(), ora::IRelationalUpdater.update(), FWJobMetadataManager.update(), BasicMultiTrajectoryState.update(), KalmanAlignmentUserVariables.update(), TrackingVerboseAction.update(), PhysicsTools::TreeReader.update(), MaterialBudgetAction.update(), ora::QueryableVectorUpdater.update(), FiberSD.update(), KalmanVertexUpdator< 5 >.update(), SingleParticleEvent.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), SimG4HcalValidation.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), simwatcher::BeginOfTrackCounter.update(), FWParameterSetterBase.update(), MuonTrajectoryUpdator.update(), progressbar.Timer.update(), TotemTestGem.update(), PLTSensitiveDetector.update(), DQMOldReceiver.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), ora::OraPtrUpdater.update(), jptJetAnalysis::StripSignalOverNoiseCalculator.update(), LaserAlignmentSimulation.update(), HcalTB02Analysis.update(), ora::PrimitiveUpdater.update(), ora::UniqueRefUpdater.update(), ora::CArrayUpdater.update(), ora::OraReferenceUpdater.update(), HcalTB06Analysis.update(), ApvAnalysisFactory.update(), BTagPerformanceAnalyzerOnData.update, TotemSD.update(), progressbar.WidgetHFill.update(), ora::ObjectUpdater.update(), HcalForwardAnalysis.update(), MuonSensitiveDetector.update(), MeasurementTrackerImpl.update(), StMeasurementDetSet.update(), ora::BlobUpdater.update(), SimTracer.update(), ora::InlineCArrayUpdater.update(), HcalTB04Analysis.update(), sistrip::RawToDigiUnpacker.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), ora::STLContainerUpdater.update(), DynamicTruncation.update(), EcalTBH4Trigger.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfRun >.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), CastorTestAnalysis.update(), ZdcTestAnalysis.update(), CaloSD.update(), BTagPerformanceAnalyzerMC.update, BscSD.update(), edm::service::SimpleMemoryCheck.update(), edm::BMixingModule.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), ora::Container.update(), BetafuncEvtVtxGenerator.update(), PhysicsTools::TreeReader::Value.update(), progressbar.Bar.update(), FP420SD.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), HLTScalersClient::CountLSFifo_t.update(), CastorShowerLibraryMaker.update(), MonitorElement.update(), ora::Database.update(), StandAloneMuonFilter.update(), DTRecSegment2D.update(), DQMNet::Peer.update, FWPSetTableManager.update(), CommissioningTask.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, G4StepStatistics.update(), FWLiteESRecordWriterAnalyzer.update(), python.seqvaluedict.seqdict.update(), FP420Test.update(), Folder.update(), BscTest.update(), TrajectoryStateOnSurface.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), DetSetVector< SiStripCluster >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), DetSetVector< T >.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), and evf::iDie::lsStat.update().

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.find(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), and Vispa.Views.AbstractView.AbstractView.restoreSelection().

630  def select(self, sel=True, multiSelect=False):
631  """ Marks this widget as selected and informs parent if parent is VispaWidetOwner.
632 
633  If multiSelect is True e.g. due to a pressed Ctrl button while clicking (see mousePressEvent()),
634  the VispaWidgetOwner will also be informed and might not deselect all widgets.
635  """
636  if not self.isSelectable():
637  return
638 
639  if sel != self._selectedFlag:
640  self.update()
641 
642  self._selectedFlag = sel
643 
644  # TODO: raise in front of other widget, not in front of line
645 # if sel:
646 # self.raise_()
647 
648  if (multiSelect or self.isSelected()) and isinstance(self.parent(), VispaWidgetOwner):
649  self.parent().widgetSelected(self, multiSelect)
def Vispa.Gui.VispaWidget.VispaWidget.setArrowShape (   self,
  direction 
)
In addition to normal shape this gives whole widget the shape of an arrow.

Possible values for direction are
None
ARROW_SHAPE_TOP
ARROW_SHAPE_LEFT
ARROW_SHAPE_BOTTOM
ARROW_SHAPE_RIGHT

Definition at line 547 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape.

548  def setArrowShape(self, direction):
549  """ In addition to normal shape this gives whole widget the shape of an arrow.
550 
551  Possible values for direction are
552  None
553  ARROW_SHAPE_TOP
554  ARROW_SHAPE_LEFT
555  ARROW_SHAPE_BOTTOM
556  ARROW_SHAPE_RIGHT
557  """
558  self._arrowShape = direction
def Vispa.Gui.VispaWidget.VispaWidget.setBodyWidget (   self,
  widget 
)
Accepts any QWidget and displays into the body section.

The body section is below the header.

Definition at line 1473 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, FWDisplayProperties.isVisible(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

1474  def setBodyWidget(self, widget):
1475  """ Accepts any QWidget and displays into the body section.
1476 
1477  The body section is below the header.
1478  """
1479  self._bodyWidget = widget
1480  self._bodyWidget.setParent(self)
1481  if self.isVisible():
1482  self._bodyWidget.setVisible(True)
def Vispa.Gui.VispaWidget.VispaWidget.setColors (   self,
  penColor,
  fillColor1,
  fillColor2 
)
Sets colors of this widget.

The pen color will be used for drawing the widget's frame.
Fill color 1 and 2 will be used for background color gradient.

Definition at line 530 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.fillColor1, Vispa.Gui.VispaWidget.VispaWidget.fillColor2, and Vispa.Gui.VispaWidget.VispaWidget.framePenColor.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

531  def setColors(self, penColor, fillColor1, fillColor2):
532  """ Sets colors of this widget.
533 
534  The pen color will be used for drawing the widget's frame.
535  Fill color 1 and 2 will be used for background color gradient.
536  """
537  self.framePenColor = penColor
538  self.fillColor1 = fillColor1
539  self.fillColor2 = fillColor2
def Vispa.Gui.VispaWidget.VispaWidget.setDeletable (   self,
  deleteable 
)

Definition at line 603 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._deletableFlag, and Vispa.Gui.VispaWidget.VispaWidget._deletableFlag.

604  def setDeletable(self, deleteable):
605  self._deletableFlag = deleteable
def Vispa.Gui.VispaWidget.VispaWidget.setDragable (   self,
  dragable,
  recursive = False 
)
If True the widget can be dragged using a pointing device.

If recursive is True also dragablitiy of all children will be set. 

Definition at line 516 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().

517  def setDragable(self, dragable, recursive=False):
518  """ If True the widget can be dragged using a pointing device.
519 
520  If recursive is True also dragablitiy of all children will be set.
521  """
522  self._dragableFlag = dragable
523  if recursive:
524  for child in self.children():
525  if isinstance(child, VispaWidget):
526  child.setDragable(dragable, True)
def Vispa.Gui.VispaWidget.VispaWidget.setDragReferencePoint (   self,
  pos 
)

Definition at line 1294 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, and Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel.

1295  def setDragReferencePoint(self, pos):
1296  self._dragMouseXrel = pos.x()
1297  self._dragMouseYrel = pos.y()
def Vispa.Gui.VispaWidget.VispaWidget.setImage (   self,
  image 
)
The given image will be shown in the centre of the widget.

Currently supported image types are QPixmap and QSvgRenderer.

Definition at line 1416 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image.

1417  def setImage(self, image):
1418  """ The given image will be shown in the centre of the widget.
1419 
1420  Currently supported image types are QPixmap and QSvgRenderer.
1421  """
1422  self._image = image
def Vispa.Gui.VispaWidget.VispaWidget.setMaximumSize (   self,
  attr 
)

Definition at line 758 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

759  def setMaximumSize(self, *attr):
760  QWidget.setMaximumSize(self, *attr)
def Vispa.Gui.VispaWidget.VispaWidget.setMinimumSize (   self,
  attr 
)

Definition at line 762 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

763  def setMinimumSize(self, *attr):
764  QWidget.setMinimumSize(self, *attr)
def Vispa.Gui.VispaWidget.VispaWidget.setPreviousDragPosition (   self,
  position 
)

Definition at line 1368 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition.

1369  def setPreviousDragPosition(self, position):
1370  self._previusDragPosition = position
def Vispa.Gui.VispaWidget.VispaWidget.setSelectable (   self,
  selectable 
)
Makes widget selectable if True.

Definition at line 588 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectableFlag, Vispa.Gui.VispaWidget.VispaWidget._selectableFlag, Vispa.Gui.PortConnection.PointToPointConnection.FOCUSPOLICY, and Vispa.Gui.VispaWidget.VispaWidget.FOCUSPOLICY.

589  def setSelectable(self, selectable):
590  """ Makes widget selectable if True.
591  """
592  self._selectableFlag = bool(selectable)
593 
594  if self._selectableFlag:
595  self.setFocusPolicy(self.FOCUSPOLICY)
596  else:
597  self.setFocusPolicy(Qt.NoFocus)
def Vispa.Gui.VispaWidget.VispaWidget.setShape (   self,
  shape 
)
Sets shape of this widget.

Right now supported 'RECT' (default), 'ROUNDRECT', 'CIRCLE'.

Definition at line 540 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShape.

541  def setShape(self, shape):
542  """ Sets shape of this widget.
543 
544  Right now supported 'RECT' (default), 'ROUNDRECT', 'CIRCLE'.
545  """
546  self._backgroundShape = shape
def Vispa.Gui.VispaWidget.VispaWidget.setText (   self,
  text 
)
Sets text for text field.

Definition at line 719 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), FWFramedTextTableCellRenderer.font(), FWTextTableCellRenderer.font(), Vispa.Gui.VispaWidget.TextField.font(), Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), CSGAction.setToolTip(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setToolTip(), DDDWorldObserver< Event >.update(), SaveSimTrack.update(), PTStatistics.update(), PixelTrackFilter.update(), KillSecondariesTrackAction.update(), KillSecondariesRunAction.update(), HIPixelTrackFilter.update(), HIProtoTrackFilter.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), reco::KalmanGhostTrackUpdater.update(), KalmanAlignmentMetricsUpdator.update(), SimpleMetricsUpdator.update(), DDG4ProductionCuts.update(), HICMuonUpdator.update(), MSLayersAtAngle.update(), MultiMetricsUpdator.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), FedTimingTask.update(), VpspScanTask.update(), ErrorCorrelation.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), OptoScanTask.update(), PedestalsTask.update(), GsfMultiStateUpdator.update(), DummyMetricsUpdator.update(), FineDelayTask.update(), LatencyTask.update(), MonopoleSteppingAction.update(), ApvTimingHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), CalibrationScanTask.update(), CalibrationTask.update(), RHStopTracer.update(), CurrentAlignmentKFUpdator.update(), FastFedCablingHistosUsingDb.update(), PrintSensitive.update(), FedCablingTask.update(), SamplingHistosUsingDb.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), EcalUnpackerWorkerBase.update(), KFStripUpdator.update(), KFStrip1DUpdator.update(), CheckOverlap.update(), LatencyHistosUsingDb.update(), CalibrationHistosUsingDb.update(), KFSwitchingUpdator.update(), ChildUpdator.update(), PedsFullNoiseTask.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintMaterialBudgetInfo.update(), progressbar.Widget.update(), FineDelayHistosUsingDb.update(), ora::PVectorUpdater.update(), MeasurementTracker.update(), KinematicConstrainedVertexUpdator.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), StoreSecondary.update(), ESUnpackerWorker.update(), BinomialProbability.update(), OnDemandMeasurementTracker.update(), TrackingMaterialProducer.update(), GraphPath< N, E >.update(), MuonServiceProxy.update(), MaterialBudgetForward.update(), EcalUnpackerWorker.update(), GflashG4Watcher.update(), EcalSimHitsValidProducer.update(), funct::Master< F >.update(), Observer< const BeginOfJob * >.update(), CheckSecondary.update(), Observer< T >.update(), KFSwitching1DUpdator.update(), pat::CandidateSummaryTable::Record.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfEvent * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const Event * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfTrack * >.update(), HLTMonBTagClient.update(), KFUpdator.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), CaloTrkProcessing.update(), HcalTestAnalysis.update(), HcaluLUTTPGCoder.update(), pos::PixelConfig.update(), TkStripMeasurementDet.update(), jptJetAnalysis::TrackPropagatorToCalo.update(), ora::IRelationalUpdater.update(), KalmanAlignmentUserVariables.update(), FWJobMetadataManager.update(), BasicMultiTrajectoryState.update(), TrackingVerboseAction.update(), PhysicsTools::TreeReader.update(), MaterialBudgetAction.update(), ora::QueryableVectorUpdater.update(), FiberSD.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), SingleParticleEvent.update(), SimG4HcalValidation.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), simwatcher::BeginOfTrackCounter.update(), MuonTrajectoryUpdator.update(), FWParameterSetterBase.update(), progressbar.Timer.update(), TotemTestGem.update(), PLTSensitiveDetector.update(), DQMOldReceiver.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), ora::OraPtrUpdater.update(), LaserAlignmentSimulation.update(), jptJetAnalysis::StripSignalOverNoiseCalculator.update(), HcalTB02Analysis.update(), ora::PrimitiveUpdater.update(), ora::UniqueRefUpdater.update(), ora::OraReferenceUpdater.update(), ora::CArrayUpdater.update(), BTagPerformanceAnalyzerOnData.update, HcalTB06Analysis.update(), ApvAnalysisFactory.update(), ora::ObjectUpdater.update(), TotemSD.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), MuonSensitiveDetector.update(), ora::BlobUpdater.update(), MeasurementTrackerImpl.update(), StMeasurementDetSet.update(), SimTracer.update(), ora::InlineCArrayUpdater.update(), HcalTB04Analysis.update(), sistrip::RawToDigiUnpacker.update(), DTVDriftCalibration::cellInfo.update(), DTSegmentUpdator.update(), DAClusterizerInZ.update(), ora::STLContainerUpdater.update(), DynamicTruncation.update(), EcalTBH4Trigger.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< T >.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), CastorTestAnalysis.update(), ZdcTestAnalysis.update(), CaloSD.update(), BTagPerformanceAnalyzerMC.update, BscSD.update(), edm::service::SimpleMemoryCheck.update(), edm::BMixingModule.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), ora::Container.update(), BetafuncEvtVtxGenerator.update(), PhysicsTools::TreeReader::Value.update(), progressbar.Bar.update(), FP420SD.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), HLTScalersClient::CountLSFifo_t.update(), CastorShowerLibraryMaker.update(), MonitorElement.update(), ora::Database.update(), StandAloneMuonFilter.update(), DTRecSegment2D.update(), DQMNet::Peer.update, CommissioningTask.update(), FWPSetTableManager.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, G4StepStatistics.update(), FWLiteESRecordWriterAnalyzer.update(), python.seqvaluedict.seqdict.update(), FP420Test.update(), Folder.update(), BscTest.update(), TrajectoryStateOnSurface.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), const_iterator.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), DetSetVector< SiPixelCluster >.update(), edmNew::DetSetVector< T >.update(), and evf::iDie::lsStat.update().

Referenced by Vispa.Gui.PortWidget.PortWidget.setDescription().

720  def setText(self, text):
721  """ Sets text for text field.
722  """
723  #logging.debug(self.__class__.__name__ +": setText() - %s (%s)" % (str(text), str(type(text))))
724  self._initTextField()
725  self._textField.setFont(self.font())
726  self._textField.setText(text)
727 
729 
730  self.setToolTip(self._textField.text())
731  self.update()
def Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutosizeFont (   self,
  auto 
)
Sets auto resize flag of text field.

Definition at line 744 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

745  def setTextFieldAutosizeFont(self, auto):
746  """ Sets auto resize flag of text field.
747  """
748  self._initTextField()
749  self._textField.setAutosizeFont(auto)
def Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutotruncateText (   self,
  auto 
)
Sets auto truncate flag of text field.

Definition at line 751 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

752  def setTextFieldAutotruncateText(self, auto):
753  """ Sets auto truncate flag of text field.
754  """
755  self._initTextField()
756  self._textField.setAutotruncate(auto)
def Vispa.Gui.VispaWidget.VispaWidget.setTitle (   self,
  title 
)
Sets title text.

Definition at line 683 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTitleField(), FWFramedTextTableCellRenderer.font(), FWTextTableCellRenderer.font(), Vispa.Gui.VispaWidget.TextField.font(), Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), DDDWorldObserver< Event >.update(), SaveSimTrack.update(), PixelTrackFilter.update(), PTStatistics.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), HIPixelTrackFilter.update(), HIProtoTrackFilter.update(), PrintTrackNumberAction.update(), KalmanAlignmentMetricsUpdator.update(), GenericMVAComputerCache.update(), reco::KalmanGhostTrackUpdater.update(), SimpleMetricsUpdator.update(), DDG4ProductionCuts.update(), HICMuonUpdator.update(), MSLayersAtAngle.update(), TrajectoryStateUpdator.update(), MultiMetricsUpdator.update(), FastFedCablingTask.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), VpspScanTask.update(), ErrorCorrelation.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), FedTimingTask.update(), OptoScanTask.update(), PedestalsTask.update(), GsfMultiStateUpdator.update(), DummyMetricsUpdator.update(), LatencyTask.update(), MonopoleSteppingAction.update(), ApvTimingHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), CalibrationTask.update(), CalibrationScanTask.update(), FineDelayTask.update(), RHStopTracer.update(), CurrentAlignmentKFUpdator.update(), FastFedCablingHistosUsingDb.update(), PrintSensitive.update(), FedCablingTask.update(), SamplingHistosUsingDb.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), EcalUnpackerWorkerBase.update(), KFStrip1DUpdator.update(), KFStripUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), CalibrationHistosUsingDb.update(), KFSwitchingUpdator.update(), ChildUpdator.update(), PedsFullNoiseTask.update(), CountProcessesAction.update(), PrintMaterialBudgetInfo.update(), PrintGeomInfoAction.update(), progressbar.Widget.update(), FineDelayHistosUsingDb.update(), ora::PVectorUpdater.update(), MeasurementTracker.update(), KinematicConstrainedVertexUpdator.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), StoreSecondary.update(), ESUnpackerWorker.update(), BinomialProbability.update(), OnDemandMeasurementTracker.update(), TrackingMaterialProducer.update(), GraphPath< N, E >.update(), MuonServiceProxy.update(), GflashG4Watcher.update(), EcalUnpackerWorker.update(), EcalSimHitsValidProducer.update(), funct::Master< F >.update(), MaterialBudgetForward.update(), CheckSecondary.update(), Observer< T >.update(), Observer< const EndOfEvent * >.update(), pat::CandidateSummaryTable::Record.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfTrack * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const Event * >.update(), KFSwitching1DUpdator.update(), Observer< const BeginOfJob * >.update(), HLTMonBTagClient.update(), KFUpdator.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), CaloTrkProcessing.update(), HcalTestAnalysis.update(), HcaluLUTTPGCoder.update(), pos::PixelConfig.update(), TkStripMeasurementDet.update(), jptJetAnalysis::TrackPropagatorToCalo.update(), ora::IRelationalUpdater.update(), FWJobMetadataManager.update(), BasicMultiTrajectoryState.update(), KalmanAlignmentUserVariables.update(), PhysicsTools::TreeReader.update(), TrackingVerboseAction.update(), MaterialBudgetAction.update(), ora::QueryableVectorUpdater.update(), FiberSD.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), SimG4HcalValidation.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), simwatcher::BeginOfTrackCounter.update(), FWParameterSetterBase.update(), MuonTrajectoryUpdator.update(), progressbar.Timer.update(), TotemTestGem.update(), PLTSensitiveDetector.update(), DQMOldReceiver.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), ora::OraPtrUpdater.update(), LaserAlignmentSimulation.update(), jptJetAnalysis::StripSignalOverNoiseCalculator.update(), HcalTB02Analysis.update(), ora::PrimitiveUpdater.update(), ora::UniqueRefUpdater.update(), ora::OraReferenceUpdater.update(), ora::CArrayUpdater.update(), HcalTB06Analysis.update(), BTagPerformanceAnalyzerOnData.update, ApvAnalysisFactory.update(), ora::ObjectUpdater.update(), progressbar.WidgetHFill.update(), TotemSD.update(), MuonSensitiveDetector.update(), HcalForwardAnalysis.update(), ora::BlobUpdater.update(), MeasurementTrackerImpl.update(), StMeasurementDetSet.update(), SimTracer.update(), ora::InlineCArrayUpdater.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), DTSegmentUpdator.update(), ora::STLContainerUpdater.update(), DynamicTruncation.update(), EcalTBH4Trigger.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< G4Step >.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), CaloSD.update(), BTagPerformanceAnalyzerMC.update, BscSD.update(), edm::service::SimpleMemoryCheck.update(), edm::BMixingModule.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), ora::Container.update(), BetafuncEvtVtxGenerator.update(), PhysicsTools::TreeReader::Value.update(), progressbar.Bar.update(), FP420SD.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), HLTScalersClient::CountLSFifo_t.update(), CastorShowerLibraryMaker.update(), MonitorElement.update(), ora::Database.update(), StandAloneMuonFilter.update(), DTRecSegment2D.update(), DQMNet::Peer.update, CommissioningTask.update(), FWPSetTableManager.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, G4StepStatistics.update(), FWLiteESRecordWriterAnalyzer.update(), python.seqvaluedict.seqdict.update(), FP420Test.update(), Folder.update(), BscTest.update(), TrajectoryStateOnSurface.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), DetSetVector< ClusterType >.update(), const_iterator.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< T >.update(), edmNew::DetSetVector< T >.update(), and evf::iDie::lsStat.update().

Referenced by Vispa.Gui.PortWidget.PortWidget.setName(), and Vispa.Views.LineDecayView.LineDecayContainer.setPxlObject().

684  def setTitle(self, title):
685  """ Sets title text.
686  """
687  self._initTitleField()
688  self._titleField.setFont(self.font())
689  self._titleField.setText(title)
691  self.update()
def Vispa.Gui.VispaWidget.VispaWidget.setZoom (   self,
  zoom 
)
Sets widget's zoom.

Definition at line 493 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag, Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY, cscdqm::StripClusterFitData.height(), GifDisplay.height, FedTimingAnalysis.height(), lhef::SimpleMatrix< T >.height, btag::SimpleMatrix< T >.height, produceOfflineValidationTex.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), ApvTimingAnalysis.height(), FWTableCellRendererBase.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, AlignableDetUnit.move(), AlignableBeamSpot.move(), AlignableComposite.move(), CaloGeometryHelper.move(), Alignable.move(), GloballyPositioned< T >.move(), Vispa.Gui.ConnectableWidget.ConnectableWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.move(), CaloMeanResponse.scale, LocalError.scale(), CaloSamples.scale(), DQMRivetClient::ScaleFactorOption.scale, python.rootplot.rootmath.Target.scale, reco::PattRecoPeak< Real >.scale(), python.rootplot.tree2hists.RootTree.scale, MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), TmModule.width, Random_struct.width, OpenBounds.width(), GifDisplay.width, SimpleDiskBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), GeneralTrapezoidalPlaneBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, RooCB.width, GeneralNSurfaceDelimitedBounds.width(), Bounds.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, lhef::SimpleMatrix< T >.width, btag::SimpleMatrix< T >.width, function::ZMuMuFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), produceOfflineValidationTex.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), RooDoubleCB.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), timing.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), RooRelBW.width, DDDivision.width(), python.rootplot.utilities.Hist.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), svgfig.Dots.width, and Vispa.Gui.Zoomable.Zoomable.zoom().

Referenced by Vispa.Gui.Zoomable.Zoomable.decrementZoom(), Vispa.Gui.Zoomable.Zoomable.incrementZoom(), Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().

494  def setZoom(self, zoom):
495  """ Sets widget's zoom.
496  """
497  ZoomableWidget.setZoom(self, zoom)
498 
499  self._scale = self.zoom() * 0.01
500  ZoomableWidget.resize(self, self.width(), self.height())
501 
503  self.move(self._unzoomedPositionX * self.scale(), self._unzoomedPositionY * self.scale())
def Vispa.Gui.VispaWidget.VispaWidget.showEvent (   self,
  event 
)
Calls rearangeContent() if needed.

Definition at line 907 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.ConnectableWidget.ConnectableWidget.rearangeContent(), and Vispa.Gui.VispaWidget.VispaWidget.rearangeContent().

908  def showEvent(self, event):
909  """ Calls rearangeContent() if needed.
910  """
911  # hasattr for some reason important
912  # sometimes a show event seems to occur before the constructor is called
913 # if hasattr(self, "_rearangeContentFlag") and hasattr(self, "_noRearangeContentFlag") and \
914 # self._rearangeContentFlag and not self._noRearangeContentFlag:
915 
916  if self._rearangeContentFlag and not self._noRearangeContentFlag:
917  self.rearangeContent()
918  ZoomableWidget.showEvent(self, event)
def Vispa.Gui.VispaWidget.VispaWidget.sizeHint (   self)
Calculates needed space for widget content.

Definition at line 766 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.height(), Vispa.Gui.VispaWidget.VispaWidget.imageSizeF(), max(), min, Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), and Vispa.Gui.VispaWidget.VispaWidget.width().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize().

767  def sizeHint(self):
768  """ Calculates needed space for widget content.
769  """
770  #if not self._autosizeFlag:
771  # return QSize(self.WIDTH, self.HEIGHT)
772 
773  self._scaleWidth = 1 # for getDistance()
774  self._scaleHeight = 1
775 
776  neededWidth = self.getDistance('leftMargin', 1) + self.getDistance('rightMargin', 1)
777  neededHeight = self.getDistance('topMargin', 1) + self.getDistance('bottomMargin', 1)
778 
779  titleFieldWidth = 0
780  titleFieldHeight = 0
781  titleIsSet = self.titleIsSet()
782  if titleIsSet:
783  titleFieldWidth = self.getDistance('titleFieldWidth', 1)
784  titleFieldHeight += self.getDistance('titleFieldHeight', 1)
785 
786  textFieldWidth = 0
787  textFieldHeight = 0
788  if self.textFieldIsSet():
789  textFieldWidth = self._textField.getWidth()
790  textFieldHeight += self._textField.getHeight()
791  bodyWidgetWidth = 0
792  bodyWidgetHeight = 0
793  if self._bodyWidget:
794  if self._bodyWidget.parent() != self:
795  self._bodyWidget = None
796  else:
797  sh = self._bodyWidget.sizeHint()
798  bodyWidgetWidth = sh.width()
799  bodyWidgetHeight = sh.height()
800 
801  imageSizeF = self.imageSizeF()
802  bodyWidth = max(textFieldWidth, bodyWidgetWidth, imageSizeF.width())
803  bodyHeight = max(textFieldHeight, bodyWidgetHeight, imageSizeF.height())
804 
805  if titleIsSet and bodyHeight != 0:
806  # gap between title and text
807  neededHeight += self.getDistance('bottomMargin', 1)
808 
809  neededWidth += max(bodyWidth, titleFieldWidth)
810  neededHeight += titleFieldHeight + bodyHeight
811 
812  # evaluate maximum size
813  maxWidth = self.maximumSize().width()
814  maxHeight = self.maximumSize().height()
815 
816  maxScaleWidth = min(1.0, 1.0 * maxWidth/neededWidth)
817  maxScaleHeight = min(1.0, 1.0 * maxHeight/neededHeight)
818  if maxScaleWidth != 1.0 or maxScaleHeight != 1.0:
819  # this is not limited by keepAspectRationFlag
820  # as it is about absolute sizes here
821  # ratio is evaluated in autosize()
822  scale = min(maxScaleWidth, maxScaleHeight)
823  neededWidth *= scale
824  neededHeight *= scale
825 
826  return QSize(max(self.minimumSize().width(), neededWidth), max(self.minimumSize().height(), neededHeight))
#define min(a, b)
Definition: mlp_lapack.h:161
const T & max(const T &a, const T &b)
def Vispa.Gui.VispaWidget.VispaWidget.text (   self)
Returns text of text field.

Definition at line 737 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet().

Referenced by Vispa.Views.TableView.TableWidgetItem.__lt__().

738  def text(self):
739  """ Returns text of text field.
740  """
741  if self.textFieldIsSet():
742  return self._textField.text()
743  return None
def Vispa.Gui.VispaWidget.VispaWidget.textField (   self)
Returns TextField object belonging to text field.

Definition at line 732 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._textField.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint().

733  def textField(self):
734  """ Returns TextField object belonging to text field.
735  """
736  return self._textField
def Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet (   self)
Returns True if text field text has been set to an non empty string.

Definition at line 712 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._textField.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.PortWidget.PortWidget.description(), Vispa.Gui.VispaWidget.VispaWidget.drawTextField(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.text().

713  def textFieldIsSet(self):
714  """ Returns True if text field text has been set to an non empty string.
715  """
716  if self._textField != None and not self._textField.empty():
717  return True
718  return False
def Vispa.Gui.VispaWidget.VispaWidget.title (   self)

Definition at line 695 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), and Vispa.Gui.PortWidget.PortWidget.name().

696  def title(self):
697  if self.titleIsSet():
698  return self._titleField.text()
699  return None
def Vispa.Gui.VispaWidget.VispaWidget.titleField (   self)

Definition at line 692 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._titleField.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTitleField().

693  def titleField(self):
694  return self._titleField
def Vispa.Gui.VispaWidget.VispaWidget.titleIsSet (   self)
Returns True if test field has been set to a non empty string.

Definition at line 676 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._titleField.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint(), Vispa.Gui.PortWidget.PortWidget.name(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.title().

677  def titleIsSet(self):
678  """ Returns True if test field has been set to a non empty string.
679  """
680  if self._titleField != None and not self._titleField.empty():
681  return True
682  return False
def Vispa.Gui.VispaWidget.VispaWidget.unzoomedX (   self)
Returns x coordinate the widget would have if zoom was set to 100%.

Definition at line 476 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX.

477  def unzoomedX(self):
478  """ Returns x coordinate the widget would have if zoom was set to 100%.
479  """
480  #logging.debug(self.__class__.__name__ +": unzoomedX() "+ str(self._unzoomedPositionY))
481  return int(self._unzoomedPositionX)
def Vispa.Gui.VispaWidget.VispaWidget.unzoomedY (   self)
Returns x coordinate the widget would have if zoom was set to 100%.

Definition at line 482 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY.

483  def unzoomedY(self):
484  """ Returns x coordinate the widget would have if zoom was set to 100%.
485  """
486  #logging.debug(self.__class__.__name__ +": unzoomedY() "+ str(self._unzoomedPositionY))
487  return int(self._unzoomedPositionY)
def Vispa.Gui.VispaWidget.VispaWidget.width (   self)
Returns width of this widget.

Definition at line 1027 of file VispaWidget.py.

References ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), 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.Views.LineDecayView.ParticleWidget.mouseMoveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView.resizeEvent(), Vispa.Views.PropertyView.PropertyView.sectionResized(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

1028  def width(self):
1029  """ Returns width of this widget.
1030  """
1031  #if self.parent() and self.parent().layout():
1032  # return QWidget.width(self)
1033  return self.getDistance('width')

Member Data Documentation

Vispa.Gui.VispaWidget.VispaWidget._arrowShape
private

Definition at line 451 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.paint(), and Vispa.Gui.VispaWidget.VispaWidget.setArrowShape().

Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag
private

Definition at line 455 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.enableAutopositionizeWhenZooming(), and Vispa.Gui.VispaWidget.VispaWidget.setZoom().

Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag
private

Definition at line 419 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), Vispa.Gui.VispaWidget.VispaWidget.autosizeEnabled(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), and Vispa.Gui.VispaWidget.VispaWidget.rearangeContent().

Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag
private

Definition at line 420 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), and Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing().

Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag
private

Definition at line 423 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.enableBackgroundGradient(), Vispa.Gui.VispaWidget.VispaWidget.isUseBackgroundGradientEnabled(), and Vispa.Gui.VispaWidget.VispaWidget.paint().

Vispa.Gui.VispaWidget.VispaWidget._backgroundShape
private

Definition at line 449 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.VispaWidget.VispaWidget.paint(), and Vispa.Gui.VispaWidget.VispaWidget.setShape().

Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath
private

Definition at line 450 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), and Vispa.Gui.VispaWidget.VispaWidget.paint().

Vispa.Gui.VispaWidget.VispaWidget._bodyWidget
private

Definition at line 457 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.bodyWidget(), Vispa.Gui.VispaWidget.VispaWidget.setBodyWidget(), and Vispa.Gui.VispaWidget.VispaWidget.sizeHint().

Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag
private

Definition at line 422 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.colorHeaderBackgroundEnabled(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), and Vispa.Gui.VispaWidget.VispaWidget.enableColorHeaderBackground().

Vispa.Gui.VispaWidget.VispaWidget._deletableFlag
private

Definition at line 436 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.isDeletable(), and Vispa.Gui.VispaWidget.VispaWidget.setDeletable().

Vispa.Gui.VispaWidget.VispaWidget._distances
private

Definition at line 441 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.distances(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag
private

Definition at line 442 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleCalculateDistances().

Vispa.Gui.VispaWidget.VispaWidget._distancesLastScale
private

Definition at line 445 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleHeight
private

Definition at line 447 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleWidth
private

Definition at line 446 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._dragableFlag
private

Definition at line 437 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.isDragable(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), and Vispa.Gui.VispaWidget.VispaWidget.setDragable().

Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel
private

Definition at line 438 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragReferencePoint(), Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget.mouseReleaseEvent(), Vispa.Gui.VispaWidget.VispaWidget.resetMouseDragOffset(), and Vispa.Gui.VispaWidget.VispaWidget.setDragReferencePoint().

Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel
private

Definition at line 439 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragReferencePoint(), Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget.mouseReleaseEvent(), Vispa.Gui.VispaWidget.VispaWidget.resetMouseDragOffset(), and Vispa.Gui.VispaWidget.VispaWidget.setDragReferencePoint().

Vispa.Gui.VispaWidget.VispaWidget._image
private

Definition at line 458 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawImage(), Vispa.Gui.VispaWidget.VispaWidget.imageSizeF(), and Vispa.Gui.VispaWidget.VispaWidget.setImage().

Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag
private

Definition at line 444 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.noRearangeContent(), and Vispa.Gui.VispaWidget.VispaWidget.showEvent().

Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition
private

Definition at line 474 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.previousDragPosition(), and Vispa.Gui.VispaWidget.VispaWidget.setPreviousDragPosition().

Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag
private

Definition at line 443 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), and Vispa.Gui.VispaWidget.VispaWidget.showEvent().

Vispa.Gui.VispaWidget.VispaWidget._scale
private

Definition at line 425 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawTextField(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.scale(), and Vispa.Gui.VispaWidget.VispaWidget.setZoom().

Vispa.Gui.VispaWidget.VispaWidget._scaleHeight
private

Definition at line 427 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.sizeHint().

Vispa.Gui.VispaWidget.VispaWidget._scaleWidth
private

Definition at line 426 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.sizeHint().

Vispa.Gui.VispaWidget.VispaWidget._selectableFlag
private

Definition at line 434 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.isSelectable(), and Vispa.Gui.VispaWidget.VispaWidget.setSelectable().

Vispa.Gui.VispaWidget.VispaWidget._selectedFlag
private

Definition at line 435 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.isSelected(), and Vispa.Gui.VispaWidget.VispaWidget.select().

Vispa.Gui.VispaWidget.VispaWidget._textField
private

Definition at line 433 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), Vispa.Gui.VispaWidget.VispaWidget.textField(), and Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet().

Vispa.Gui.VispaWidget.VispaWidget._titleField
private

Definition at line 421 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTitleField(), Vispa.Gui.VispaWidget.VispaWidget.titleField(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX
private

Definition at line 453 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), and Vispa.Gui.VispaWidget.VispaWidget.unzoomedX().

Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY
private

Definition at line 454 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), and Vispa.Gui.VispaWidget.VispaWidget.unzoomedY().

Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE = None
static

Definition at line 408 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_BOTTOM = 2
static

Definition at line 411 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_LEFT = 1
static

Definition at line 410 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_RIGHT = 3
static

Definition at line 412 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.ARROW_SHAPE_TOP = 0
static

Definition at line 409 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.ARROW_SIZE = 30
static

Definition at line 413 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget.AUTOPOSITIONIZE_WHEN_ZOOMING_FLAG = True
static

Definition at line 392 of file VispaWidget.py.

Vispa.Gui.VispaWidget.VispaWidget.AUTOSIZE = False
static

Definition at line 405 of file VispaWidget.py.

Vispa.Gui.VispaWidget.VispaWidget.AUTOSIZE_KEEP_ASPECT_RATIO = True
static

Definition at line 406 of file VispaWidget.py.

string Vispa.Gui.VispaWidget.VispaWidget.BACKGROUND_SHAPE = 'RECT'
static

Definition at line 352 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.BOTTOM_MARGIN = 5
static

Definition at line 356 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget.COLOR_HEADER_BACKGROUND_FLAG = True
static

Definition at line 395 of file VispaWidget.py.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

tuple Vispa.Gui.VispaWidget.VispaWidget.FILL_COLOR1 = QColor(188, 215, 241)
static

Definition at line 378 of file VispaWidget.py.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

tuple Vispa.Gui.VispaWidget.VispaWidget.FILL_COLOR2 = QColor(242, 230, 242)
static

Definition at line 379 of file VispaWidget.py.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

Vispa.Gui.VispaWidget.VispaWidget.fillColor1

Definition at line 430 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint(), and Vispa.Gui.VispaWidget.VispaWidget.setColors().

Vispa.Gui.VispaWidget.VispaWidget.fillColor2

Definition at line 431 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint(), and Vispa.Gui.VispaWidget.VispaWidget.setColors().

Vispa.Gui.VispaWidget.VispaWidget.FOCUSPOLICY = Qt.StrongFocus
static

Definition at line 389 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.setSelectable().

Vispa.Gui.VispaWidget.VispaWidget.framePenColor

Definition at line 429 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.VispaWidget.VispaWidget.penColor(), and Vispa.Gui.VispaWidget.VispaWidget.setColors().

int Vispa.Gui.VispaWidget.VispaWidget.HEIGHT = 80
static

Definition at line 348 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget.HEIGHT

Definition at line 829 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.HORIZONTAL_INNER_MARGIN = 5
static

Definition at line 358 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.LEFT_MARGIN = 5
static

Definition at line 355 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.MINIMUM_HEIGHT = 0
static

Definition at line 350 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.MINIMUM_WIDTH = 30
static

Definition at line 349 of file VispaWidget.py.

tuple Vispa.Gui.VispaWidget.VispaWidget.PEN_COLOR = QColor(128, 186, 224)
static

Definition at line 377 of file VispaWidget.py.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

int Vispa.Gui.VispaWidget.VispaWidget.RIGHT_MARGIN = 5
static

Definition at line 357 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.ROUNDRECT_RADIUS = 30
static

Definition at line 351 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), and Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape().

tuple Vispa.Gui.VispaWidget.VispaWidget.SELECT_COLOR = QColor('darkblue')
static

Definition at line 386 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

Vispa.Gui.VispaWidget.VispaWidget.SELECTABLE_FLAG = True
static

Definition at line 388 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.SELECTED_FRAME_WIDTH = 2
static

Definition at line 390 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), and Vispa.Gui.VispaWidget.VispaWidget.paint().

Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_AUTOSIZE_FONT_FLAG = False
static

Definition at line 402 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.MenuWidget.MenuWidget.addEntry().

Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_AUTOTRUNCATE_TEXT_FLAG = False
static

Definition at line 403 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.MenuWidget.MenuWidget.addEntry().

Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FLAGS = Qt.TextWordWrap
static

Definition at line 401 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField().

int Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE = 12
static

Definition at line 398 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.MenuWidget.MenuWidget.addEntry().

int Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE_MAX = 20
static

Definition at line 400 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.MenuWidget.MenuWidget.addEntry().

int Vispa.Gui.VispaWidget.VispaWidget.TEXTFIELD_FONTSIZE_MIN = 2
static

Definition at line 399 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.MenuWidget.MenuWidget.addEntry().

tuple Vispa.Gui.VispaWidget.VispaWidget.TITLE_COLOR = QColor(Qt.white)
static

Definition at line 380 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTitleField().

int Vispa.Gui.VispaWidget.VispaWidget.TITLEFIELD_FONTSIZE = 12
static

Definition at line 394 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTitleField().

int Vispa.Gui.VispaWidget.VispaWidget.TOP_MARGIN = 5
static

Definition at line 354 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget.USE_BACKGROUND_GRADIENT_FLAG = True
static

Definition at line 396 of file VispaWidget.py.

int Vispa.Gui.VispaWidget.VispaWidget.VERTICAL_INNTER_MARGIN = 5
static

Definition at line 359 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

int Vispa.Gui.VispaWidget.VispaWidget.WIDTH = 100
static

Definition at line 347 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget.WIDTH

Definition at line 828 of file VispaWidget.py.