dtk-visualization merge requestshttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests2020-02-13T22:51:13+01:00https://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/48scalar bar range change is not desired by users2020-02-13T22:51:13+01:00LACROIX Romainscalar bar range change is not desired by usersThis does two things :
1. replace the push button "reset range" to a checkbox with two states. The checkbox controls the variable "original_range". It allows the user to disable the automatic range scale (without the special trick o...This does two things :
1. replace the push button "reset range" to a checkbox with two states. The checkbox controls the variable "original_range". It allows the user to disable the automatic range scale (without the special trick of changing range values to stop the automatic range scale).
2. restore the saved setting "original_range" which is plugged into the new checkbox.
3. disable the min/max QLineEdit when the mode is automatic, because these widgets can lose focus when they're being edited and their values change at the same timeNICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/47Feature/scalar bar label2020-02-04T12:42:10+01:00LACROIX RomainFeature/scalar bar labelThis merge request does 2 things :
1. restore the broken functionality "first scalar bar is vertical on the right" rather than vertical on the left in dtkVisualizationCanvas.cpp
2. allow the scalar bar label to not include the class name...This merge request does 2 things :
1. restore the broken functionality "first scalar bar is vertical on the right" rather than vertical on the left in dtkVisualizationCanvas.cpp
2. allow the scalar bar label to not include the class name (for example SurfaceColor)NICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/46Feature/scalar bar label2020-01-31T10:22:33+01:00LACROIX RomainFeature/scalar bar label3 things in this merge request
- fix the bug 'scalar bar title can overflow off-screen'
- allow to hide the decorator class name (i.e. SurfaceColor) in the scalar bar title
- reset the correct behaviour 'scalar bar of the first decorator...3 things in this merge request
- fix the bug 'scalar bar title can overflow off-screen'
- allow to hide the decorator class name (i.e. SurfaceColor) in the scalar bar title
- reset the correct behaviour 'scalar bar of the first decorator is vertical, on the right side'https://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/45Feature/decorator clipper2020-02-07T10:35:48+01:00LACROIX RomainFeature/decorator clipperImplements two new decorators :
- DecoratorVertexEdge: renders the vertices with spheres, and the edges with tubes, with configurable options.
- DecoratorClipper: using the vtk-connection framework, it clips out some vtkPolyData structu...Implements two new decorators :
- DecoratorVertexEdge: renders the vertices with spheres, and the edges with tubes, with configurable options.
- DecoratorClipper: using the vtk-connection framework, it clips out some vtkPolyData structure, with configurable options.
These new decorators are used in the branch feature/RefactoringClipper of coffee/precis.NICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/44Feature/bug moving scalarbar2020-01-21T11:31:51+01:00LACROIX RomainFeature/bug moving scalarbarThis fixes precis issue #14 .
It does not re-compute a new scalar bar position when enabling it after it's been computed a first time already.
It also changes the default position of the first scalar bar: vertically on the right edge, ...This fixes precis issue #14 .
It does not re-compute a new scalar bar position when enabling it after it's been computed a first time already.
It also changes the default position of the first scalar bar: vertically on the right edge, where there is most space and where it is not obscured by the menu pane on the left edge.
And it removes the unused variable 'loop'.NICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/43Revert spurious dynamic_cast into different vtk types.2020-01-15T23:07:25+01:00KLOCZKO ThibaudRevert spurious dynamic_cast into different vtk types.In fact, cast operations on vtkDataSet subclasses contained in QVariant are OK provided that
`dtk::visualization::registerVTKToMetaType` function is called before
ask for conversions.
This function is embedded into the more generic
`dtk...In fact, cast operations on vtkDataSet subclasses contained in QVariant are OK provided that
`dtk::visualization::registerVTKToMetaType` function is called before
ask for conversions.
This function is embedded into the more generic
`dtk::visualization::initialize` function that initializes the layer of
visualization.
So for any application using dtkVisualization layer, one must initialize
it using this function to ensure such cast operations.
Tests were added to check that the downcast from vtkDataSet to any
subclasses is working even if a pointer of a vtkDataSet is given to the
`dtk::variantFromValue` function.
```cpp
vtkDataSet *data = vtkImageData::New();
QVariant v = dtk::variantFromValue(data);
QVERIFY(v.userType() == QMetaType::type("vtkImageData*"));
```Julien WintzJulien Wintzhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/42Feature/decorator connections2020-01-16T10:03:20+01:00LACROIX RomainFeature/decorator connectionsImplemented connections to/from the dataset for DecoratorSurfaceColor, used by application precis.Implemented connections to/from the dataset for DecoratorSurfaceColor, used by application precis.NICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/41Bugfix: the DecoratorSurfaceColor failed when fed data of type QVariant<vtkSt...2020-01-15T13:02:22+01:00LACROIX RomainBugfix: the DecoratorSurfaceColor failed when fed data of type QVariant<vtkStructuredGrid*>.We came up with this patch with Julien. It works with the precis application.We came up with this patch with Julien. It works with the precis application.CABEL TristanCABEL Tristanhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/40Feature/vtk native2020-01-14T13:18:07+01:00NICLAUSSE NicolasFeature/vtk nativehttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/39Feature/stream tracer widgets2020-01-09T00:59:05+01:00LACROIX RomainFeature/stream tracer widgetsIssues to discuss
1. The menu layout has been updated. The "Data/Display" item is now declared only once in the parent/shared class.
2. The widget is very similar to the one used for Slices. Should it use a shared class before merging?Issues to discuss
1. The menu layout has been updated. The "Data/Display" item is now declared only once in the parent/shared class.
2. The widget is very similar to the one used for Slices. Should it use a shared class before merging?KLOCZKO ThibaudKLOCZKO Thibaudhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/38Feature/curved glyphs2019-12-20T17:32:12+01:00NICLAUSSE NicolasFeature/curved glyphsNICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/37Bugfix: we need this minimum version of dtk-widgets for compiling.2020-01-13T14:52:24+01:00LACROIX RomainBugfix: we need this minimum version of dtk-widgets for compiling.Version 7aaf7eb0305ba7bc6ae1f76d267b3de47be72eda fails to compile after 'conda env update -f pkg/env/dtk-visualization-linux.yaml' (if conda environment was empty).
This fixes it.Version 7aaf7eb0305ba7bc6ae1f76d267b3de47be72eda fails to compile after 'conda env update -f pkg/env/dtk-visualization-linux.yaml' (if conda environment was empty).
This fixes it.https://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/36Reset axes on nex data set2019-12-05T11:24:37+01:00MAFTEI RaduReset axes on nex data setAxes are reset on new data set.Axes are reset on new data set.NICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/35put back plot2D2019-12-03T11:56:58+01:00CABEL Tristanput back plot2DNICLAUSSE NicolasNICLAUSSE Nicolashttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/34Fixing build tree on llvm.2019-08-27T09:48:45+02:00Julien WintzFixing build tree on llvm.Add transforms to decorators.Add transforms to decorators.CABEL TristanCABEL Tristanhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/33Feature/decorators settings2019-08-23T10:14:59+02:00NICLAUSSE NicolasFeature/decorators settingsthis MR adds persitence for decorators; it uses a [canvas] group in the ini file of the application to store all the parameters of the decorators (visibility, color map, etc.)
ex with sw2d:
```
[canvas]
Cells_colormap=inferno
...this MR adds persitence for decorators; it uses a [canvas] group in the ini file of the application to store all the parameters of the decorators (visibility, color map, etc.)
ex with sw2d:
```
[canvas]
Cells_colormap=inferno
Cells_field_name=alphak
Scalar%20ColorMap_colormap=density
Scalar%20ColorMap_field_name=water_depth
Scalar%20ColorMap_show_scalarbar=true
Scalar%20ColorMap_visibility=true
Scalar%20Glyphs_colormap=inferno
Scalar%20Glyphs_field_name=surface_elevation
Scalar%20Glyphs_visibility=false
Scalar%20Isolines_colormap=inferno
Scalar%20Isolines_field_name=surface_elevation
Scalar%20Isolines_isolines_count=25
Scalar%20Isolines_visibility=false
Vector%20Streamlines%202D_colormap=PuBu
Vector%20Streamlines%202D_field_name=unit_vector_discharge
Vector%20Streamlines%202D_show_scalarbar=true
Vector%20Streamlines%202D_visibility=true
```
CABEL TristanCABEL Tristanhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/32temporary fix.2020-01-02T17:15:18+01:00CABEL Tristantemporary fix.KLOCZKO ThibaudKLOCZKO Thibaudhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/31Polish stuffs.2019-08-23T15:28:37+02:00CABEL TristanPolish stuffs.https://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/30Feature/decorator collection2019-05-27T16:18:25+02:00CABEL TristanFeature/decorator collectionCABEL TristanCABEL Tristanhttps://gitlab.inria.fr/dtk/dtk-visualization/-/merge_requests/29Feature/decorator collection2019-05-27T16:13:33+02:00KLOCZKO ThibaudFeature/decorator collectionFinalizeFinalizeCABEL TristanCABEL Tristan