Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gepetto-viewer-corba
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
Gepetto
gepetto-viewer-corba
Commits
3b6bb0a9
Commit
3b6bb0a9
authored
8 years ago
by
hdallard
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation
parent
5b96137f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/gepetto/gui/selection-handler.hh
+9
-0
9 additions, 0 deletions
include/gepetto/gui/selection-handler.hh
with
9 additions
and
0 deletions
include/gepetto/gui/selection-handler.hh
+
9
−
0
View file @
3b6bb0a9
...
...
@@ -9,6 +9,8 @@
namespace
gepetto
{
namespace
gui
{
/// Base class to define selection mode.
/// \note The class has no pure virtual method in order to be used in python.
class
SelectionMode
:
public
QObject
{
Q_OBJECT
...
...
@@ -24,7 +26,11 @@ namespace gepetto {
void
selectedBodies
(
QStringList
selectedBodies
);
public
slots
:
/// Slot called when a body is selected.
/// \param name body's name
/// \param position click position
virtual
void
onSelect
(
QString
name
,
QVector3D
position
)
{
Q_UNUSED
(
name
)
emit
selectedBodies
(
QStringList
());}
virtual
QString
getName
()
{
return
"None"
;
}
protected
:
...
...
@@ -32,6 +38,7 @@ namespace gepetto {
WindowsManagerPtr_t
wsm_
;
};
/// Class that allows to select one body.
class
UniqueSelection
:
public
SelectionMode
{
Q_OBJECT
...
...
@@ -69,6 +76,8 @@ namespace gepetto {
~
SelectionHandler
();
public
slots
:
/// Add a mode to the list of available mode.
/// \param mode mode to add
void
addMode
(
SelectionMode
*
mode
);
private
slots
:
...
...
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