Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-SelectionBase
Commits
f90be1a8
Commit
f90be1a8
authored
Apr 06, 2017
by
Martin Schultz
Browse files
added some helper functions to BaseSelectionPlugin to improve readability of the code
parent
b4ef1038
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
SelectionBasePlugin.cc
View file @
f90be1a8
This diff is collapsed.
Click to expand it.
SelectionBasePlugin.hh
View file @
f90be1a8
...
...
@@ -298,6 +298,9 @@ Q_INTERFACES(SelectionInterface)
/// Get a unique handle name
QString
getUniqueHandleName
(
QString
_name
,
int
_num
=
0
);
/// Get a selectionEnvironment by a given name
bool
getSelectionEnvironment
(
SelectionEnvironment
*&
env
,
const
QString
&
_handleName
);
/// Test if at least one object of type _type is in the scene graph
bool
typeExists
(
DataType
_type
,
int
_excludeId
=
-
1
);
...
...
@@ -310,6 +313,13 @@ Q_INTERFACES(SelectionInterface)
QString
_handleName
,
bool
_show
,
SelectionInterface
::
PrimitiveType
_associatedTypes
,
QString
&
_customIdentifier
,
bool
_custom
=
false
,
DataType
_objectTypeRestriction
=
DATA_ALL
);
/// helper function for showSelectionMode
void
selectionModeShowSwitch
(
bool
_show
,
SelectionEnvironment
*&
env
,
HandleAction
*
toggleSelectionAction_
,
SelectionInterface
::
PrimitiveType
&
_associatedTypes
);
/// helper function to find a baseObjectData and selection environment given a specific id
bool
findObjectType
(
BaseObjectData
*&
obj
,
bool
&
found
,
SelectionEnvironment
*&
env
,
int
_id
);
/// Create new type frame for tabs widget
SelectionTypeFrameWidget
*
createNewTypeFrame
(
SelectionEnvironment
&
_env
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment