Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
ce6b6ee3
Commit
ce6b6ee3
authored
12 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: changeset to backout in order to take into account new implemented methods
parent
82ebece7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Application/mvdMainWindow.cxx
+40
-29
40 additions, 29 deletions
Code/Application/mvdMainWindow.cxx
Code/Common/mvdAbstractImageModel.cxx
+2
-1
2 additions, 1 deletion
Code/Common/mvdAbstractImageModel.cxx
with
42 additions
and
30 deletions
Code/Application/mvdMainWindow.cxx
+
40
−
29
View file @
ce6b6ee3
...
...
@@ -133,6 +133,8 @@ void
MainWindow
::
InitializeDockWidgets
()
{
// TODO : salbert uncomment and use new methods
/*
// instanciate the manipulator and the renderer relative to this widget
QuicklookViewManipulator * qlViewManipulator = new QuicklookViewManipulator();
ImageModelRenderer * qlModelRenderer = new ImageModelRenderer();
...
...
@@ -142,17 +144,21 @@ MainWindow
GLImageWidget * qlWidget = new GLImageWidget( qlViewManipulator, qlModelRenderer, this );
qlWidget->setMinimumSize(100,100); // TODO : temporary
// TODO : salbert uncomment and apply new modifications
AddWidgetToDock(
qlWidget,
QUICKLOOK_DOCK,
tr( "Quicklook" ),
Qt::LeftDockWidgetArea
);
// Connect the setLargestPossibleregion
QObject::connect(
qlWidget, SIGNAL( ModelImageRegionChanged(const ImageRegionType&) ),
qlViewManipulator
,
SLOT
(
OnModelImageRegionChanged
(
const
ImageRegionType
&
))
);
qlViewManipulator, SLOT( OnModelImageRegionChanged(const
ImageRegionType&)) );
*/
//
...
...
@@ -348,14 +354,15 @@ MainWindow
SLOT
(
updateGL
()
)
);
// TODO : where to do this
QObject
::
disconnect
(
vectorImageModel
->
GetQuicklookModel
(),
SIGNAL
(
SettingsUpdated
()
),
// to:
qobject_cast
<
GLImageWidget
*>
(
GetQuicklookDock
()
->
widget
()),
SLOT
(
updateGL
()
)
);
// TODO : uncomment and apply new corrections
// // TODO : where to do this
// QObject::disconnect(
// vectorImageModel->GetQuicklookModel(),
// SIGNAL( SettingsUpdated() ),
// // to:
// qobject_cast<GLImageWidget *>(GetQuicklookDock()->widget()),
// SLOT( updateGL() )
// );
}
...
...
@@ -401,29 +408,33 @@ MainWindow
SLOT
(
updateGL
()
)
);
// TODO : where to do this
QObject
::
connect
(
vectorImageModel
->
GetQuicklookModel
(),
SIGNAL
(
SettingsUpdated
()
),
// to:
qobject_cast
<
GLImageWidget
*>
(
GetQuicklookDock
()
->
widget
()),
SLOT
(
updateGL
()
)
);
// Connect newly selected model to UI controller.
QObject
::
connect
(
colorSetupWidget
,
SIGNAL
(
CurrentIndexChanged
(
RgbaChannel
,
int
)
),
// to:
vectorImageModel
->
GetQuicklookModel
(),
SLOT
(
OnCurrentIndexChanged
(
RgbaChannel
,
int
)
)
);
// TODO : salbert uncomment and use new methods
// // TODO : where to do this
// QObject::connect(
// vectorImageModel->GetQuicklookModel(),
// SIGNAL( SettingsUpdated() ),
// // to:
// qobject_cast<GLImageWidget *>(GetQuicklookDock()->widget()),
// SLOT( updateGL() )
// );
// TODO : salbert uncomment and use new methods
// // Connect newly selected model to UI controller.
// QObject::connect(
// colorSetupWidget,
// SIGNAL( CurrentIndexChanged( RgbaChannel, int ) ),
// // to:
// vectorImageModel->GetQuicklookModel(),
// SLOT( OnCurrentIndexChanged( RgbaChannel, int ) )
// );
//
qobject_cast
<
GLImageWidget
*>
(
centralWidget
())
->
SetImageModel
(
vectorImageModel
);
qobject_cast
<
GLImageWidget
*>
(
GetQuicklookDock
()
->
widget
())
->
SetImageModel
(
vectorImageModel
->
GetQuicklookModel
());
// TODO : salbert uncomment and use new methods
//qobject_cast<GLImageWidget *>(GetQuicklookDock()->widget())->SetImageModel(vectorImageModel->GetQuicklookModel());
}
/*****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Code/Common/mvdAbstractImageModel.cxx
+
2
−
1
View file @
ce6b6ee3
...
...
@@ -162,7 +162,8 @@ AbstractImageModel
::
virtual_BuildModel
()
{
newChildModel
<
HistogramModel
>
();
newChildModel
<
QuicklookModel
>
();
// TODO : salbert uncomment and apply new modifications
//newChildModel< QuicklookModel >();
}
/*******************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment