Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
0c4a8f15
Commit
0c4a8f15
authored
Nov 21, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debut remise a plat de SCHNApps
parent
6ad82bac
Changes
47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
0 additions
and
8823 deletions
+0
-8823
SCHNApps/include/dialogs/cameraOptionDialog.h
SCHNApps/include/dialogs/cameraOptionDialog.h
+0
-26
SCHNApps/include/dialogs/cameraSceneDialog.h
SCHNApps/include/dialogs/cameraSceneDialog.h
+0
-51
SCHNApps/include/dialogs/cameraViewDialog.h
SCHNApps/include/dialogs/cameraViewDialog.h
+0
-31
SCHNApps/include/dialogs/globalCameraDialog.h
SCHNApps/include/dialogs/globalCameraDialog.h
+0
-93
SCHNApps/include/dialogs/linkViewDialog.h
SCHNApps/include/dialogs/linkViewDialog.h
+0
-32
SCHNApps/include/dialogs/mapPluginDialog.h
SCHNApps/include/dialogs/mapPluginDialog.h
+0
-32
SCHNApps/include/dialogs/newSceneDialog.h
SCHNApps/include/dialogs/newSceneDialog.h
+0
-37
SCHNApps/include/dialogs/pluginDialog.h
SCHNApps/include/dialogs/pluginDialog.h
+0
-56
SCHNApps/include/dialogs/sceneSelector.h
SCHNApps/include/dialogs/sceneSelector.h
+0
-124
SCHNApps/include/interface/splitArea.h
SCHNApps/include/interface/splitArea.h
+0
-37
SCHNApps/include/interface/stateHandler.h
SCHNApps/include/interface/stateHandler.h
+0
-9
SCHNApps/include/interface/system.h
SCHNApps/include/interface/system.h
+0
-131
SCHNApps/include/interface/viewButtonArea.h
SCHNApps/include/interface/viewButtonArea.h
+0
-72
SCHNApps/include/interface/window.h
SCHNApps/include/interface/window.h
+0
-424
SCHNApps/include/plugins/plugin.h
SCHNApps/include/plugins/plugin.h
+0
-111
SCHNApps/include/plugins/simplePlugin.h
SCHNApps/include/plugins/simplePlugin.h
+0
-132
SCHNApps/include/plugins/visualPlugin.h
SCHNApps/include/plugins/visualPlugin.h
+0
-157
SCHNApps/include/visualization/camera.h
SCHNApps/include/visualization/camera.h
+0
-65
SCHNApps/include/visualization/context.h
SCHNApps/include/visualization/context.h
+0
-16
SCHNApps/include/visualization/mapHandler.h
SCHNApps/include/visualization/mapHandler.h
+0
-47
SCHNApps/include/visualization/renderContainer.h
SCHNApps/include/visualization/renderContainer.h
+0
-72
SCHNApps/include/visualization/scene.h
SCHNApps/include/visualization/scene.h
+0
-100
SCHNApps/include/visualization/vboHandler.h
SCHNApps/include/visualization/vboHandler.h
+0
-33
SCHNApps/include/visualization/view.h
SCHNApps/include/visualization/view.h
+0
-136
SCHNApps/src/dialogs/cameraOptionDialog.cpp
SCHNApps/src/dialogs/cameraOptionDialog.cpp
+0
-63
SCHNApps/src/dialogs/cameraSceneDialog.cpp
SCHNApps/src/dialogs/cameraSceneDialog.cpp
+0
-243
SCHNApps/src/dialogs/cameraViewDialog.cpp
SCHNApps/src/dialogs/cameraViewDialog.cpp
+0
-99
SCHNApps/src/dialogs/globalCameraDialog.cpp
SCHNApps/src/dialogs/globalCameraDialog.cpp
+0
-333
SCHNApps/src/dialogs/linkViewDialog.cpp
SCHNApps/src/dialogs/linkViewDialog.cpp
+0
-202
SCHNApps/src/dialogs/mapPluginDialog.cpp
SCHNApps/src/dialogs/mapPluginDialog.cpp
+0
-120
SCHNApps/src/dialogs/newSceneDialog.cpp
SCHNApps/src/dialogs/newSceneDialog.cpp
+0
-234
SCHNApps/src/dialogs/pluginDialog.cpp
SCHNApps/src/dialogs/pluginDialog.cpp
+0
-438
SCHNApps/src/dialogs/sceneSelector.cpp
SCHNApps/src/dialogs/sceneSelector.cpp
+0
-511
SCHNApps/src/interface/splitArea.cpp
SCHNApps/src/interface/splitArea.cpp
+0
-176
SCHNApps/src/interface/stateHandler.cpp
SCHNApps/src/interface/stateHandler.cpp
+0
-933
SCHNApps/src/interface/system.cpp
SCHNApps/src/interface/system.cpp
+0
-461
SCHNApps/src/interface/viewButtonArea.cpp
SCHNApps/src/interface/viewButtonArea.cpp
+0
-121
SCHNApps/src/interface/window.cpp
SCHNApps/src/interface/window.cpp
+0
-826
SCHNApps/src/plugins/simplePlugin.cpp
SCHNApps/src/plugins/simplePlugin.cpp
+0
-163
SCHNApps/src/plugins/visualPlugin.cpp
SCHNApps/src/plugins/visualPlugin.cpp
+0
-417
SCHNApps/src/visualization/camera.cpp
SCHNApps/src/visualization/camera.cpp
+0
-112
SCHNApps/src/visualization/context.cpp
SCHNApps/src/visualization/context.cpp
+0
-9
SCHNApps/src/visualization/mapHandler.cpp
SCHNApps/src/visualization/mapHandler.cpp
+0
-106
SCHNApps/src/visualization/renderContainer.cpp
SCHNApps/src/visualization/renderContainer.cpp
+0
-212
SCHNApps/src/visualization/scene.cpp
SCHNApps/src/visualization/scene.cpp
+0
-418
SCHNApps/src/visualization/vboHandler.cpp
SCHNApps/src/visualization/vboHandler.cpp
+0
-30
SCHNApps/src/visualization/view.cpp
SCHNApps/src/visualization/view.cpp
+0
-572
No files found.
SCHNApps/include/dialogs/cameraOptionDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _CAMERAOPTIONDIALOG_H_
#define _CAMERAOPTIONDIALOG_H_
#include "ui_cameraOptionDialog.h"
class
Camera
;
class
CameraOptionDialog
:
public
QDialog
,
Ui
::
CODialog
{
Q_OBJECT
public:
CameraOptionDialog
(
Camera
*
camera
,
QWidget
*
parent
);
~
CameraOptionDialog
(){}
public
slots
:
void
drawChecked
(
bool
b
);
void
drawPathChecked
(
bool
b
);
void
accept
();
protected:
Camera
*
m_camera
;
};
#endif
SCHNApps/include/dialogs/cameraSceneDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _SEPARATECAMERADIALOG_H_
#define _SEPARATECAMERADIALOG_H_
#include "ui_cameraSceneDialog.h"
#include <QTreeWidget>
#include <QVariant>
class
Scene
;
class
View
;
namespace
Qt
{
extern
int
UserRoleType
;
}
namespace
myTreeWidget
{
enum
type
{
view
,
camera
};
}
class
MyTreeWidget
:
public
QTreeWidget
{
Q_OBJECT
public:
MyTreeWidget
(
Scene
*
originalScene
,
QWidget
*
parent
=
0
);
protected:
virtual
bool
dropMimeData
(
QTreeWidgetItem
*
parent
,
int
index
,
const
QMimeData
*
data
,
Qt
::
DropAction
action
);
QStringList
mimeTypes
()
const
;
Qt
::
DropActions
supportedDropActions
()
const
;
QMimeData
*
mimeData
(
const
QList
<
QTreeWidgetItem
*>
items
)
const
;
Scene
*
m_scene
;
};
class
CameraSceneDialog
:
public
QDialog
,
Ui
::
CSDialog
{
Q_OBJECT
public:
CameraSceneDialog
(
Scene
*
scene
,
QWidget
*
parent
=
0
);
~
CameraSceneDialog
(){}
MyTreeWidget
*
treeWidget
;
Scene
*
m_scene
;
protected
slots
:
void
newDuplicatedView
();
void
removeView
();
void
currentItemChanged
(
QTreeWidgetItem
*
cur
,
QTreeWidgetItem
*
prev
);
};
#endif
SCHNApps/include/dialogs/cameraViewDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _CAMERAVIEWDIALOG_H_
#define _CAMERAVIEWDIALOG_H_
#include "ui_cameraViewDialog.h"
class
View
;
class
Camera
;
class
CameraViewDialog
:
public
QDialog
,
Ui
::
CVDialog
{
Q_OBJECT
public:
CameraViewDialog
(
View
*
view
,
QWidget
*
parent
=
0
);
~
CameraViewDialog
();
protected:
View
*
view
;
protected
slots
:
void
addCamera
();
void
removeCamera
();
void
changeCurrentCamera
(
QListWidgetItem
*
current
,
QListWidgetItem
*
previous
);
void
cameraNameChange
(
QListWidgetItem
*
item
);
void
settingsCamera
();
private:
bool
autoText
;
};
#endif
SCHNApps/include/dialogs/globalCameraDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _GLOBALCAMERADIALOG_H_
#define _GLOBALCAMERADIALOG_H_
#include "ui_globalCameraDialog.h"
#include <QListWidget>
#include <QTreeWidget>
#include <QVariant>
#include <QMenu>
#include "visualization/camera.h"
#include "visualization/view.h"
class
Window
;
struct
CarryCamera
{
Camera
*
camera
;
View
*
view
;
CarryCamera
(
Camera
*
camera
=
NULL
,
View
*
view
=
NULL
)
:
camera
(
camera
),
view
(
view
){}
};
namespace
Qt
{
extern
int
UserRole2
;
}
namespace
myDragDropWidgets
{
enum
type
{
view
,
camera
,
scene
};
}
class
MyCameraMenu
:
public
QMenu
{
Q_OBJECT
public:
enum
ResultType
{
none
,
move
,
share
};
enum
Mode
{
moving
=
1
,
sharing
=
2
};
MyCameraMenu
(
const
QString
&
title
,
QWidget
*
parent
=
0
,
int
mode
=
(
moving
|
sharing
));
ResultType
result
(){
return
m_result
;}
protected:
QAction
*
m_moveAction
;
QAction
*
m_shareAction
;
ResultType
m_result
;
protected
slots
:
void
moveCamera
(){
m_result
=
move
;}
void
shareCamera
(){
m_result
=
share
;}
};
class
MyDragListWidget
:
public
QListWidget
{
Q_OBJECT
public:
MyDragListWidget
(
QWidget
*
parent
=
0
);
~
MyDragListWidget
(){}
protected:
QMimeData
*
mimeData
(
const
QList
<
QListWidgetItem
*>
items
)
const
;
};
class
MyDropTreeWidget
:
public
QTreeWidget
{
Q_OBJECT
public:
MyDropTreeWidget
(
QWidget
*
parent
=
0
);
~
MyDropTreeWidget
(){}
protected:
virtual
bool
dropMimeData
(
QTreeWidgetItem
*
parent
,
int
index
,
const
QMimeData
*
data
,
Qt
::
DropAction
action
);
QStringList
mimeTypes
()
const
;
Qt
::
DropActions
supportedDropActions
()
const
;
};
class
GlobalCameraDialog
:
public
QDialog
,
Ui
::
GCDialog
{
Q_OBJECT
public:
GlobalCameraDialog
(
Window
*
window
);
~
GlobalCameraDialog
(){}
MyDropTreeWidget
*
treeWidget
;
MyDragListWidget
*
listWidget
;
public
slots
:
void
treeCurrentItemChanged
(
QTreeWidgetItem
*
cur
,
QTreeWidgetItem
*
prev
);
};
#endif
SCHNApps/include/dialogs/linkViewDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _LINKVIEWDIALOG_H_
#define _LINKVIEWDIALOG_H_
#include "ui_linkViewDialog.h"
#include "types.h"
class
Window
;
class
Scene
;
class
LinkViewDialog
:
public
QDialog
,
Ui
::
LVDialog
{
Q_OBJECT
public:
LinkViewDialog
(
Window
*
parent
,
PluginHash
*
activePlugins
,
Scene
*
scene
);
LinkViewDialog
(
Window
*
parent
,
QList
<
Plugin
*>
dependingPlugin
,
Scene
*
scene
);
~
LinkViewDialog
(){}
protected:
enum
Mode
{
LINK
,
UNLINK
};
QList
<
Plugin
*>
l_waitingPlugins
;
Scene
*
m_scene
;
Mode
m_mode
;
public
slots
:
void
button_OK
();
void
customContextMenu
(
const
QPoint
&
pos
);
void
showPluginInfo
();
};
#endif
SCHNApps/include/dialogs/mapPluginDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _MAPPLUGINDIALOG_H_
#define _MAPPLUGINDIALOG_H_
#include "ui_mapPluginDialog.h"
#include "types.h"
class
Window
;
class
Plugin
;
class
MapHandler
;
namespace
CGoGN
{
class
GenericMap
;
}
class
MapPluginDialog
:
public
QDialog
,
Ui
::
MPDialog
{
Q_OBJECT
public:
MapPluginDialog
(
Window
*
w
,
MapHash
*
maps
);
protected:
QList
<
Plugin
*>
l_plugin
;
public
slots
:
void
pluginSelection
();
void
actionMap
(
QListWidgetItem
*
item
);
void
customPluginContextMenu
(
const
QPoint
&
pos
);
void
showPluginInfo
();
};
#endif
SCHNApps/include/dialogs/newSceneDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _NEWSCENEDIALOG_H_
#define _NEWSCENEDIALOG_H_
#include "ui_newSceneDialog.h"
#include <QListWidget>
namespace
myListCameraTypes
{
enum
type
{
view
,
camera
,
scene
};
}
class
Window
;
class
NewSceneDialog
:
public
QDialog
,
Ui
::
NSDialog
{
Q_OBJECT
public:
NewSceneDialog
(
Window
*
parent
);
~
NewSceneDialog
();
protected:
Window
*
m_window
;
QListWidget
*
m_listWidget
;
QListWidget
*
m_listWidget2
;
public
slots
:
void
button_OK
();
void
new_camera
();
void
share_camera
();
void
cameraListSelectionChange
(
QListWidgetItem
*
cur
,
QListWidgetItem
*
prev
);
void
linkPlugin
(
bool
b
);
void
customContextMenu
(
const
QPoint
&
pos
);
void
showPluginInfo
();
};
#endif
SCHNApps/include/dialogs/pluginDialog.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _PLUGINDIALOG_H_
#define _PLUGINDIALOG_H_
#include "ui_pluginDialog.h"
#include <QDir>
#include <QDomDocument>
#include <QDomElement>
#include <QDomNode>
#include <QTextStream>
#include "types.h"
class
Plugin
;
class
Window
;
class
PluginDialog
:
public
QDialog
,
public
Ui
::
Dialog
{
Q_OBJECT
public:
PluginDialog
(
Window
*
parent
=
0
,
PluginHash
*
activePlugins
=
NULL
);
~
PluginDialog
();
protected:
// QDomDocument doc;
// QFile xmlFile;
// QTextStream out;
PluginHash
*
activePlugins
;
Window
*
parentWindow
;
bool
loadInfoPlugins
();
// void showPlugins();
private:
bool
init
;
enum
EntryType
{
DIR
=
1
,
FILE
,
FILE_DIR
};
void
showPluginsDir
(
QDir
directory
);
protected
slots
:
void
cb_addPlugins
();
void
cb_removePlugins
();
void
cb_addPluginDirectory
();
void
cb_activePlugin
(
QTreeWidgetItem
*
item
,
int
column
);
void
cb_acceptDialog
();
void
customContextMenu
(
const
QPoint
&
pos
);
void
showPluginInfo
();
};
#endif
SCHNApps/include/dialogs/sceneSelector.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _SCENESELECTOR_H_
#define _SCENESELECTOR_H_
#include "visualization/view.h"
#include <QDialog>
#include <QRect>
class
SplitArea
;
struct
PixElem
{
View
*
view
;
QRect
rect
;
QColor
color
;
PixElem
()
:
view
(
NULL
),
color
(
Qt
::
gray
){}
PixElem
(
View
*
view
)
:
view
(
view
),
color
(
Qt
::
gray
){}
PixElem
(
const
PixElem
&
pixElem
)
:
view
(
pixElem
.
view
),
rect
(
pixElem
.
rect
),
color
(
pixElem
.
color
){}
bool
operator
==
(
const
PixElem
&
other
)
const
{
return
view
==
other
.
view
;
}
PixElem
&
operator
=
(
const
PixElem
&
other
){
view
=
other
.
view
;
rect
=
other
.
rect
,
color
=
other
.
color
;
return
*
this
;
}
};
class
ViewPixMaps
:
public
QList
<
QList
<
PixElem
>
>
{
public:
typedef
ViewPixMaps
::
iterator
y_iterator
;
typedef
QList
<
PixElem
>::
iterator
x_iterator
;
ViewPixMaps
();
~
ViewPixMaps
();
void
fromSplitArea
(
SplitArea
*
splitArea
);
int
getMaxX
();
int
getMinX
();
int
getY
();
int
getYMinX
();
PixElem
&
getAt
(
int
x
,
int
y
);
y_iterator
y_begin
(){
return
this
->
begin
();}
y_iterator
y_end
(){
return
this
->
end
();}
x_iterator
x_begin
(
y_iterator
y_it
){
return
y_it
->
begin
();}
x_iterator
x_end
(
y_iterator
y_it
){
return
y_it
->
end
();}
void
beginMove
(
int
x
,
int
y
);
void
moveTmp
(
int
x
,
int
y
);
void
confirmMove
();
void
cancelMove
();
void
insertion
(
int
x
,
int
y
);
bool
isModified
(){
return
this
->
modif
;}
private:
int
maxX
;
int
minX
;
int
Y
;
int
YminX
;
int
originX
,
originY
;
PixElem
origin
;
int
tmpX
,
tmpY
;
PixElem
tmp
;
bool
modif
;
protected:
void
computeSize
();
};
class
ViewSelector
:
public
QDialog
{
Q_OBJECT
public:
enum
SelectorDialogType
{
MOVE
,
SELECT
};
ViewSelector
(
QWidget
*
parent
=
0
,
SelectorDialogType
type
=
MOVE
);
ViewSelector
(
ViewPixMaps
viewPixMap
,
QWidget
*
parent
=
0
,
SelectorDialogType
type
=
MOVE
);
~
ViewSelector
();
void
setGLVMap
(
ViewPixMaps
viewPixMap
);
ViewPixMaps
getGLVMap
(){
return
viewPixMap
;}
QPoint
getInsertPoint
();
void
setInsertionName
(
QString
insertionName
){
this
->
insertionName
=
insertionName
;}
bool
keys
[
3
];
protected:
ViewPixMaps
viewPixMap
;
int
mouseX
,
mouseY
;
bool
pixmapGrabbed
;
QRect
grabbed
;
SelectorDialogType
type
;
QPoint
insertPoint
;
QString
insertionName
;
protected:
void
paintEvent
(
QPaintEvent
*
event
);
void
mouseMoveEvent
(
QMouseEvent
*
event
);
void
mousePressEvent
(
QMouseEvent
*
event
);
void
mouseReleaseEvent
(
QMouseEvent
*
event
);
void
keyPressEvent
(
QKeyEvent
*
event
);
void
keyReleaseEvent
(
QKeyEvent
*
event
);
private:
QPoint
mouseToIndice
();
};
#endif
SCHNApps/include/interface/splitArea.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _SPLITAREA_H_
#define _SPLITAREA_H_
#include <QSplitter>
class
SplitArea
:
public
QSplitter
{
Q_OBJECT
public:
SplitArea
(
QWidget
*
parent
=
0
);
void
addFitElement
(
QWidget
*
element
);
void
addElementAt
(
QWidget
*
element
,
int
x
,
int
y
);
void
addElementRightTo
(
QWidget
*
element
,
QWidget
*
left
);
bool
isEmpty
();
int
getNbRow
(){
return
nbRow
;}
void
updateSize
();
protected:
int
nbRow
,
nbMaxColumn
;
int
rowMin
;
int
nbElement
;
protected
slots
:
void
elementRemoved
();
private:
bool
sizeUpdated
;
void
determineRowMin
();
};
#endif
SCHNApps/include/interface/stateHandler.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _STATEHANDLER_H_
#define _STATEHANDLER_H_
class
StateHandler
{
};
#endif
SCHNApps/include/interface/system.h
deleted
100644 → 0
View file @
6ad82bac
#ifndef _SYSTEM_H_
#define _SYSTEM_H_
#include <QWidget>
#include <QSplashScreen>
#include <unistd.h>
#include <stdarg.h>
#include <iostream>
#include "types.h"
#include "ui_questionSessionDialog.h"
#include "ui_infoDialog.h"
class
Window
;
class
SplitArea
;
namespace
System
{
namespace
Dialog
{
class
QuestionSessionDialog
:
public
QDialog
,
public
Ui
::
QSDialog
{
Q_OBJECT
public:
QuestionSessionDialog
(
QWidget
*
parent
=
0
)
:
QDialog
(
parent
)
{
this
->
setupUi
(
this
);
}
};
class
InfoDialog
:
public
QDialog
,
public
Ui
::
InfoDialog
{
Q_OBJECT
public:
InfoDialog
(
QWidget
*
parent
=
0
)
:
QDialog
(
parent
)
{
this
->
setupUi
(
this
);
}
bool
setContent
(
QUrl
urlHTMLFile
);
};
}
class
Error
{
public:
virtual
~
Error
()
=
0
;
typedef
enum
{
SUCCESS
,
NO_SCENE
,
SCENE_UNREFERENCED
,
SCENE_EXISTS
,
NO_DOCK
,
NO_PLUGIN_PATH_FILE
,
ERROR_OPEN_PLUGIN_FILE
,
BAD_PLUGIN_PATH_FILE
,
BAD_PLUGIN_PATH_IN_FILE
,
NO_PLUGIN_IN_DIR
,
PLUGIN_EXISTS
,
ERROR_PLUGIN_LOAD
,
BAD_LINK_PLUGIN_WINDOW
,
UNSATSIFIED_PLUGIN_DEPENDENCIE
,
BAD_ACTION_MENU_PATH
,
MAP_UNREFERENCED