Skip to content

Fire overlay2.0#22

Open
anthonyaugustine1 wants to merge 11 commits intomainfrom
fire-overlay2.0
Open

Fire overlay2.0#22
anthonyaugustine1 wants to merge 11 commits intomainfrom
fire-overlay2.0

Conversation

@anthonyaugustine1
Copy link

Adds a class in coordinatelist.h/cpp, which is a combined list and hashed map as a QAbstractList. This allows us to expose it to Qt and QML for display purposes directly in QmlMap.qml. Updates in mapcontroller.h/cpp to hold two coordinate lists, one for fire, one for smoke. Add functions: roundCoordinates, to round coordinates to work in a grid-like format; addOverlayMarker and removeOverlayMarker, to add or remove to/from the lists. Adds function mapFillScan to detect sets of coordinates entirely encircled by fire and fill them in. Finally, it adds a demo with several components for testing purposes. Edits QmlMap.qml to display the new mapviewlists, one for fire and one for smoke. Edits main.qml to add a view button, which is checked in QmlMap.qml for visibility, and can easily be retooled to check booleans in other qml files.

reimplements fire overlay features so far with several optimizations. Less intrusive than drone-demo
Changed unordered_set to qset to reduce lines of code. Keeping std::queue because it can hold QPair by default.
just removing unnecessary triggers
fixed display issue when markers are removed.
changed some comments and white space.
improved mapFillScan() by consolidating BFS components. Added comments for coordinatelist functions. Removed refresh, it is a remnant from a visibility implementation. Added get to return lastUpdated for future use.
differentiated mapcontroller function calls. Now more explicitly for fire overlay functionality. Made sure adding fire markers cleared out smoke markers
The overlay now loads from the db file and saves on closing.
added conditional to prevent error message: TypeError: Cannot call method...
shows last updated when mousing over fire markers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant