Mantid
|
SymmetryElementFactoryImpl does not generate SymmetryElement objects directly. More...
#include <SymmetryElementFactory.h>
Public Member Functions | |
virtual bool | canProcess (const SymmetryOperation &operation) const =0 |
Should return true if the generator can produce a valid SymmetryElement from the provided SymmetryOperation. More... | |
virtual SymmetryElement_sptr | generateElement (const SymmetryOperation &operation) const =0 |
Must generate a valid SymmetryElement from the given operation. More... | |
virtual | ~AbstractSymmetryElementGenerator ()=default |
SymmetryElementFactoryImpl does not generate SymmetryElement objects directly.
Instead, in order to stay as flexible as possible, it stores instances of AbstractSymmetryElementGenerator. Each subclass of AbstractSymmetryElementGenerator can be registered once into the factory, which then uses the canProcess-method to determine whether a certain generator can be used to derive the SymmetryElement that corresponds to the SymmetryOperation.
More about how the symmetry elements are derived from matrix/vector pairs can be found in the International Tables for Crystallography A, section 11.2.
Definition at line 36 of file SymmetryElementFactory.h.
|
virtualdefault |
|
pure virtual |
Should return true if the generator can produce a valid SymmetryElement from the provided SymmetryOperation.
Implemented in Mantid::Geometry::SymmetryElementIdentityGenerator, Mantid::Geometry::SymmetryElementTranslationGenerator, Mantid::Geometry::SymmetryElementInversionGenerator, Mantid::Geometry::SymmetryElementRotationGenerator, and Mantid::Geometry::SymmetryElementMirrorGenerator.
|
pure virtual |
Must generate a valid SymmetryElement from the given operation.
Implemented in Mantid::Geometry::SymmetryElementIdentityGenerator, Mantid::Geometry::SymmetryElementTranslationGenerator, Mantid::Geometry::SymmetryElementInversionGenerator, Mantid::Geometry::SymmetryElementRotationGenerator, and Mantid::Geometry::SymmetryElementMirrorGenerator.