Commit Graph

360 Commits

Author SHA1 Message Date
Magne Sjaastad
8e03c38901 Return root if reference is empty 2015-10-06 16:12:17 +02:00
Magne Sjaastad
edc6e427ec [System] Revert test code 2015-10-06 15:26:22 +02:00
Magne Sjaastad
bbc6fb1511 Minor refactor of ReferenceHelper
Removed some asserts
Added more unit tests
2015-10-06 15:03:55 +02:00
Jacob Støren
49ab79219e Fixed crashes regarding general handling of NULL pointers in Child Arrays 2015-09-25 15:24:21 +02:00
Jacob Støren
644a4529d3 Experimental: Avoid QProcessEvent during progress dialog.
By having a non modal progress dialog and calling repaint directly.
2015-09-21 18:54:35 +02:00
Magne Sjaastad
53f1765fd7 Fixed wrong index guarding 2015-09-18 19:39:17 +02:00
Magne Sjaastad
a4b57a11a4 Added display of class names to preferences
Use flag in pdmUiTreeViewEditor to control display of class names
2015-09-18 19:24:02 +02:00
Magne Sjaastad
dcf9ac9b50 Check if index is valid when resolving child objects 2015-09-18 18:49:53 +02:00
Magne Sjaastad
6be5be4746 Added macro for pure virtual classes 2015-09-18 13:46:17 +02:00
Magne Sjaastad
cc59cb84af Show class name as debug info in project tree 2015-09-18 08:04:13 +02:00
Magne Sjaastad
2807a8d2f8 Added support for icons in combo box editor 2015-09-07 13:51:49 +02:00
Magne Sjaastad
89fa5ecef7 Added possibility to setCurrentFrame without emitting a signal 2015-09-04 11:40:44 +02:00
Magne Sjaastad
1f2a5a8c08 (#395) Fixed missing calls to navigationPolicyUpdate 2015-09-03 13:06:10 +02:00
Magne Sjaastad
4730e10319 Created navigationPolicyUpdate to be used from navigation policies 2015-09-01 18:04:35 +02:00
Jacob Støren
8b5ea1aeb3 Excluded user input events from progressbar process events.
They are not needed, and might cause problems.
2015-09-01 17:19:01 +02:00
Magne Sjaastad
33d5b9b63b Early exit if no frames are present 2015-09-01 11:31:32 +02:00
Magne Sjaastad
3086ab10bc (#395) Fixed bug in viewer 2015-09-01 11:31:32 +02:00
Magne Sjaastad
854c47500b Clamp frameindex instead of doing nothing 2015-09-01 11:31:31 +02:00
Magne Sjaastad
e5d5543cd9 Ovveride update() and find all linked views to be updated 2015-08-28 21:32:51 +02:00
Magne Sjaastad
dc7735a67d Fixed missing code changes related to previous commit 2015-08-27 11:56:52 +02:00
Magne Sjaastad
492bf96598 Moved Xml related functions from PdmDocument to XmlObjectHandle
Moved and renamed initAfterReadRecursively, setupBeforeSaveRecursively
and resolveReferencesRecursively to XmlObjectHandle. Updated unit tests.
Removed resolveReferences() from PdmPtrField.
2015-08-27 11:43:27 +02:00
Magne Sjaastad
4f5f50fb4f Fixed up unit tests 2015-08-27 11:00:49 +02:00
Magne Sjaastad
792793b6ed Generalized update 2015-08-26 14:52:35 +02:00
Magne Sjaastad
90b6dd44ee Created infrastructure used to resolve references for ptrFields 2015-08-26 14:48:20 +02:00
Magne Sjaastad
08f570f4ed Minor test application mainwindow changes after AppFwk updates 2015-08-24 18:22:16 +02:00
Jacob Støren
f174615098 Replaced use of capability template with convenience 2015-08-20 15:24:49 +02:00
Jacob Støren
0ac86aeff3 Fwk: Added convenience methods to access the ui/xml capabilities in objects 2015-08-20 15:22:43 +02:00
Jacob Støren
0fda6ef6fb (#370) Bugfixes regarding using several project trees
SelectionManager is now updated whenever focus enters the treeview.
The main project tree now has turned on SelectionManager updates
2015-08-20 14:49:18 +02:00
Jacob Støren
04368bd8a3 (#349) Removed updateConnectedUIEditors 2015-08-20 10:43:55 +02:00
Jacob Støren
f0ee19d8f7 Some renaming and comments 2015-08-20 09:58:27 +02:00
Jacob Støren
f7ef9c575e Added missing headers to CMake files 2015-08-20 09:57:38 +02:00
Jacob Støren
f8dce724f6 (#370) Wip: NewProjectTreeAndPropertyView command works.
Missing context menu
2015-08-20 08:03:38 +02:00
Jacob Støren
302f46b61b (#372) First step in Reimplemented drag and drop support 2015-08-18 11:23:53 +02:00
Jacob Støren
4606a3de8b Fwl: Always update action look when retreiving it. 2015-08-18 10:52:13 +02:00
Jacob Støren
6d7bf0ae9e Made translation between PdmUiItem and QModelIndex available in PdmUiTreeView
After considering the different options, I concluded that it is important to
support the Qt way of doing things.
If the App programmer wants to do things the Qt way, it should be possible.
2015-08-16 09:57:57 +02:00
Jacob Støren
e805c893c6 (#378) Added an tree view expansion interface 2015-08-14 18:03:51 +02:00
Jacob Støren
5cd416ce6b (#357) Renamed PdmUiObjectHandle::owner() to objectHandle() 2015-08-14 16:15:49 +02:00
Jacob Støren
fc146bb554 Fix of compiler warning 2015-08-14 15:17:30 +02:00
Jacob Støren
d3b1af3724 firstAnchestorOrThisOfType : Initialize returnvalue to NULL 2015-08-14 15:17:03 +02:00
Jacob Støren
f5d15c19e1 firstAnchestorOfType now considers the object itself as well.
It is thus renamed to firstAnchestorOrThisOfType
2015-08-14 14:04:47 +02:00
Magne Sjaastad
d466624e45 Added command features for paste of Eclipse view and Eclipse case 2015-08-14 10:17:32 +02:00
Magne Sjaastad
9cae0e09ff Fixed copyOfTypedObjects 2015-08-14 10:17:32 +02:00
Magne Sjaastad
a1ecc50605 Added CopyReferencesToClipboardFeature 2015-08-14 10:17:31 +02:00
Jacob Støren
0670403c1d Select to Application Global and not Current for SelectionManager 2015-08-14 08:35:57 +02:00
Jacob Støren
8052a1c672 (#369) Added selectAsCurrentItem to the PdmUiTreeView
Cleaned up the responsibilities between Editor, model and View
Now model exposes translation between QModelIndex and PdmUiItem
Selection inteface implementation is handled by editor, and forwarded to View
Also started renaming of SlectionManager update enabeling
2015-08-13 23:45:34 +02:00
Jacob Støren
a1774d3b14 (#353) Removed the last MODTODO (except Eclipse View commands impl) 2015-08-13 15:43:17 +02:00
Jacob Storen
47819812bf Fix of Linux compile errors and warnings 2015-08-13 06:23:51 -07:00
Magne Sjaastad
fa622acb72 Renamed functions in effect generator and use cached effects instead of uncached 2015-08-13 14:35:30 +02:00
Magne Sjaastad
b9b7d77fc6 Updates from RPM 2015-08-13 14:16:41 +02:00
Magne Sjaastad
e12a5b62de Renamed to PdmObjectCollection 2015-08-13 13:06:57 +02:00
Magne Sjaastad
2b47793d68 Integrated fix for undo framework. Added virtual destructors. 2015-08-13 13:06:56 +02:00
Magne Sjaastad
82903afa25 Do not assert when a field editor cannot be created 2015-08-13 13:06:55 +02:00
Jacob Støren
8ad3f9b8c3 Fixed missing parent = NULL, if parentField() is NULL 2015-08-13 11:47:04 +02:00
Jacob Støren
f8518037fe cafPdm: Re-Added PdmObjectHandle::firstAncestorOfType() 2015-08-13 11:38:29 +02:00
Magne Sjaastad
fd5bd534f6 Added dummy static class to fix issue with single macro in cpp
The implementation of this dummy class is put in the file with the
single macro defining the UI editor. This will cause the cpp file to
always be compiled.
2015-08-12 21:51:02 +02:00
Magne Sjaastad
c2fe5f3a16 Added PdmGuardedObjects and use this container from UiListView 2015-08-12 18:27:59 +02:00
Magne Sjaastad
711cc16da1 Added firstAncestorOfType 2015-08-12 11:10:20 +02:00
Magne Sjaastad
005114cc3e Fixed several todo for RimEclipseStatisticsCaseCollection::parentCaseGroup(), removed comments 2015-08-11 18:42:44 +02:00
Magne Sjaastad
c7fca88bdc Allow invalid PdmUiTreeOrdering objects, and display message in Debug 2015-08-11 11:15:30 +02:00
Magne Sjaastad
e3bfca8174 Revert "Improved default parsing of visible items to establish root items in the tree view"
This reverts commit 550eccc521.
2015-08-10 21:44:50 +02:00
Pål Hagen
319d9a1aa7 Added new method index() 2015-08-10 16:57:16 +02:00
Magne Sjaastad
550eccc521 Improved default parsing of visible items to establish root items in the tree view 2015-08-09 10:56:52 +02:00
Magne Sjaastad
28aee8ef0d Reintroduced asserts 2015-08-07 12:41:03 +02:00
Magne Sjaastad
abbe591d7b Added virtual destructor to execute command base class 2015-08-07 09:00:56 +02:00
Magne Sjaastad
ac45fb111b Added missing childObjects() for PtrField and fixed legend tree view visibility for PtrFields 2015-08-06 08:08:15 +02:00
Magne Sjaastad
57e363896f Replaced uiField() and xmlField() with uiCapability() and xmlCapability() 2015-08-05 12:34:07 +02:00
Magne Sjaastad
c09143e706 Intermediate fixes to avoid noise from asserts 2015-08-04 15:57:37 +02:00
Magne Sjaastad
392876dcaa Intermediate fix for fields with multiple parents. Asserts must be reintroduced later. 2015-08-04 14:32:18 +02:00
Magne Sjaastad
7039deed44 Added helper class for read/write to QSettings 2015-08-04 11:46:46 +02:00
Magne Sjaastad
62308340ee Improved comments 2015-08-04 09:26:58 +02:00
Magne Sjaastad
0113d2bd24 Removed obsolete file 2015-08-04 08:42:15 +02:00
Magne Sjaastad
31b3e506e9 Changed container from PdmChildArrayField to std::vector 2015-08-01 23:16:01 +02:00
Magne Sjaastad
92f0d64eaf PdmDocument inherits directly from PdmObject and not PdmObjectGroup 2015-08-01 23:04:04 +02:00
Magne Sjaastad
97c5091d71 Moved static members to public visibility temporarily 2015-07-31 18:48:54 +02:00
Magne Sjaastad
93654de7d7 Added missing include 2015-07-31 18:48:13 +02:00
Magne Sjaastad
58149cbdb9 Copied in RPM/Fwk/AppFwk
Commented out use of stipple line, as VizFwk is not update yet
2015-07-29 14:19:43 +02:00
Pål Hagen
c527545e4f (#285) Disabled keyboard tracking for spin boxes
Disabled keyboard tracking for spin boxes used in slider editors, so
that the valueChanged() signal is not emitted until the user has pressed
ENTER or the spin box loses focus.
2015-06-30 09:55:40 +02:00
Jacob Storen
3bd9360911 Linux compile fix.
Needed to move the implementation of copyByType() out of the class definition.
2015-06-29 03:37:02 -07:00
Jacob Støren
948f4d5d58 Fwk: Added missing "setupBeforeSave" when copying.
This fixes #110 Copy view function resize/move grid in ResInsight
2015-06-29 10:48:25 +02:00
Stein Dale
5e93b8ca1f Added option for disabling lighting (#311) 2015-06-18 12:23:26 +02:00
Jacob Storen
2c980e6b1b Linux compile fixes 2015-06-17 05:51:22 -07:00
Jacob Støren
245feea95d cafTensor: Added a library cmake file 2015-06-17 13:07:43 +02:00
Jacob Støren
30d41b9251 Added a Tensor3-class to calculate principal values etc. 2015-06-17 13:06:50 +02:00
Jacob Støren
ebc0475787 cvf::CellRangeFilter: Added hasIncludeRanges() 2015-06-05 15:35:36 +02:00
Jacob Støren
3ba140abde Avoid multiple qt connections anim-control->toolbar 2015-06-03 12:14:34 +02:00
Jacob Støren
a338c6abda Improved documentation of the progressbar class 2015-06-03 12:07:35 +02:00
Jacob Storen
f6e8bb4a1a Fixes of linux compile errors and warnings 2015-05-27 05:50:12 -07:00
Jacob Støren
d82d88d592 Removed a ; 2015-05-21 14:33:10 +02:00
Jacob Støren
33148edef4 VizFwk: Discrete log legend: Added missing clamping 2015-05-16 09:36:03 +02:00
Jacob Støren
7a2640b52f Discrete legend: Fix of discrete texture and end colors
Added changes from ChList 2078-2081
2015-05-13 20:51:44 +02:00
Roland Kaufmann
6d38344261 Don't validate shader programs on MacOS X
If the paint event is called before the view is visible, validation
of the shader program will cause an error on MacOS X 10.8 and forward,
stating that the operation was ignored.
2015-01-01 19:46:25 +01:00
Roland Kaufmann
e0da9a611f Remove copy ctor of atomic counter on OS X
This is not present on any of the other platforms so it is not needed,
but it uses a removed method (to receive the value) so it won't compile.
2015-01-01 19:46:24 +01:00
Roland Kaufmann
90249e1158 Use pthreads on MacOS X too
MacOS X is POSIXy enough for this to be a suitable choice
2015-01-01 19:46:24 +01:00
Jacob Støren
6e55ca82e2 Fixed Problem regarding negative riTrans values
The reason was a bit sloppy detection of whether the surface normals was
pointing outwards or inwards in a cell.
The cells can be turned inside out due to depth/Z or mapaxis conditions.
2014-09-23 12:26:08 +02:00
Jacob Støren
01cfed9ab7 Fixed crash after copy/paste of view and case 2014-08-28 13:37:56 +02:00
Magne Sjaastad
76d6304f79 Pick info : Use IJK instead of XYZ 2014-08-26 13:41:34 +02:00
Magne Sjaastad
786f3bbd9c Fwk: Moved static functions to pdmDocument 2014-08-19 10:57:08 +02:00
Magne Sjaastad
659c90e3e9 Fwk: Created a separate update function for uiIconState 2014-08-19 10:38:35 +02:00
Jacob Støren
7a3d90daa4 Removed fvector and replaced with FixedArray.
Needs replacing with std::array when we get to c++11
2014-08-14 10:56:21 +02:00
Jacob Støren
322823754b Replaced dataAccessObject with resultAccessor 2014-08-14 10:56:20 +02:00
Magne Sjaastad
da108bfb03 Fwk: Moved function call out of initAfterRead 2014-08-14 10:56:15 +02:00
Magne Sjaastad
c579c61404 Fwk: Update enabled state for icons based on object toggle field 2014-08-14 10:56:07 +02:00
Magne Sjaastad
86b74e383e Do nothing if no source tree can be created 2014-08-14 10:56:06 +02:00
Magne Sjaastad
d87c3da789 Fwk: Allow label text on check box widget 2014-08-14 10:55:46 +02:00
Jacob Støren
710395bb85 Created StructGrid...ToCellFaceMapper
Done to start refactoring to pave way for many new combined result
properties
2014-08-14 10:55:42 +02:00
Magne Sjaastad
cbc3238180 Do not show progress info when running from unit tests 2014-04-25 09:59:41 +02:00
Magne Sjaastad
19ff7075d3 Added serialization of pdm objects using QSettings 2014-04-22 13:17:27 +02:00
Magne Sjaastad
040dc12e1b Added property dialog 2014-04-22 13:16:25 +02:00
Magne Sjaastad
89fc4629c8 Added default editor for quint64 2014-04-22 13:16:24 +02:00
Magne Sjaastad
b158c0da9d Use polygon offsett to avoid flickering with mesh lines 2014-04-22 11:22:17 +02:00
Magne Sjaastad
bf9ecc7c5f Changed how synchronization functions are detected 2014-04-15 11:50:04 +02:00
Magne Sjaastad
486f383de7 Integrated changes for framework
Pdm fields can contain a forward declared Pdm object without the include
file
VizFwk: Added VertexColoring shader to be able to use per vertex color
used from drawableGeo::setColorArray()
2014-04-11 11:06:42 +02:00
Magne Sjaastad
49a43a036e Pick info and result info: Added face type 2014-01-03 14:59:52 +01:00
Magne Sjaastad
3e6954d7f5 Read multiple FAULTS keywords
A list of files are cached in the project file. When reading faults from
these files, make sure multiple FAULTS keywords in the same file is
parsed.
2014-01-03 09:44:13 +01:00
Jacob Støren
b52c0fcdd3 NNC: Added face to result info text 2013-12-19 10:50:48 +01:00
Magne Sjaastad
ec181e94f8 Added depth write to effect generator 2013-12-19 09:16:29 +01:00
Magne Sjaastad
f492f0eda2 Renaming 2013-12-19 09:16:29 +01:00
Jacob Støren
49fe3e9f4c EffectGenerator: Renamed faceculling member 2013-12-18 13:53:32 +01:00
sigurdp
0100038db0 Experimental support for offsetting NNCs when drawing
Utilize polygon offset in conjunction with disabling of depth writes to
layer drawing of NNs on top of other fault drawing.
2013-12-18 12:13:44 +01:00
Magne Sjaastad
a617c4a430 Added more control of face culling 2013-12-18 09:31:43 +01:00
Jacob Støren
56b7053a15 StructGrid: Added Comment 2013-12-17 13:28:07 +01:00
sigurdp
28d0fbc476 Added support for multi-level polygon offset
Allow effect generator to tak multiple levels of polygon offsetting.
2013-12-17 13:11:46 +01:00
Magne Sjaastad
c32cf208f2 Removed redundant call 2013-12-17 11:52:42 +01:00
Jacob Støren
b23490106e Added IntArray6 2013-12-12 22:18:17 +01:00
Jacob Støren
6660614657 Added NO_FACE to the face define 2013-12-12 22:18:09 +01:00
JacobStoren
5ca8911a68 Linux compile fixes 2013-12-09 15:48:55 +01:00
Jacob Støren
776ed7755e Improved FixedArray 2013-12-06 14:22:01 +01:00
Magne Sjaastad
19737aa99a Use const access for FixedArray. Added sorting of faults 2013-12-05 09:59:05 +01:00
sigurdp
477792e89d Refactored naming of cvfqt:Utils member functions 2013-12-04 17:04:05 +01:00
sigurdp
cc72c7b2f6 Merged down changes from Resinsight dev branch 2013-12-04 16:06:48 +01:00
sigurdp
368af75bf2 Refactored ProgramOptions class 2013-12-04 14:56:04 +01:00
Jacob Støren
c7a4b48224 Linux compile fix 2013-12-04 14:37:54 +01:00
Jacob Støren
5f1e7204bf Merge branch 'FwkBBAWUpdates' into dev 2013-12-04 12:09:18 +01:00
sigurdp
192f4bba59 Added conversion of lists/arrays plus renames
Renamed/deprecated fromQString(), new function is toString()
2013-12-04 11:51:12 +01:00
sigurdp
4db4e44668 Added member ProgramOptions::firstValue() 2013-12-04 11:49:05 +01:00
Jacob Støren
40b4a98498 Fixed error in comment 2013-12-04 11:24:57 +01:00
Jacob Støren
c608376c4e Added ArrayWrapper and BoundingBoxTree to VizFwk 2013-12-04 11:24:53 +01:00
magnesj
65d9222d97 Fixes for Linux 2013-12-04 07:20:18 +01:00
Magne Sjaastad
12918ec107 Faults: Reading from Eclipse text files and basic visualization
Added reading of faults directly from Eclipse text files
Added named faults in project tree
Added fault geompetry parts
Added test data
2013-12-03 20:30:32 +01:00
sigurdp
58412c010c Added cvf::ProgramOptions class to Fwk
Integrated from CS PF as of changelist 235
2013-11-29 13:00:09 +01:00
sigurdp
df5f1f85af Integrated from CeeSol Perforce, changelist 203
AppFwk tests.
Added rotation to locator.
Caf::FrameAnimationControl : Set current frame to 0 if a framecount
change makes the current frame invalid
2013-11-01 16:54:24 +01:00
sigurdp
bbebebadd5 Added complete VizFwk
Added the complete VizFwk from the ResInsight branch in Perforce as of
changelist 190.
2013-11-01 08:49:42 +01:00
sigurdp
fbfbdfca84 Integrate Fwk updates from ResInsight/Perforce
Integrated Fwk updates in Resinsight branch up to changelist 173.
Summary of changes:
* Rewrite of cvf::OverlayItem to allow fixed user controlled positioning
of the items.
* Removed pure virtual functions OverlayItem::maximumSize() and
OverlayItem::minimumSize().
* Use caf::AboutDialog instead of modified cvfqt::BasicAboutDialog.
* Removed lapack from link line due to fail on Ubuntu 12.04 when lapack
isn't installed.
* Fix in OpenGLContext::saveOpenGLState() to avoid application
corruption when running on RedHat with VMWare.
* Removed unused font manager.
* Console assert handler only calls __debugbreak() if debugger is
present. Otherwise, calls abort(). Done after trouble running gtest
death tests.
* Made component access functions in Color3f, Color3ub, Color4f,
Color4ub inline.
* Added conversion functions between TextureImage and QImage to
cvfqt::Utils class.
* Optimized TextureImage::setPixel() - relies on new inlined
component-wise access functions for Color4ub.
* Added TextureImage::clear() and non-const version of
TextureImage::ptr().
2013-10-31 14:57:52 +01:00
Magne Sjaastad
785efe55e8 CAF: Delete of object is handled by Qt
Delete of m_proxyEditor caused memory corruption. Qt will delete the
object, as this is parent to m_proxyEditor
2013-10-23 10:38:01 +02:00
Jacob Støren
9c1b676f7f Added an improved Ceetron Navigation 2013-10-20 00:41:25 +02:00
Jacob Støren
c537d7179b Caf Field: Comments etc. regarding optionvalues
Fields with option values implicitly have an index based
seUiValue/uiValue interface. This is commented better. Fields of AppEnum
specialization was not quite in line with the rest of the optionValue
system. That is commented and some ifdeffed code has been added to
highlight what could be done when we dare.
2013-10-18 10:11:57 +02:00
Jacob Støren
86fe500690 caf AppEnum: Added index() method 2013-10-18 10:05:25 +02:00
Magne Sjaastad
08b970d084 Normalize line endings 2013-10-07 09:07:27 +02:00
Magne Sjaastad
90402c285d VizFramework: Improve the stability of text color in ResInsight.
The setting for current OpenGL texture engine is not controlled well
enough, causing the wrong texture to be active when rendering text -
hence giving semi-random colors for the text.
2013-10-04 14:02:14 +02:00
Magne Sjaastad
15eab9b261 Performance: Added Utils::copyFromQImage() in cvfqtUtils. Optimized copy
for QImage::Format_ARGB32, and use this function from the paint event in
cafViewer.
2013-09-30 13:17:05 +02:00
Magne Sjaastad
764f564c0c Performance: Access memory directly instead of using access functions. 2013-09-30 07:55:26 +02:00
Magne Sjaastad
6ca5a0c520 Merge remote-tracking branch 'origin/internal' into internal 2013-09-26 12:18:01 +02:00
Magne Sjaastad
2006d10548 Added stretch to list view 2013-09-26 12:17:41 +02:00
Jacob Støren
a4bcbf6115 Merge from origin 2013-09-26 11:48:41 +02:00
Jacob Støren
6f37a731fc Merge remote-tracking branch 'origin/internal' into internal 2013-09-26 11:44:04 +02:00
Magne Sjaastad
1f738a7ac9 Added sorting to tree items by clicking the header
Added names to header
Renamed buttons to 'Download' and 'Import'
2013-09-26 10:57:35 +02:00
Jacob Støren
bef1d8ce7e caf: Enabled the Tooltips. Seems to have been forgotten. 2013-09-26 10:41:08 +02:00
Magne Sjaastad
2413c4ac2d Fixed const issues on Linux 2013-09-25 15:21:30 +02:00
Magne Sjaastad
ac02a97c39 Improved tree ordering system 2013-09-25 15:06:44 +02:00
sigurdp
f64d9b7e64 Moved CAF to Fwk/AppFwk and moved/renamed VisualizationModules to Fwk/VizFwk 2013-09-20 16:01:20 +02:00