-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/task 5 implement import functi #17
Merged
PhilMFischer
merged 21 commits into
development
from
feature/task_5-Implement_Import_Functi
Dec 4, 2019
Merged
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
466e60c
Update commands and add file open dialog to import command - (Task #5)
4e00299
Add import functionality to CommandImport - (Task #5)
b2ef16c
Refactor importer and add fixture - (Task #5)
f721858
Call JsonProductAssembly in full_import function- (Task #5)
7ea25ff
Add inheritance to JsonProductChild - (Task #5)
51af564
Add functionality for importing a JSON twice - (Task #5)
205ea9c
Add position and rotation propagation - (Task #5)
05bc713
Add functionality for full import twice with changes - (Task #5)
f7a0f27
Resolve TODOs - (Task #5)
76ebada
Fix missing Mod directory in AppData - (Task #5)
abbaab2
Disable full import test cases and add TODOs - (Task #5)
5e03847
Add test_json_product_assembly test cases - (Task #5)
c3c7cb9
Add JsonProductAssemblyTreeTraverser - (Task #5)
90b28ba
Add test_json_product_assemby_tree_traverser - (Task #5)
e7af193
Cleanup traverser - (Task #5)
694b1dd
Use traverser in importer and add test cases- (Task #5)
a7ce015
Add identifiers for product assembly and part files - (Task #5)
043b84c
Reactivate full_import test case and update importer - (Task #5)
2709748
Refactor command_import and resolve TODOs - (Task #5)
d0e7fa6
Remove unused import and blank lines at EOF - (Task #5)
c941d5a
Merge branch 'development' into feature/task_5-Implement_Import_Functi
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"Products": { | ||
"children": [{ | ||
"posX": 0.0, | ||
"posY": 0.0, | ||
"posZ": 1.0, | ||
"rotX": 0.0, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "Top", | ||
"uuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d56", | ||
"partUuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d56", | ||
"partName": "Top" | ||
}, { | ||
"posX": 0.0, | ||
"posY": 0.0, | ||
"posZ": 0.0, | ||
"rotX": 0.0, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "Bottom", | ||
"uuid": "61db0622-6fef-4f12-932d-a00fdb9d0848", | ||
"partUuid": "00f430a6-6311-4a33-961b-41ded4cf57d5", | ||
"partName": "Plate" | ||
}, { | ||
"posX": 0.5, | ||
"posY": 0.0, | ||
"posZ": 0.5, | ||
"rotX": 0.0, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 1.5707963267948966, | ||
"name": "Front", | ||
"uuid": "e6af9d3f-8ad6-4488-b3d0-d35549be9a1e", | ||
"partUuid": "e6af9d3f-8ad6-4488-b3d0-d35549be9a1e", | ||
"partName": "Front" | ||
}, { | ||
"posX": -0.5, | ||
"posY": 0.0, | ||
"posZ": 0.5, | ||
"rotX": 0.0, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 1.5707963267948966, | ||
"name": "Back", | ||
"uuid": "a3c9c547-8fd3-40d5-97a1-a3f9a3a9c337", | ||
"partUuid": "a3c9c547-8fd3-40d5-97a1-a3f9a3a9c337", | ||
"partName": "Back" | ||
}, { | ||
"posX": 0.0, | ||
"posY": 0.0, | ||
"posZ": 0.5, | ||
"rotX": 0.0, | ||
"children": [{ | ||
"posX": 0.0, | ||
"posY": 0.5, | ||
"posZ": 0.0, | ||
"rotX": 1.5707963267948966, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "Left", | ||
"uuid": "615985c0-73fd-48db-8f8b-e11b7cbb2ee8", | ||
"partUuid": "615985c0-73fd-48db-8f8b-e11b7cbb2ee8", | ||
"partName": "Left" | ||
}, { | ||
"posX": 0.0, | ||
"posY": -0.5, | ||
"posZ": 0.0, | ||
"rotX": 1.5707963267948966, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "Right", | ||
"uuid": "882a0b35-7da8-4555-903d-fd6b5cbec392", | ||
"partUuid": "882a0b35-7da8-4555-903d-fd6b5cbec392", | ||
"partName": "Right" | ||
} | ||
], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "BeamStructure", | ||
"uuid": "2afb23c9-f458-4bdb-a4e7-fc863364644f", | ||
"partUuid": "2afb23c9-f458-4bdb-a4e7-fc863364644f", | ||
"partName": "BeamStructure" | ||
} | ||
], | ||
"name": "SpaceCube", | ||
"uuid": "a3533e02-125c-4066-bffe-d046d8d8342a" | ||
}, | ||
"Parts": [{ | ||
"color": 16744448, | ||
"shape": "CYLINDER", | ||
"name": "BeamStructure", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "2afb23c9-f458-4bdb-a4e7-fc863364644f", | ||
"lengthZ": 1.0 | ||
}, { | ||
"color": 8388608, | ||
"shape": "BOX", | ||
"name": "Right", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "882a0b35-7da8-4555-903d-fd6b5cbec392", | ||
"lengthZ": 0.02 | ||
}, { | ||
"color": 32832, | ||
"shape": "BOX", | ||
"name": "Front", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "e6af9d3f-8ad6-4488-b3d0-d35549be9a1e", | ||
"lengthZ": 0.02 | ||
}, { | ||
"color": 16711680, | ||
"shape": "BOX", | ||
"name": "Left", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "615985c0-73fd-48db-8f8b-e11b7cbb2ee8", | ||
"lengthZ": 0.02 | ||
}, { | ||
"color": 65280, | ||
"shape": "BOX", | ||
"name": "Plate", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "00f430a6-6311-4a33-961b-41ded4cf57d5", | ||
"lengthZ": 0.02 | ||
}, { | ||
"color": 16776960, | ||
"shape": "BOX", | ||
"name": "Back", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "a3c9c547-8fd3-40d5-97a1-a3f9a3a9c337", | ||
"lengthZ": 0.02 | ||
}, { | ||
"color": 32768, | ||
"shape": "BOX", | ||
"name": "Top", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d56", | ||
"lengthZ": 0.02 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"Products": { | ||
"children": [{ | ||
"posX": 0.0, | ||
"posY": 0.0, | ||
"posZ": 1.0, | ||
"rotX": 0.0, | ||
"children": [], | ||
"rotZ": 0.0, | ||
"rotY": 0.0, | ||
"name": "Top", | ||
"uuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d56", | ||
"partUuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d57", | ||
"partName": "Top2" | ||
} | ||
], | ||
"name": "SpaceCube", | ||
"uuid": "a3533e02-125c-4066-bffe-d046d8d8342a" | ||
}, | ||
"Parts": [{ | ||
"color": 32768, | ||
"shape": "BOX", | ||
"name": "Top2", | ||
"lengthY": 1.0, | ||
"lengthX": 1.0, | ||
"radius": 0.05, | ||
"uuid": "cc14e2c7-9d7e-4cf2-8d6d-9b8cf5e96d57", | ||
"lengthZ": 0.02 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to hand over this appdata_module_path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue for this: #19