CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Vispa.Gui.ZoomableWidget.ZoomableWidget Class Reference
Inheritance diagram for Vispa.Gui.ZoomableWidget.ZoomableWidget:
Vispa.Gui.Zoomable.Zoomable Vispa.Gui.PortConnection.PointToPointConnection Vispa.Gui.VispaWidget.VispaWidget Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner Vispa.Gui.PortConnection.PortConnection Vispa.Gui.ConnectableWidget.ConnectableWidget Vispa.Gui.MenuWidget.MenuWidget Vispa.Gui.PortWidget.PortWidget Vispa.Main.StartupScreen.StartupScreen Vispa.Views.LineDecayView.ParticleWidget Vispa.Views.WidgetView.WidgetView Vispa.Gui.PortConnection.LinearPortConnection Vispa.Gui.WidgetContainer.WidgetContainer Vispa.Gui.PortWidget.SinkPort Vispa.Gui.PortWidget.SourcePort Vispa.Views.BoxDecayView.BoxDecayView Vispa.Views.LineDecayView.LineDecayView Vispa.Views.BoxDecayView.BoxDecayContainer Vispa.Views.LineDecayView.LineDecayContainer Vispa.Plugins.ConfigEditor.ConfigEditorBoxView.ConfigEditorBoxView Vispa.Plugins.EdmBrowser.EdmBrowserBoxView.EdmBrowserBoxView Vispa.Plugins.ConfigEditor.ConfigEditorBoxView.ConnectionStructureView Vispa.Plugins.ConfigEditor.ConfigEditorBoxView.SequenceStructureView

Public Member Functions

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
 

Private Attributes

 _imageExporter
 

Detailed Description

Definition at line 10 of file ZoomableWidget.py.

Constructor & Destructor Documentation

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

Definition at line 12 of file ZoomableWidget.py.

12 
13  def __init__(self, parent=None):
14  """ Constructor
15  """
16  QWidget.__init__(self, parent)
17  Zoomable.__init__(self)
18  self._imageExporter = None
19 
20  if isinstance(self.parent(), ZoomableWidget):
21  self.setZoom(self.parent().zoom())

Member Function Documentation

def Vispa.Gui.ZoomableWidget.ZoomableWidget.exportImage (   self,
  filename = None 
)

Definition at line 32 of file ZoomableWidget.py.

References Vispa.Gui.ZoomableWidget.ZoomableWidget._imageExporter.

Referenced by Vispa.Share.ImageExporter.ImageExporter.exportImageDialog().

32 
33  def exportImage(self, filename=None):
34  if not self._imageExporter:
35  self._imageExporter = ImageExporter(self)
36 
37  if not filename:
38  self._imageExporter.exportImageDialog(self)
39  else:
self._imageExporter.exportImage(self, filename)
def Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom (   self,
  zoom 
)
Sets zoom of this widget and of it's children.

Definition at line 22 of file ZoomableWidget.py.

References 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(), Vispa.Views.LineDecayView.LineDecayContainer.children(), 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(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), edmNew::DetSetVector< T >.update(), and evf::iDie::lsStat.update().

Referenced by Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().

22 
23  def setZoom(self, zoom):
24  """ Sets zoom of this widget and of it's children.
25  """
26  Zoomable.setZoom(self, zoom)
27 
28  for child in self.children():
29  if isinstance(child, Zoomable):
30  child.setZoom(zoom)
31  self.update()

Member Data Documentation

Vispa.Gui.ZoomableWidget.ZoomableWidget._imageExporter
private

Definition at line 17 of file ZoomableWidget.py.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget.exportImage().