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(), PixelTrackFilterByKinematics.update(), SaveSimTrack.update(), PTStatistics.update(), PixelTrackFilter.update(), KillSecondariesTrackAction.update(), KillSecondariesRunAction.update(), reco::KalmanGhostTrackUpdater.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), HIProtoTrackFilter.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), HIPixelTrackFilter.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), PFlow2DClusterizerWithTime.update(), FedTimingTask.update(), MSLayersAtAngle.update(), VpspScanTask.update(), ErrorCorrelation.update(), edm::RunningAverage.update(), DDG4ProductionCuts.update(), ApvTimingTask.update(), DaqScopeModeTask.update(), OptoScanTask.update(), PedestalsTask.update(), ApvTimingHistosUsingDb.update(), GsfMultiStateUpdator.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), FineDelayTask.update(), LatencyTask.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), CalibrationTask.update(), cond::persistency::ITagTable.update(), RHStopTracer.update(), FastFedCablingHistosUsingDb.update(), SCRegressionCalculator< VarCalc >.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), ValidHitPairFilter.update(), FedCablingTask.update(), PrintSensitive.update(), SamplingHistosUsingDb.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), NoiseTask.update(), PedsOnlyTask.update(), CalibrationHistosUsingDb.update(), TkPixelMeasurementDet.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PedsFullNoiseTask.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintMaterialBudgetInfo.update(), PrintGeomMatInfo.update(), progressbar.Widget.update(), KinematicConstrainedVertexUpdator.update(), ora::PVectorUpdater.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), BaselinePFSCRegression.update(), ClusterShapeTrackFilter.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), BinomialProbability.update(), StoreSecondary.update(), TrackingMaterialProducer.update(), GraphPath< N, E >.update(), MuonServiceProxy.update(), pathelpers::Record.update(), cond::persistency::TAG::Table.update(), Observer< const DDDWorld * >.update(), funct::Master< F >.update(), GflashG4Watcher.update(), Observer< const Event * >.update(), Observer< T >.update(), MaterialBudget.update(), KFUpdator.update(), Observer< const EndOfTrack * >.update(), MaterialBudgetForward.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), PFClusterBuilderBase.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const BeginOfJob * >.update(), CheckSecondary.update(), HcaluLUTTPGCoder.update(), KalmanVertexTrackUpdator< N >.update(), KalmanVertexTrackUpdator< 5 >.update(), ECAL2DPositionCalcWithDepthCorr.update(), CaloTrkProcessing.update(), EcalSimHitsValidProducer.update(), MaterialBudgetAction.update(), pos::PixelConfig.update(), edm::service::CondorStatusService.update(), ora::IRelationalUpdater.update(), FWJobMetadataManager.update(), BasicMultiTrajectoryState.update(), SiTrackerMultiRecHitUpdator.update(), PhysicsTools::TreeReader.update(), TrackingVerboseAction.update(), HcalTestAnalysis.update(), SiStripConfObject.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), HCalSD.update(), ora::QueryableVectorUpdater.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), MuonTrajectoryUpdator.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), FWParameterSetterBase.update(), FiberSD.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TotemTestGem.update(), progressbar.Timer.update(), SimG4HcalValidation.update(), MuonUpdatorAtVertex.update(), Bcm1fSD.update(), PltSD.update(), simwatcher::BeginOfTrackCounter.update(), DQMOldReceiver.update(), TkAccumulatingSensitiveDetector.update(), ora::OraPtrUpdater.update(), LaserAlignmentSimulation.update(), HcalTB02Analysis.update(), cond::persistency::OraTagTable.update(), ora::PrimitiveUpdater.update(), InitialClusteringStepBase.update(), FastTimerSD.update(), ora::UniqueRefUpdater.update(), BHMSD.update(), ora::OraReferenceUpdater.update(), ora::CArrayUpdater.update(), ApvAnalysisFactory.update(), TotemSD.update(), HcalTB06Analysis.update(), ora::ObjectUpdater.update(), progressbar.WidgetHFill.update(), ora::BlobUpdater.update(), SimTracer.update(), HcalForwardAnalysis.update(), MuonSensitiveDetector.update(), DTSegmentUpdator.update(), ora::InlineCArrayUpdater.update(), DTVDriftCalibration::cellInfo.update(), sistrip::RawToDigiUnpacker.update(), DAClusterizerInZ.update(), ora::STLContainerUpdater.update(), HcalTB04Analysis.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< G4Step >.update(), EcalTBH4Trigger.update(), DoCastorAnalysis.update(), ora::NamedRefUpdater.update(), CastorTestAnalysis.update(), ZdcTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), CaloSD.update(), QuadrupletSeedMerger.update(), BscSD.update(), edm::service::SimpleMemoryCheck.update(), DynamicTruncation.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), BetafuncEvtVtxGenerator.update(), evf::FastMonitoringService::Encoding.update(), cond::persistency::IPayloadMigrationTable.update(), ora::Container.update(), progressbar.Bar.update(), edm::BMixingModule.update(), FP420SD.update(), jsoncollector::IntJ.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.BouncingBar.update(), PFECALSuperClusterAlgo.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), edmNew::DetSetVector< T >::IterHelp.update, DTRecSegment2D.update(), StandAloneMuonFilter.update(), ora::Database.update(), MonitorElement.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, CommissioningTask.update(), progressbar.FormatLabel.update(), cond::persistency::OraGTTable.update(), G4StepStatistics.update(), DQMNet::AutoPeer.update, python.seqvaluedict.seqdict.update(), TrajectoryStateOnSurface.update(), FWLiteESRecordWriterAnalyzer.update(), StMeasurementDetSet.update(), cond::persistency::PAYLOAD_MIGRATION::Table.update(), Folder.update(), FP420Test.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), jsoncollector::HistoJ< T >.update(), jsoncollector::HistoJ< unsigned int >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), edmNew::DetSetVector< SiPixelCluster >.update(), edmNew::DetSetVector< SiStripCluster >.update(), edmNew::DetSetVector< edm::Ref< edmNew::DetSetVector< SiPixelCluster >, SiPixelCluster, edmNew::DetSetVector< SiPixelCluster >::FindForDetSetVector > >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), DetSetVector< T >.update(), const_iterator.update(), and edmNew::DetSetVector< edm::Ref< edmNew::DetSetVector< SiStripCluster >, SiStripCluster, edmNew::DetSetVector< SiStripCluster >::FindForDetSetVector > >.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().