Public Member Functions | Public Attributes | List of all members
lib.draw.CamDataEntry Class Reference
Inheritance diagram for lib.draw.CamDataEntry:

Public Member Functions

def __init__ (self, args, kwargs)
def drawButtonFrame (self, cancel_label, submit_label)
def selectOrigin (self)
- Public Member Functions inherited from lib.draw.DataEntry
def __init__ (self, instructions='', instructions2='', submit_label='Enter', cancel_label='Cancel', rows={}, sites=None, config=None, sites_selection_depth=1, dropdowns={}, multiSelectionListBoxes={})
def submitCallback (self)
def cancelCallback (self)
def getEntries (self)
def getDropDowns (self)
def getMSLBs (self)
def getSiteSelection (self)
def getCamViewSelection (self)
def getSequenceSelection (self)
def getSelectedSite (self)
def getSelectedCamView (self)
def setEntry (self, label, value)
def updateCameraOptions (self, index, value, op)
def updateSequenceOptions (self, index, value, op)
def drawButtonFrame (self, cancel_label, submit_label)

Public Attributes

- Public Attributes inherited from lib.draw.DataEntry
 Style. More...
 Data. More...
 Handle regular entries. More...
 Handle dropdown menu items. More...
 Handle multi-selection lists. More...

Detailed Description

Definition at line 900 of file

Constructor & Destructor Documentation

◆ __init__()

def lib.draw.CamDataEntry.__init__ (   self,

Definition at line 901 of file

901  def __init__(self, *args, **kwargs):
902  DataEntry.__init__(self, *args, **kwargs)

Member Function Documentation

◆ drawButtonFrame()

def lib.draw.CamDataEntry.drawButtonFrame (   self,

Definition at line 904 of file

904  def drawButtonFrame(self, cancel_label, submit_label):
905  from Tkinter import Button, Frame
906  self.buttonframe = Frame(self.root)
907  self.buttonframe.grid(columnspan=3)
908  Button(self.buttonframe, text='Select origin', command=self.selectOrigin,,, column=0)
909  Button(self.buttonframe, text=cancel_label, command=self.cancelCallback,,, column=1)
910  Button(self.buttonframe, text=submit_label, command=self.submitCallback,,, column=2)

◆ selectOrigin()

def lib.draw.CamDataEntry.selectOrigin (   self)

Definition at line 912 of file

912  def selectOrigin(self):
913  target = tvaVis.traj2D([], sateliteImage=self.getSelectedSite().getFullSatFilename(), sateliteResolution=self.getSelectedSite().satres, labels=False, fig_name='Select camera origin', figsize=self.config.figsize)
914  plt.setp(target.gca(), autoscale_on=False)
915  pt = plb.ginput(1,timeout=-1)
916  self.setEntry('camOrigin', str(list(pt[0])))
917  plt.close()
918  return

Member Data Documentation

◆ buttonframe


Definition at line 906 of file

The documentation for this class was generated from the following file: