| 1 |
/******************************************************************************* |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
*******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_QTPLUGINS_YAEHMOP_SPECIALKPOINTS_H |
| 7 |
#define AVOGADRO_QTPLUGINS_YAEHMOP_SPECIALKPOINTS_H |
| 8 |
|
| 9 |
namespace Avogadro { |
| 10 |
namespace Core { |
| 11 |
class Molecule; |
| 12 |
} |
| 13 |
} // namespace Avogadro |
| 14 |
|
| 15 |
namespace Avogadro { |
| 16 |
namespace QtPlugins { |
| 17 |
|
| 18 |
#include <QString> |
| 19 |
|
| 20 |
class SpecialKPoints |
| 21 |
{ |
| 22 |
public: |
| 23 |
/* Get the special k points for a particular space group. It will |
| 24 |
* be returned like the following: |
| 25 |
* |
| 26 |
* GM 0 0 0 |
| 27 |
* Y 0 0.5 0 |
| 28 |
* etc. |
| 29 |
* |
| 30 |
* @param mol The molecule for which to get special k points. If the |
| 31 |
* space group is cached, that will be used. If not, this |
| 32 |
* function will attempt to determine the space group via |
| 33 |
* avospglib. If that fails, an empty string is returned. |
| 34 |
* |
| 35 |
* @return A QString containing the data for the special kpoint. |
| 36 |
*/ |
| 37 |
static QString getSpecialKPoints(Core::Molecule& mol); |
| 38 |
|
| 39 |
private: |
| 40 |
/* Process a special k point with a condition. These special k points |
| 41 |
* are separated in specialkpointsdata.h by a '#' symbol. This function |
| 42 |
* has stored in it all of the cases for different conditions. It will |
| 43 |
* process and change the @param specialKPoints to be the correct |
| 44 |
* QString for the @param molecule. |
| 45 |
* |
| 46 |
*/ |
| 47 |
static void processConditionKPoints(QString& specialKPoints, |
| 48 |
Core::Molecule& mol, |
| 49 |
unsigned short spgNum); |
| 50 |
}; |
| 51 |
|
| 52 |
} // namespace QtPlugins |
| 53 |
} // namespace Avogadro |
| 54 |
|
| 55 |
#endif |