Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Documentation for Multiple Flightpath Dockwidget #1595

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,27 @@ Close the software with ease of mind. Next time you open your software, all your
you left it! KML Overlay supports **Saving Open files** so that you can jump back in, anytime!


Multiple Flightpath Dockwidget
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


The topview has a dockwidget allowing to plot multiple flighttracks/operations on top of map.

New flightpaths can be added or removed without crashing, and a clear visualization on map, with
relevant geometries and styles.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"without crashing" sounds strange here. I guess you don't want that users read that? remove it please.

The multiple flightpath dockwidget interface supports display of multiple flighttracks on map simultaneously,
with a check box to display/hide individual plots on map.

Activated flighttrack/operation is shown in bold letters and can't be unchecked.

"Change Linewidth" and "Change Color" button improves the User experience by allowing user to customize
color & linewidth of each of flightpath displayed, realtime. This allows for better understanding of map and
flightpath.

For Activated Flightpath, use "options" menu on topview interface.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the activated one is hightlighted in the navigations.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to add an image showing navigation and a few overlayed flighttracks/operations?

Test Samples
------------

Expand Down
2 changes: 1 addition & 1 deletion mslib/msui/kmloverlay_dockwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def select_file(self, filenames):
return
text = filename
if text not in self.dict_files: # prevents same file being added twice
# initializing the nested dictionary dict_flighttrack
# initializing the nested dictionary dict_files
self.dict_files[text] = {}
self.dict_files[text]["patch"] = None
self.dict_files[text]["color"] = (0, 0, 0, 1)
Expand Down
7 changes: 4 additions & 3 deletions mslib/msui/multiple_flightpath_dockwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class MultipleFlightpath(object):
Represent a Multiple FLightpath
"""

def __init__(self, mapcanvas, wp, linewidth=2, color='blue'):
def __init__(self, mapcanvas, wp, linewidth=2.0, color='blue'):
self.map = mapcanvas
self.flightlevel = None
self.comments = ''
Expand Down Expand Up @@ -135,6 +135,7 @@ def __init__(self, parent=None, view=None, listFlightTracks=None,
self.flighttrack_list = True

# Set flags
# ToDo: Use invented constants for initialization.
self.flighttrack_added = False
self.flighttrack_activated = False
self.color_change = False
Expand Down Expand Up @@ -295,7 +296,7 @@ def create_list_item(self, wp_model):
self.dict_flighttrack[wp_model] = {}
self.dict_flighttrack[wp_model]["patch"] = None
self.dict_flighttrack[wp_model]["color"] = self.color
self.dict_flighttrack[wp_model]["linewidth"] = 2
self.dict_flighttrack[wp_model]["linewidth"] = 2.0
self.dict_flighttrack[wp_model]["wp_data"] = []
self.dict_flighttrack[wp_model]["checkState"] = False

Expand Down Expand Up @@ -585,7 +586,7 @@ def create_operation(self, op_id, wp_model):
self.dict_operations[op_id] = {}
self.dict_operations[op_id]["patch"] = None
self.dict_operations[op_id]["wp_data"] = None
self.dict_operations[op_id]["linewidth"] = 2
self.dict_operations[op_id]["linewidth"] = 2.0
self.dict_operations[op_id]["color"] = self.parent.get_ft_vertices_color()

self.save_operation_data(op_id, wp_model)
Expand Down
2 changes: 1 addition & 1 deletion mslib/msui/qt5/ui_multiple_flightpath_dockwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def setupUi(self, MultipleViewWidget):
def retranslateUi(self, MultipleViewWidget):
_translate = QtCore.QCoreApplication.translate
MultipleViewWidget.setWindowTitle(_translate("MultipleViewWidget", "Form"))
self.ft_color_label.setText(_translate("MultipleViewWidget", "𝐀𝐜𝐭𝐢𝐯𝐚𝐭𝐞𝐝 𝐓𝐫𝐚𝐜𝐤 𝐕𝐞𝐫𝐭𝐢𝐜𝐞𝐬 𝐂𝐨𝐥𝐨𝐫 : "))
self.ft_color_label.setText(_translate("MultipleViewWidget", "Activated Flighttrack/Operation Vertices Color: "))
self.list_flighttrack.setToolTip(_translate("MultipleViewWidget", "List of Open Flighttracks.\n"
"Check box to activate and display track on topview."))
self.list_operation_track.setToolTip(_translate("MultipleViewWidget", "List of Mscolab Operations.\n"
Expand Down
2 changes: 1 addition & 1 deletion mslib/msui/ui/ui_multiple_flightpath_dockwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</sizepolicy>
</property>
<property name="text">
<string>𝐀𝐜𝐭𝐢𝐯𝐚𝐭𝐞𝐝 𝐓𝐫𝐚𝐜𝐤 𝐕𝐞𝐫𝐭𝐢𝐜𝐞𝐬 𝐂𝐨𝐥𝐨𝐫 : </string>
<string>Activated Flighttrack/Operation Vertices Color: </string>
</property>
</widget>
</item>
Expand Down