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
ea92bf90
Commit
ea92bf90
authored
Sep 24, 2013
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Plain Diff
Merge cgogn:~kraemer/CGoGN
parents
0592797d
82c66ae3
Changes
36
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
1204 additions
and
1157 deletions
+1204
-1157
SCHNApps/Plugins/CMakeLists.txt
SCHNApps/Plugins/CMakeLists.txt
+4
-3
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
+4
-4
SCHNApps/Plugins/surface_deformation/forms/surfaceDeformation.ui
...s/Plugins/surface_deformation/forms/surfaceDeformation.ui
+0
-88
SCHNApps/Plugins/surface_deformation/forms/surface_deformation.ui
.../Plugins/surface_deformation/forms/surface_deformation.ui
+105
-0
SCHNApps/Plugins/surface_deformation/include/surfaceDeformation.h
.../Plugins/surface_deformation/include/surfaceDeformation.h
+0
-154
SCHNApps/Plugins/surface_deformation/include/surfaceDeformationDockTab.h
...s/surface_deformation/include/surfaceDeformationDockTab.h
+0
-45
SCHNApps/Plugins/surface_deformation/include/surface_deformation.h
...Plugins/surface_deformation/include/surface_deformation.h
+118
-0
SCHNApps/Plugins/surface_deformation/include/surface_deformation_dockTab.h
...surface_deformation/include/surface_deformation_dockTab.h
+50
-0
SCHNApps/Plugins/surface_deformation/src/surfaceDeformation.cpp
...ps/Plugins/surface_deformation/src/surfaceDeformation.cpp
+0
-682
SCHNApps/Plugins/surface_deformation/src/surfaceDeformationDockTab.cpp
...ins/surface_deformation/src/surfaceDeformationDockTab.cpp
+0
-129
SCHNApps/Plugins/surface_deformation/src/surface_deformation.cpp
...s/Plugins/surface_deformation/src/surface_deformation.cpp
+527
-0
SCHNApps/Plugins/surface_deformation/src/surface_deformation_dockTab.cpp
...s/surface_deformation/src/surface_deformation_dockTab.cpp
+184
-0
SCHNApps/Plugins/surface_differentialProperties/include/surface_differentialProperties.h
...entialProperties/include/surface_differentialProperties.h
+1
-1
SCHNApps/Plugins/surface_differentialProperties/src/surface_differentialProperties.cpp
...erentialProperties/src/surface_differentialProperties.cpp
+15
-0
SCHNApps/Plugins/surface_render/src/surface_render.cpp
SCHNApps/Plugins/surface_render/src/surface_render.cpp
+5
-0
SCHNApps/Plugins/surface_renderScalar/src/surface_renderScalar.cpp
...Plugins/surface_renderScalar/src/surface_renderScalar.cpp
+5
-0
SCHNApps/Plugins/surface_renderTopo/include/surface_renderTopo.h
...s/Plugins/surface_renderTopo/include/surface_renderTopo.h
+1
-1
SCHNApps/Plugins/surface_renderTopo/include/surface_renderTopo_dockTab.h
...s/surface_renderTopo/include/surface_renderTopo_dockTab.h
+1
-1
SCHNApps/Plugins/surface_renderTopo/src/surface_renderTopo.cpp
...pps/Plugins/surface_renderTopo/src/surface_renderTopo.cpp
+8
-3
SCHNApps/Plugins/surface_renderTopo/src/surface_renderTopo_dockTab.cpp
...ins/surface_renderTopo/src/surface_renderTopo_dockTab.cpp
+14
-11
SCHNApps/Plugins/surface_renderVector/src/surface_renderVector.cpp
...Plugins/surface_renderVector/src/surface_renderVector.cpp
+5
-0
SCHNApps/Plugins/surface_selection/include/surface_selection.h
...pps/Plugins/surface_selection/include/surface_selection.h
+2
-1
SCHNApps/Plugins/surface_selection/include/surface_selection_dockTab.h
...ins/surface_selection/include/surface_selection_dockTab.h
+1
-1
SCHNApps/Plugins/surface_selection/src/surface_selection.cpp
SCHNApps/Plugins/surface_selection/src/surface_selection.cpp
+27
-6
SCHNApps/Plugins/surface_selection/src/surface_selection_dockTab.cpp
...ugins/surface_selection/src/surface_selection_dockTab.cpp
+10
-10
SCHNApps/Plugins/surface_subdivision/include/surface_subdivision.h
...Plugins/surface_subdivision/include/surface_subdivision.h
+1
-1
SCHNApps/Plugins/surface_subdivision/src/surface_subdivision.cpp
...s/Plugins/surface_subdivision/src/surface_subdivision.cpp
+8
-0
SCHNApps/include/cellSelector.h
SCHNApps/include/cellSelector.h
+2
-0
SCHNApps/include/colorComboBox.h
SCHNApps/include/colorComboBox.h
+28
-0
SCHNApps/include/mapHandler.h
SCHNApps/include/mapHandler.h
+6
-2
SCHNApps/include/mapHandler.hpp
SCHNApps/include/mapHandler.hpp
+9
-0
SCHNApps/include/types.h
SCHNApps/include/types.h
+1
-0
SCHNApps/src/colorComboBox.cpp
SCHNApps/src/colorComboBox.cpp
+52
-0
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+4
-8
include/Algo/LinearSolving/basic.h
include/Algo/LinearSolving/basic.h
+2
-2
include/Algo/LinearSolving/variablesSetup.h
include/Algo/LinearSolving/variablesSetup.h
+4
-4
No files found.
SCHNApps/Plugins/CMakeLists.txt
View file @
ea92bf90
cmake_minimum_required
(
VERSION 2.8
)
ADD_SUBDIRECTORY
(
surface_import
)
ADD_SUBDIRECTORY
(
surface_differentialProperties
)
ADD_SUBDIRECTORY
(
surface_subdivision
)
ADD_SUBDIRECTORY
(
surface_selection
)
ADD_SUBDIRECTORY
(
surface_render
)
ADD_SUBDIRECTORY
(
surface_renderVector
)
ADD_SUBDIRECTORY
(
surface_renderScalar
)
ADD_SUBDIRECTORY
(
surface_renderTopo
)
ADD_SUBDIRECTORY
(
surface_differentialProperties
)
ADD_SUBDIRECTORY
(
surface_subdivision
)
ADD_SUBDIRECTORY
(
surface_selection
)
ADD_SUBDIRECTORY
(
surface_deformation
)
SCHNApps/Plugins/surface_deformation/CMakeLists.txt
View file @
ea92bf90
cmake_minimum_required
(
VERSION 2.8
)
SET
(
PLUGIN_NAME SurfaceDeformation
)
SET
(
PLUGIN_NAME Surface
_
Deformation
)
SET
(
PLUGIN_ROOT_DIR
${
SCHNApps_ROOT_DIR
}
/Plugins/surface
D
eformation
)
SET
(
PLUGIN_ROOT_DIR
${
SCHNApps_ROOT_DIR
}
/Plugins/surface
_d
eformation
)
INCLUDE_DIRECTORIES
(
${
PLUGIN_ROOT_DIR
}
/include
...
...
@@ -25,8 +25,8 @@ file(
SET
(
PLUGIN_QOBJECT_FILES
${
PLUGIN_ROOT_DIR
}
/include/surface
D
eformation.h
${
PLUGIN_ROOT_DIR
}
/include/surface
DeformationD
ockTab.h
${
PLUGIN_ROOT_DIR
}
/include/surface
_d
eformation.h
${
PLUGIN_ROOT_DIR
}
/include/surface
_deformation_d
ockTab.h
)
include
(
${
SCHNApps_ROOT_DIR
}
/Plugins/plugins_cmake.txt
)
SCHNApps/Plugins/surface_deformation/forms/surfaceDeformation.ui
deleted
100644 → 0
View file @
0592797d
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
SurfaceDeformationWidget
</class>
<widget
class=
"QWidget"
name=
"SurfaceDeformationWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
189
</width>
<height>
545
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QListWidget"
name=
"mapList"
/>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Position :
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QComboBox"
name=
"combo_positionAttribute"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"title"
>
<string>
Select Vertices
</string>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_7"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<widget
class=
"QRadioButton"
name=
"radio_locked"
>
<property
name=
"text"
>
<string>
locked
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QRadioButton"
name=
"radio_handle"
>
<property
name=
"text"
>
<string>
handle
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
156
</width>
<height>
161
</height>
</size>
</property>
</spacer>
</item>
</layout>
<zorder>
mapList
</zorder>
<zorder>
label_2
</zorder>
<zorder>
groupBox
</zorder>
</widget>
<resources/>
<connections/>
</ui>
SCHNApps/Plugins/surface_deformation/forms/surface_deformation.ui
0 → 100644
View file @
ea92bf90
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
Surface_Deformation_TabWidget
</class>
<widget
class=
"QWidget"
name=
"Surface_Deformation_TabWidget"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
180
</width>
<height>
545
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Position :
</string>
</property>
</widget>
</item>
<item
row=
"9"
column=
"0"
colspan=
"2"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
156
</width>
<height>
161
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"text"
>
<string>
Locked selector :
</string>
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"combo_lockedSelector"
>
<item>
<property
name=
"text"
>
<string>
- select selector -
</string>
</property>
</item>
</widget>
</item>
<item
row=
"5"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Handle selector :
</string>
</property>
</widget>
</item>
<item
row=
"6"
column=
"0"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"combo_handleSelector"
>
<item>
<property
name=
"text"
>
<string>
- select selector -
</string>
</property>
</item>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"combo_positionAttribute"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Expanding"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<item>
<property
name=
"text"
>
<string>
- select attribute -
</string>
</property>
</item>
</widget>
</item>
<item
row=
"7"
column=
"0"
colspan=
"2"
>
<widget
class=
"Line"
name=
"line"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"8"
column=
"0"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"button_start_stop"
>
<property
name=
"text"
>
<string>
Start
</string>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>
combo_positionAttribute
</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
SCHNApps/Plugins/surface_deformation/include/surfaceDeformation.h
deleted
100644 → 0
View file @
0592797d
#ifndef _SURFACEDEFORMATION_PLUGIN_H_
#define _SURFACEDEFORMATION_PLUGIN_H_
#include "plugin.h"
#include "surfaceDeformationDockTab.h"
#include "mapHandler.h"
#include "Utils/pointSprite.h"
#include "Container/fakeAttribute.h"
#include "NL/nl.h"
#include "Algo/LinearSolving/basic.h"
#include "Eigen/Dense"
namespace
CGoGN
{
namespace
SCHNApps
{
enum
SelectionMode
{
LOCKED
,
HANDLE
};
typedef
NoNameIOAttribute
<
Eigen
::
Matrix3f
>
Eigen_Matrix3f
;
struct
PerMapParameterSet
{
PerMapParameterSet
(
MapHandlerGen
*
mh
);
~
PerMapParameterSet
();
void
initParameters
();
MapHandlerGen
*
mh
;
VertexAttribute
<
PFP2
::
VEC3
>
positionAttribute
;
CellMarker
<
VERTEX
>*
lockingMarker
;
CellMarker
<
VERTEX
>*
handleMarker
;
SelectionMode
verticesSelectionMode
;
std
::
vector
<
PFP2
::
VEC3
>
lockedVertices
;
std
::
vector
<
PFP2
::
VEC3
>
handleVertices
;
std
::
vector
<
unsigned
int
>
handleVerticesId
;
Utils
::
VBO
*
lockedVerticesVBO
;
Utils
::
VBO
*
handleVerticesVBO
;
VertexAttribute
<
PFP2
::
VEC3
>
positionInit
;
VertexAttribute
<
PFP2
::
VEC3
>
vertexNormal
;
EdgeAttribute
<
PFP2
::
REAL
>
edgeAngle
;
EdgeAttribute
<
PFP2
::
REAL
>
edgeWeight
;
VertexAttribute
<
PFP2
::
REAL
>
vertexArea
;
VertexAttribute
<
PFP2
::
VEC3
>
diffCoord
;
VertexAttribute
<
Eigen_Matrix3f
>
vertexRotationMatrix
;
VertexAttribute
<
PFP2
::
VEC3
>
rotatedDiffCoord
;
VertexAttribute
<
unsigned
int
>
vIndex
;
unsigned
int
nb_vertices
;
NLContext
nlContext
;
};
struct
ParameterSet
{
ParameterSet
()
:
selectedMap
(
NULL
)
{}
PerMapParameterSet
*
getCurrentMapParameterSet
()
{
if
(
selectedMap
)
return
perMap
[
selectedMap
->
getName
()];
else
return
NULL
;
}
QHash
<
QString
,
PerMapParameterSet
*>
perMap
;
MapHandlerGen
*
selectedMap
;
};
class
SurfaceDeformationPlugin
:
public
Plugin
{
Q_OBJECT
Q_INTERFACES
(
CGoGN
::
SCHNApps
::
Plugin
)
public:
SurfaceDeformationPlugin
()
:
selecting
(
false
),
dragging
(
false
)
{
setProvidesRendering
(
true
);
}
~
SurfaceDeformationPlugin
()
{}
virtual
bool
enable
();
virtual
void
disable
();
virtual
void
redraw
(
View
*
view
);
virtual
void
keyPress
(
View
*
view
,
QKeyEvent
*
event
);
virtual
void
keyRelease
(
View
*
view
,
QKeyEvent
*
event
);
virtual
void
mousePress
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
mouseRelease
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
mouseMove
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
wheelEvent
(
View
*
view
,
QWheelEvent
*
event
);
protected:
SurfaceDeformationDockTab
*
m_dockTab
;
QHash
<
View
*
,
ParameterSet
*>
h_viewParams
;
Utils
::
PointSprite
*
m_pointSprite
;
Utils
::
VBO
*
selectionSphereVBO
;
bool
selecting
;
PFP2
::
VEC3
selectionCenter
;
PFP2
::
REAL
selectionRadius
;
bool
dragging
;
PFP2
::
REAL
dragZ
;
qglviewer
::
Vec
dragPrevious
;
public
slots
:
void
viewLinked
(
View
*
view
,
Plugin
*
plugin
);
void
viewUnlinked
(
View
*
view
,
Plugin
*
plugin
);
void
currentViewChanged
(
View
*
view
);
void
mapLinked
(
MapHandlerGen
*
m
);
void
mapUnlinked
(
MapHandlerGen
*
m
);
protected:
void
addManagedMap
(
View
*
v
,
MapHandlerGen
*
m
);
void
removeManagedMap
(
View
*
v
,
MapHandlerGen
*
m
);
public
slots
:
void
changeSelectedMap
(
View
*
view
,
MapHandlerGen
*
map
);
void
changePositionAttribute
(
View
*
view
,
MapHandlerGen
*
map
,
VertexAttribute
<
PFP2
::
VEC3
>
attribute
,
bool
fromUI
=
false
);
void
changeVerticesSelectionMode
(
View
*
view
,
MapHandlerGen
*
map
,
SelectionMode
m
,
bool
fromUI
=
false
);
protected:
void
matchDiffCoord
(
View
*
view
,
MapHandlerGen
*
map
);
void
asRigidAsPossible
(
View
*
view
,
MapHandlerGen
*
map
);
};
}
// namespace SCHNApps
}
// namespace CGoGN
#endif
SCHNApps/Plugins/surface_deformation/include/surfaceDeformationDockTab.h
deleted
100644 → 0
View file @
0592797d
#ifndef _SURFACE_DEFORMATION_DOCK_TAB_H_
#define _SURFACE_DEFORMATION_DOCK_TAB_H_
#include "ui_surfaceDeformation.h"
namespace
CGoGN
{
namespace
SCHNApps
{
class
Window
;
class
SurfaceDeformationPlugin
;
struct
ParameterSet
;
class
SurfaceDeformationDockTab
:
public
QWidget
,
public
Ui
::
SurfaceDeformationWidget
{
Q_OBJECT
public:
SurfaceDeformationDockTab
(
Window
*
w
,
SurfaceDeformationPlugin
*
p
);
private:
Window
*
m_window
;
SurfaceDeformationPlugin
*
m_plugin
;
ParameterSet
*
m_currentParams
;
bool
b_refreshingUI
;
public
slots
:
void
refreshUI
(
ParameterSet
*
params
);
void
selectedMapChanged
();
void
positionAttributeChanged
(
int
index
);
void
selectLockedVertices
(
bool
b
);
void
selectHandleVertices
(
bool
b
);
void
addAttributeToList
(
unsigned
int
orbit
,
const
QString
&
nameAttr
);
};
}
// namespace SCHNApps
}
// namespace CGoGN
#endif
SCHNApps/Plugins/surface_deformation/include/surface_deformation.h
0 → 100644
View file @
ea92bf90
#ifndef _SURFACE_DEFORMATION_PLUGIN_H_
#define _SURFACE_DEFORMATION_PLUGIN_H_
#include "plugin_interaction.h"
#include "surface_deformation_dockTab.h"
#include "mapHandler.h"
#include "Container/fakeAttribute.h"
#include "NL/nl.h"
#include "Algo/LinearSolving/basic.h"
#include "Eigen/Dense"
namespace
CGoGN
{
namespace
SCHNApps
{
typedef
NoTypeNameAttribute
<
Eigen
::
Matrix3f
>
Eigen_Matrix3f
;
struct
MapParameters
{
MapParameters
();
~
MapParameters
();
void
start
(
MapHandlerGen
*
mh
);
void
stop
(
MapHandlerGen
*
mh
);
VertexAttribute
<
PFP2
::
VEC3
>
positionAttribute
;
CellSelector
<
VERTEX
>*
lockedSelector
;
CellSelector
<
VERTEX
>*
handleSelector
;
bool
initialized
;
VertexAttribute
<
PFP2
::
VEC3
>
positionInit
;
VertexAttribute
<
PFP2
::
VEC3
>
diffCoord
;
VertexAttribute
<
Eigen_Matrix3f
>
vertexRotationMatrix
;
VertexAttribute
<
PFP2
::
VEC3
>
rotatedDiffCoord
;
VertexAttribute
<
unsigned
int
>
vIndex
;
unsigned
int
nb_vertices
;
NLContext
nlContext
;
};
class
Surface_Deformation_Plugin
:
public
PluginInteraction
{
Q_OBJECT
Q_INTERFACES
(
CGoGN
::
SCHNApps
::
Plugin
)
friend
class
Surface_Deformation_DockTab
;
public:
Surface_Deformation_Plugin
()
:
m_draginit
(
false
),
m_dragging
(
false
)
{}
~
Surface_Deformation_Plugin
()
{}
virtual
bool
enable
();
virtual
void
disable
();
virtual
void
draw
(
View
*
view
);
virtual
void
drawMap
(
View
*
view
,
MapHandlerGen
*
map
)
{}
virtual
void
keyPress
(
View
*
view
,
QKeyEvent
*
event
);
virtual
void
keyRelease
(
View
*
view
,
QKeyEvent
*
event
)
{}
virtual
void
mousePress
(
View
*
view
,
QMouseEvent
*
event
)
{}
virtual
void
mouseRelease
(
View
*
view
,
QMouseEvent
*
event
)
{}
virtual
void
mouseMove
(
View
*
view
,
QMouseEvent
*
event
);
virtual
void
wheelEvent
(
View
*
view
,
QWheelEvent
*
event
)
{}
virtual
void
viewLinked
(
View
*
view
)
{}
virtual
void
viewUnlinked
(
View
*
view
)
{}
private
slots
:
// slots called from SCHNApps signals
void
selectedMapChanged
(
MapHandlerGen
*
prev
,
MapHandlerGen
*
cur
);
void
mapAdded
(
MapHandlerGen
*
map
);
void
mapRemoved
(
MapHandlerGen
*
map
);
// slots called from MapHandler signals
void
attributeAdded
(
unsigned
int
orbit
,
const
QString
&
name
);
void
cellSelectorAdded
(
unsigned
int
orbit
,
const
QString
&
name
);
void
cellSelectorRemoved
(
unsigned
int
orbit
,
const
QString
&
name
);
void
selectedCellsChanged
();
public
slots
:
// slots for Python calls
void
changePositionAttribute
(
const
QString
&
map
,
const
QString
&
name
);
void
changeLockedSelector
(
const
QString
&
map
,
const
QString
&
name
);
void
changeHandleSelector
(
const
QString
&
map
,
const
QString
&
name
);
protected:
void
toggleMapDeformation
(
MapHandlerGen
*
map
);
void
matchDiffCoord
(
MapHandlerGen
*
map
);
void
asRigidAsPossible
(
MapHandlerGen
*
map
);
protected:
Surface_Deformation_DockTab
*
m_dockTab
;
QHash
<
MapHandlerGen
*
,
MapParameters
>
h_parameterSet
;
bool
m_draginit
;
bool
m_dragging
;
PFP2
::
REAL
m_dragZ
;
qglviewer
::
Vec
m_dragPrevious
;
};
}
// namespace SCHNApps
}
// namespace CGoGN
#endif
SCHNApps/Plugins/surface_deformation/include/surface_deformation_dockTab.h
0 → 100644
View file @
ea92bf90
#ifndef _SURFACE_DEFORMATION_DOCK_TAB_H_
#define _SURFACE_DEFORMATION_DOCK_TAB_H_
#include "ui_surface_deformation.h"
namespace
CGoGN
{
namespace
SCHNApps
{
class
SCHNApps
;
class
Surface_Deformation_Plugin
;
struct
MapParameters
;
class
Surface_Deformation_DockTab
:
public
QWidget
,
public
Ui
::
Surface_Deformation_TabWidget
{
Q_OBJECT
friend
class
Surface_Deformation_Plugin
;
public:
Surface_Deformation_DockTab
(
SCHNApps
*
s
,
Surface_Deformation_Plugin
*
p
);
private:
SCHNApps
*
m_schnapps
;
Surface_Deformation_Plugin
*
m_plugin
;
bool
b_updatingUI
;
private
slots
:
void
positionAttributeChanged
(
int
index
);
void
lockedSelectorChanged
(
int
index
);