mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Rotation and reflection should now work correctly;
Finished the symmetry editor git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@538 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -15,6 +15,7 @@ class Vector2D;
|
||||
DECLARE_POINTER_TYPE(Symbol);
|
||||
DECLARE_POINTER_TYPE(SymbolPart);
|
||||
DECLARE_POINTER_TYPE(SymbolShape);
|
||||
DECLARE_POINTER_TYPE(SymbolSymmetry);
|
||||
class SymbolGroup;
|
||||
|
||||
// ----------------------------------------------------------------------------- : Selection
|
||||
@@ -61,6 +62,13 @@ class SymbolPartsSelection {
|
||||
|
||||
/// Get any SymbolShape if there is one selected
|
||||
SymbolShapeP getAShape() const;
|
||||
/// Get any SymbolSymmetry if there is one selected
|
||||
SymbolSymmetryP getASymmetry() const;
|
||||
/// Get the only selected thing
|
||||
inline SymbolPartP getOnlyOne() const {
|
||||
assert(selection.size() == 1);
|
||||
return *selection.begin();
|
||||
}
|
||||
|
||||
private:
|
||||
Symbol* root;
|
||||
|
||||
Reference in New Issue
Block a user