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

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

 buttonframe
 
- Public Attributes inherited from lib.draw.DataEntry
 root
 
 style
 Style. More...
 
 ttk_style
 
 config
 Data. More...
 
 sites
 
 sites_selection_depth
 
 submit
 
 labels
 Handle regular entries. More...
 
 entryVals
 
 ddlabels
 Handle dropdown menu items. More...
 
 ddVals
 
 mslblabels
 Handle multi-selection lists. More...
 
 mslbVals
 
 mslbScrolls
 
 mslbValsContents
 
 site_option
 
 site_option_menu
 
 camview_option
 
 camview_option_menu
 
 sequence_option
 
 sequence_option_menu
 
 buttonframe
 

Detailed Description

Definition at line 900 of file draw.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.draw.CamDataEntry.__init__ (   self,
  args,
  kwargs 
)

Definition at line 901 of file draw.py.

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

Member Function Documentation

◆ drawButtonFrame()

def lib.draw.CamDataEntry.drawButtonFrame (   self,
  cancel_label,
  submit_label 
)

Definition at line 904 of file draw.py.

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, foreground=self.style.fg, bg=self.style.bgdark).grid(row=0, column=0)
909  Button(self.buttonframe, text=cancel_label, command=self.cancelCallback, foreground=self.style.fg, bg=self.style.bgdark).grid(row=0, column=1)
910  Button(self.buttonframe, text=submit_label, command=self.submitCallback, foreground=self.style.fg, bg=self.style.bgdark).grid(row=0, column=2)
911 

◆ selectOrigin()

def lib.draw.CamDataEntry.selectOrigin (   self)

Definition at line 912 of file draw.py.

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
919 

Member Data Documentation

◆ buttonframe

lib.draw.CamDataEntry.buttonframe

Definition at line 906 of file draw.py.


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