Commit graph

130 commits

Author SHA1 Message Date
Yann Lanthony
014c1fe25f [ui] specify keys for DropAreas 2018-04-13 22:48:46 +02:00
Yann Lanthony
1e462d94de [ui][3d] fix depthMap clearing
* must be fixed in qtOIIO plugin
2018-04-13 22:46:44 +02:00
Yann Lanthony
029d4f2e7b [ui] GraphEditor: clamp zoom 2018-04-13 22:44:09 +02:00
Yann Lanthony
b64cfc856c [ui] ImageMetadataView: display image location on map when available 2018-04-13 19:29:30 +02:00
Yann Lanthony
def7e6b634 [ui] set font size at Application level 2018-04-09 12:00:30 +02:00
Yann Lanthony
472b860131 [ui] better handling of Reconstruction's current sfm node
* reset sfm node on graph change by using 'sfm' property (ensure previous sfm node is correctly disconnected)
* ui: clear viewers when graph changes
2018-04-06 14:24:45 +02:00
Yann Lanthony
11121039dc [ui] Viewer3D: reset polycount on source change 2018-04-05 22:00:20 +02:00
Yann Lanthony
adf59e56fa [ui] GraphEditor: fix typo 2018-04-05 21:56:36 +02:00
Yann Lanthony
a2dd3c22bd [ui][3D] tweak rotation/scale pane
* use a GridLayout
* reduce default sliders size
2018-03-23 11:23:47 +01:00
Yann Lanthony
c4f47d1307 [ui] Panel: clip by default 2018-03-23 11:23:47 +01:00
Yann Lanthony
35e89a3c9b [ui][3D] retrieve and display polycount after loading a scene
* use vertexPosition attribute buffer to determine the number of faces
* remove useless Qt.resolvedUrl()
2018-03-23 11:23:46 +01:00
Yann Lanthony
d4c0a4975a [ui] add "Controls" module to centralize common UI components
* add FloatingPane control + use it in Viewer3D
2018-03-23 11:17:11 +01:00
Yann Lanthony
6ae591e981 [ui] module Singleton crashes at exit; expose "Filepath" as context property
TODO: find a better way to do this (wait for 'qmlRegisterSingletonType' to be available in PySide ? )
2018-03-23 11:17:11 +01:00
Yann Lanthony
74e80e70b5 [ui][3d] introduce Wireframe render mode
* add WireframeMaterial from Qt 3D example
* MaterialSwitcher now has 3 render modes: Solid, Wireframe, Textured
* Remove NodeInstantiator; always create the material and modify entity's components (avoid rendering issues when switching between materials)
* use DiffuseSpecularMaterial for Solid and Textured mode
* create a MaterialSwitcher for all types of meshes (with/without textures)
* add a render settings panel as part of 3D viewport overlay and remove "Textures" entry from outliner
2018-03-23 11:17:10 +01:00
Yann Lanthony
f1d4291219 [ui][3d] improve layout of mesh rotation/scale control 2018-03-21 17:24:19 +01:00
Yann Lanthony
9f39579e00 [ui][3d] reduce camera nearPlane
useful for close-up mesh inspection
2018-03-21 17:24:19 +01:00
Yann Lanthony
0249706018 [ui] add missing string paths to url conversions 2018-03-21 17:24:19 +01:00
Yann Lanthony
2e4d9b85e6 [ui] UIGraph: rename 'addNode' to 'addNewNode' to match core.graph API 2018-03-21 15:53:34 +01:00
Yann Lanthony
450f800fef [ui] allow SfM augmentation when providing new images
* create two separate drop areas when adding images to the project (add images / augment reconstruction)
* add sfm augmentation in graph after intrinsics have been built
2018-03-21 15:53:34 +01:00
Yann Lanthony
9f2dbc9639 [reconstruction] small structural re-organization
* move LiveSfmManager.stepCreated to Reconstruction.sfmAugmented
* add utility methods in Reconstruction to get all images/views used in the graph
* ui: perform local auto-layout on sfm augmentation on created nodes
2018-03-21 15:53:34 +01:00
Yann Lanthony
e0b72863ee [ui] GraphEditor: improve auto-layout related functions
* move graph boundingBox computation in a separate method
* perform autoLayout from "from" to "to" index (instead of "to"-1)
2018-03-21 15:53:34 +01:00
Yann Lanthony
266f0985d2 [ui] convert string paths to urls outside Viewers
* fix external image drop on 2D Viewer
* fix 3D model loading from "Load Model" button
2018-03-21 15:53:34 +01:00
Yann Lanthony
f1b42acc14 [ui] add FilepathHelper Python class to manipulate paths and QUrls
* avoid non-cross platform hacks to convert string path to urls
* use standard python API
2018-03-06 15:32:33 +01:00
Yann Lanthony
0c071d03d1 [ui] remove ASCII icons
won't render correctly on some platforms
2018-02-26 17:01:41 +01:00
Yann Lanthony
b9a1e57b79 [ui][log] reload file when auto-reload timer stops
useful to reload the file when status goes from RUNNING to ERROR/SUCCESS
2018-02-26 17:00:20 +01:00
Yann Lanthony
2cdc83f06f [ui] add string <--> file representation convertors
* convenient methods to conform strings to Qt file reprensentation using the "file:/" protocol prefix
* use those methodes when manipulating files
2018-02-26 16:59:25 +01:00
Yann Lanthony
62726b4663 [ui] fix missing "else"
+ remove unnecessary call to clearAbc
2018-02-26 16:33:06 +01:00
Yann Lanthony
1134aad2d8 [ui] ImageGallery: sort ImageDelegates based on image file's basename 2018-02-16 13:38:49 +01:00
Yann Lanthony
9501307256 [ui] MetadataView: move model delegate declatation in the ListView 2018-02-16 13:03:56 +01:00
Yann Lanthony
d2da971169 [ui] improve SortFilterDelegateModel
* use variant for filterValue and implement different logics to test filter matching based on value type
* allow redefinition of modelData and respectFilter functions to customize logic from outisde if need be
* add convenient 'reverseSortOrder' method
2018-02-16 13:02:18 +01:00
Yann Lanthony
53764812bd [ui] add ImageMetadataView + integration in Viewer2D
* display image metadata as a sorted table view with filtering  
* 2DViewer: new bottom toolbar with metadata toggle + image resolution
2018-02-15 16:10:25 +01:00
Yann Lanthony
d91601ca8e [ui] move filepath.js to Utils module 2018-02-15 15:12:07 +01:00
Yann Lanthony
61427ba41c [ui] introduce SortFilterDelegateModel
* delegate model to add sorting/filtering capabilities to a source models
* create Utils module to store generic purpose Components
2018-02-15 15:06:29 +01:00
Yann Lanthony
6dec4c71c9 [ui][3D] fix error message at startup
use null instead of undefined as default Entity value for plugin-based viewers
2018-02-14 11:29:57 +01:00
Fabien Castan
c3bf936b9f
Merge pull request #94 from alicevision/dev_duplicateNodes
GraphEditor: allow nodes duplication
2018-02-13 16:16:23 +01:00
Fabien Castan
2dceec447d Add 3D depth map viewer 2018-02-13 14:52:55 +01:00
Yann Lanthony
06851f0357 [ui] GraphEditor: use Node name as objectName
* ease debugging
2018-02-12 18:50:54 +01:00
Yann Lanthony
53791cb7d8 [ui] GraphEditor: nodes duplication
* allow duplication of one node/all nodes following a node
* actions available from Node contextual menu and Alt+Click on node for multi-nodes duplication
2018-02-12 18:49:13 +01:00
Yann Lanthony
6455b7c5d8 [ui] GraphEditor: add partial autoLayout 2018-02-12 18:12:26 +01:00
Yann Lanthony
25992286d0 [ui] add partial graph submission up to a certain node 2018-02-07 14:35:50 +01:00
Yann Lanthony
907c9cbcba [ui] use signals instead of direct calls to context var '_reconstruction' 2018-02-07 14:33:30 +01:00
Yann Lanthony
ca8a70f367 [ui] GraphEditor: grab focus on background click 2018-02-06 12:20:22 +01:00
Yann Lanthony
b931632ea2 [ui] lose edit focus on background click and TextField validation 2018-02-06 12:19:42 +01:00
Yann Lanthony
f6ff0b9151 [ui] use MaterialIcons instead of ASCII 2018-02-05 19:42:30 +01:00
Yann Lanthony
60f1f36ff8 [ui] AttributeEditor: add contextual actions on File params
* add 'Open Containing Folder'/'Open File' actions for filepaths
* add 'Open Folder' action for folders
* misc: tweak spacings
2018-02-05 19:04:39 +01:00
Yann Lanthony
c45ebdf83c [ui] AttributeEditor: add contextual menu on attributes
* allow to expose additional actions on individuals attributes
* add 'Reset to Default Value' action
2018-02-05 18:28:31 +01:00
Yann Lanthony
24727de477 [ui] make label of linked attributes italic 2018-02-05 18:18:30 +01:00
Yann Lanthony
4d961065a8 [ui] don't 'bold' output attributes label
outputs don't have a real default value
2018-02-05 18:17:12 +01:00
Yann Lanthony
bb638f9e08 [ui] customize global ToolTip style
less agressive contrast between border and background when using dark theme
2018-02-05 17:32:22 +01:00
Yann Lanthony
516a9641bd [ui] display index as label for ListAttribute's children 2018-02-05 17:31:13 +01:00