diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2009-12-26 00:32:25 +0000 |
|---|---|---|
| committer | Maximilian Albert <maximilian.albert@gmail.com> | 2009-12-26 00:32:25 +0000 |
| commit | bcef1f768feeb937aa0e86842871f0b479ec284a (patch) | |
| tree | b366d30c7f66943631ea5db34565dd4bfa1648b9 /src/selection.h | |
| parent | Refactoring of 3D box tool, mainly to avoid unnecessary creation of perspecti... (diff) | |
| download | inkscape-bcef1f768feeb937aa0e86842871f0b479ec284a.tar.gz inkscape-bcef1f768feeb937aa0e86842871f0b479ec284a.zip | |
Major simplification of 3D box code.
(bzr r8911)
Diffstat (limited to '')
| -rw-r--r-- | src/selection.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/selection.h b/src/selection.h index ecb1ef45e..5e035fb60 100644 --- a/src/selection.h +++ b/src/selection.h @@ -229,11 +229,14 @@ public: /// method for that GSList const *reprList(); - /* list of all perspectives which have a 3D box in the current selection + /** @brief Returns a list of all perspectives which have a 3D box in the current selection (these may also be nested in groups) */ std::list<Persp3D *> const perspList(); - std::list<SPBox3D *> const box3DList(); + /** @brief Returns a list of all 3D boxes in the current selection which are associated to @c + persp. If @c pers is @c NULL, return all selected boxes. + */ + std::list<SPBox3D *> const box3DList(Persp3D *persp = NULL); /** @brief Returns the number of layers in which there are selected objects */ guint numberOfLayers(); @@ -351,7 +354,6 @@ private: void remove_box_perspective(SPBox3D *box); void remove_3D_boxes_recursively(SPObject *obj); - std::map<Persp3D *, unsigned int> _persps; std::list<SPBox3D *> _3dboxes; GC::soft_ptr<SPDesktop> _desktop; |
