Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Geometry::SymmetryElementTranslationGenerator Class Reference

This implementation of AbstractSymmetryElementGenerator produces only translation elements. More...

#include <SymmetryElementFactory.h>

Inheritance diagram for Mantid::Geometry::SymmetryElementTranslationGenerator:
Mantid::Geometry::AbstractSymmetryElementGenerator

Public Member Functions

bool canProcess (const SymmetryOperation &operation) const override
 Checks that the order of the matrix is 1 and the operation has a translation. More...
 
SymmetryElement_sptr generateElement (const SymmetryOperation &operation) const override
 Generates an instance of SymmetryElementTranslation with the vector of the operation as translation vector. More...
 
- Public Member Functions inherited from Mantid::Geometry::AbstractSymmetryElementGenerator
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
 

Detailed Description

This implementation of AbstractSymmetryElementGenerator produces only translation elements.

Definition at line 66 of file SymmetryElementFactory.h.

Member Function Documentation

◆ canProcess()

bool Mantid::Geometry::SymmetryElementTranslationGenerator::canProcess ( const SymmetryOperation operation) const
overridevirtual

Checks that the order of the matrix is 1 and the operation has a translation.

Implements Mantid::Geometry::AbstractSymmetryElementGenerator.

Definition at line 37 of file SymmetryElementFactory.cpp.

References Mantid::Geometry::SymmetryOperation::hasTranslation(), and Mantid::Geometry::SymmetryOperation::order().

◆ generateElement()

SymmetryElement_sptr Mantid::Geometry::SymmetryElementTranslationGenerator::generateElement ( const SymmetryOperation operation) const
overridevirtual

Generates an instance of SymmetryElementTranslation with the vector of the operation as translation vector.

Implements Mantid::Geometry::AbstractSymmetryElementGenerator.

Definition at line 31 of file SymmetryElementFactory.cpp.

References Mantid::Geometry::SymmetryOperation::vector().


The documentation for this class was generated from the following files: