Skip to content

Commit

Permalink
Refs #11830. Exporting additional group members
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed May 22, 2015
1 parent f2dda9d commit ad2b545
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -32,11 +32,20 @@ void export_Group()
.value("Orthogonal", Group::Orthogonal)
.value("Hexagonal", Group::Hexagonal);

enum_<Group::GroupAxiom>("GroupAxiom")
.value("Closure", Group::Closure)
.value("Identity", Group::Identity)
.value("Inversion", Group::Inversion)
.value("Associativity", Group::Associativity);

class_<Group>("Group")
.def(init<std::string>("Construct a group from the provided initializer string."))
.def(init<std::vector<SymmetryOperation> >("Construct a group from the provided symmetry operation list."))
.def("getOrder", &Group::order, "Returns the order of the group.")
.def("getCoordinateSystem", &Group::getCoordinateSystem, "Returns the type of coordinate system to distinguish groups with hexagonal system definition.")
.def("getSymmetryOperations", &Group::getSymmetryOperations, "Returns the symmetry operations contained in the group.")
.def("getSymmetryOperationStrings", &getSymmetryOperationStrings, "Returns the x,y,z-strings for the contained symmetry operations.");
.def("getSymmetryOperationStrings", &getSymmetryOperationStrings, "Returns the x,y,z-strings for the contained symmetry operations.")
.def("containsOperation", &Group::containsOperation, "Checks whether a SymmetryOperation is included in Group.")
.def("isGroup", &Group::isGroup, "Checks whether the contained symmetry operations fulfill the group axioms.")
.def("fulfillAxiom", &Group::fulfillsAxiom, "Checks if the contained symmetry operations fulfill the specified group axiom.");
}

0 comments on commit ad2b545

Please sign in to comment.