facebook360_dep
Facebook360 Depth Estimation Pipeline
Public Member Functions | Public Attributes | List of all members
dep.App Class Reference
Inheritance diagram for dep.App:

Public Member Functions

def __init__ (self)
 
def unpickle_project (self)
 
def setup_clock (self)
 
def update_clock (self, start=None)
 
def configure_farm (self)
 
def closeEvent (self, event)
 
def keyPressEvent (self, event)
 
def auto_terminate_cluster (self)
 
def get_current_section (self)
 
def setup_section (self, section, mkdirs=True)
 
def on_changed_section (self)
 
def setup_sections_signals (self)
 
def setup_sections_layout (self)
 
def setup_project (self)
 

Public Attributes

 font_type
 
 font_size
 
 ts_start
 
 ui_flags
 
 dlg
 
 verbose
 
 s3_ignore_fullsize_color
 
 s3_sample_frame
 
 project_root
 
 path_project
 
 full_size
 
 calibrate
 
 background
 
 depth
 
 export
 
 sections
 
 timer
 
 ts_start_clock
 
 is_aws
 
 is_lan
 
 aws_util
 

Detailed Description

Main dialog box for the app initialized by QT.

Attributes:
    aws_util (AWSUtil): Util instance for ease of interacting with AWS.
    background (Background): Instance of the background tab UI element.
    calibrate (Calibration): Instance of the calibration tab UI element.
    depth (DepthEstimation): Instance of the depth estimation tab UI element.
    dlg (App(QDialog)): Main dialog box for the app initialized by QT.
    export (Export): Instance of the export tab UI element.
    full_size (QSize): Size of the full-sized UI (i.e. size on spawn).
    is_aws (bool): Whether or not this is an AWS render.
    is_lan (bool): Whether or not this is a LAN render.
    path_project (str): Path to the project root.
    sections (list[_]): List of class instances corresponding to the tabs.
    ui_flags (absl.flags._flagvalues.FlagValues): Copy of globally defined flags for dep.py.

Constructor & Destructor Documentation

◆ __init__()

def dep.App.__init__ (   self)
Creates the main UI dialog box and sets up the sections in the desired layout.

Member Function Documentation

◆ auto_terminate_cluster()

def dep.App.auto_terminate_cluster (   self)
Sets up a repeated background event to terminate AWS clusters.

◆ closeEvent()

def dep.App.closeEvent (   self,
  event 
)
Callback event handler for the UI being closed.

Args:
    event (QEvent): Caught instance of the closing event.

◆ configure_farm()

def dep.App.configure_farm (   self)
Sets up credentials in the terminal for an AWS render.

◆ get_current_section()

def dep.App.get_current_section (   self)
Returns the active section.

Returns:
    Union[Background, Calibration, DepthEstimation, Export]: Whichever instance
is active on screen.

◆ keyPressEvent()

def dep.App.keyPressEvent (   self,
  event 
)

◆ on_changed_section()

def dep.App.on_changed_section (   self)
Callback event handler for changing tabs.

◆ setup_clock()

def dep.App.setup_clock (   self)

◆ setup_project()

def dep.App.setup_project (   self)
Initializes the file explorer and sets up the tabs.

◆ setup_section()

def dep.App.setup_section (   self,
  section,
  mkdirs = True 
)
Sets up the layout and populates fields in a section.

Args:
    section (Union[Background, Calibration, DepthEstimation, Export]): UI section.
    mkdirs (bool, optional): Whether or not to make the directories desired.

◆ setup_sections_layout()

def dep.App.setup_sections_layout (   self)
Force margins to 10 pixels on sides and bottom to not waste too much space

◆ setup_sections_signals()

def dep.App.setup_sections_signals (   self)
Sets up signal for changing tabs and initializes the start tab.

◆ unpickle_project()

def dep.App.unpickle_project (   self)

◆ update_clock()

def dep.App.update_clock (   self,
  start = None 
)

Member Data Documentation

◆ aws_util

dep.App.aws_util

◆ background

dep.App.background

◆ calibrate

dep.App.calibrate

◆ depth

dep.App.depth

◆ dlg

dep.App.dlg

◆ export

dep.App.export

◆ font_size

dep.App.font_size

◆ font_type

dep.App.font_type

◆ full_size

dep.App.full_size

◆ is_aws

dep.App.is_aws

◆ is_lan

dep.App.is_lan

◆ path_project

dep.App.path_project

◆ project_root

dep.App.project_root

◆ s3_ignore_fullsize_color

dep.App.s3_ignore_fullsize_color

◆ s3_sample_frame

dep.App.s3_sample_frame

◆ sections

dep.App.sections

◆ timer

dep.App.timer

◆ ts_start

dep.App.ts_start

◆ ts_start_clock

dep.App.ts_start_clock

◆ ui_flags

dep.App.ui_flags

◆ verbose

dep.App.verbose

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