AvogadroLibs
1.93.0
|
The PQRRequest class sends and receives network requests to PQR and updates ui elements from the widget. More...
Namespaces | |
Core | |
Classes | |
struct | Frustrum |
class | HistogramWidget |
class | QVTKGLWidget |
class | TypeTraits |
class | TypeTraits< char > |
class | TypeTraits< double > |
class | TypeTraits< float > |
class | TypeTraits< int > |
class | TypeTraits< short > |
class | TypeTraits< unsigned char > |
class | TypeTraits< unsigned int > |
class | TypeTraits< unsigned short > |
Typedefs | |
typedef double | Real |
typedef size_t | Index |
typedef Eigen::Matrix< Real, 2, 2 > | Matrix2 |
typedef Eigen::Matrix< Real, 3, 3 > | Matrix3 |
typedef Eigen::Matrix< Real, 4, 4 > | Matrix4 |
typedef Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > | MatrixX |
typedef Eigen::Matrix< float, 2, 2 > | Matrix2f |
typedef Eigen::Matrix< float, 3, 3 > | Matrix3f |
typedef Eigen::Matrix< float, 4, 4 > | Matrix4f |
typedef Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic > | MatrixXf |
typedef Eigen::Matrix< Real, 2, 1 > | Vector2 |
typedef Eigen::Matrix< Real, 3, 1 > | Vector3 |
typedef Eigen::Matrix< Real, 4, 1 > | Vector4 |
typedef Eigen::Matrix< float, 2, 1 > | Vector2f |
typedef Eigen::Matrix< float, 3, 1 > | Vector3f |
typedef Eigen::Matrix< float, 4, 1 > | Vector4f |
typedef Eigen::Matrix< int, 2, 1 > | Vector2i |
typedef Eigen::Matrix< int, 3, 1 > | Vector3i |
typedef Eigen::Matrix< int, 4, 1 > | Vector4i |
typedef Eigen::Matrix< unsigned char, 2, 1 > | Vector2ub |
typedef Eigen::Matrix< unsigned char, 3, 1 > | Vector3ub |
typedef Eigen::Matrix< unsigned char, 4, 1 > | Vector4ub |
Enumerations | |
enum | Type { UnknownType = -1, CharType, UCharType, ShortType, UShortType, IntType, UIntType, FloatType, DoubleType } |
Functions | |
template<typename T , typename std::enable_if< std::is_integral< T >::value >::type * = nullptr> | |
void | calcHistogram (T *values, const vtkIdType numTuples, const float min, const float inv, int *pops, int &) |
template<typename T > | |
void | calcHistogram (T *, const vtkIdType, int *) |
void | calcHistogram (unsigned char *values, const vtkIdType numTuples, int *pops) |
template<typename T > | |
void | CalculateHistogram (T *values, const vtkIdType numTuples, const vtkIdType numComponents, const float min, const float max, int *pops, const float inv, int &invalid) |
void | PopulateHistogram (vtkImageData *input, vtkTable *output) |
Variables | |
const Index | MaxIndex = std::numeric_limits<Index>::max() |
const unsigned char | InvalidElement = 255 |
const unsigned char | CustomElementMin = 128 |
const unsigned char | CustomElementMax = 254 |
const unsigned char | CustomElementCount |
const double | PI_D = 3.141592653589793238462643 |
const float | PI_F = static_cast<float>(PI_D) |
const Real | PI = static_cast<Real>(PI_D) |
const double | DEG_TO_RAD_D = PI_D / 180.0 |
const float | DEG_TO_RAD_F = static_cast<float>(DEG_TO_RAD_D) |
const Real | DEG_TO_RAD = static_cast<Real>(DEG_TO_RAD_D) |
const double | RAD_TO_DEG_D = 180.0 / PI_D |
const float | RAD_TO_DEG_F = static_cast<float>(RAD_TO_DEG_D) |
const Real | RAD_TO_DEG = static_cast<Real>(RAD_TO_DEG_D) |
const double | BOHR_TO_ANGSTROM_D = 0.52917721092 |
const float | BOHR_TO_ANGSTROM_F = static_cast<float>(BOHR_TO_ANGSTROM_D) |
const Real | BOHR_TO_ANGSTROM = static_cast<Real>(BOHR_TO_ANGSTROM_D) |
const double | ANGSTROM_TO_BOHR_D = 1.0 / BOHR_TO_ANGSTROM_D |
const float | ANGSTROM_TO_BOHR_F = static_cast<float>(ANGSTROM_TO_BOHR_D) |
const Real | ANGSTROM_TO_BOHR = static_cast<Real>(ANGSTROM_TO_BOHR_D) |
Namespace contain utility methods to serialize and deserialize vectors and matrixes
namespace containing utility functions for encoding and decoding floats and doubles.
typedef double Real |
Typedef for a real number.
typedef size_t Index |
Typedef for indices and sizes.
enum Type |
Symbolic constants representing various built-in C++ types.
void calcHistogram | ( | T * | values, |
const vtkIdType | numTuples, | ||
const float | min, | ||
const float | inv, | ||
int * | pops, | ||
int & | invalid | ||
) |
Single component integral type specialization.
Single component floating point type specialization.
void Avogadro::calcHistogram | ( | T * | , |
const | vtkIdType, | ||
int * | |||
) |
Needs to be present, should never be compiled.
void Avogadro::calcHistogram | ( | unsigned char * | values, |
const vtkIdType | numTuples, | ||
int * | pops | ||
) |
Single component unsigned char covering 0 -> 255 range.
void Avogadro::CalculateHistogram | ( | T * | values, |
const vtkIdType | numTuples, | ||
const vtkIdType | numComponents, | ||
const float | min, | ||
const float | max, | ||
int * | pops, | ||
const float | inv, | ||
int & | invalid | ||
) |
Computes a histogram from an array of values.
values | The array from which to compute the histogram. |
numTuples | Number of tuples in the array. |
numComponents | Number of components in each tuple. |
min | Minimum value in range |
max | Maximum value in range |
inv | Inverse of bin size, numBins is the number of bins in the histogram (or length of the pops array), and invalid is a return parameter indicating how many values in the array had a non-finite value. |
const unsigned char InvalidElement = 255 |
Used to represent an invalid atomic number.
const unsigned char CustomElementMin = 128 |
Minimum value for atomic numbers that represent custom, non-elemental particles.
const unsigned char CustomElementMax = 254 |
Maximum value for atomic numbers that represent custom, non-elemental particles.
const unsigned char CustomElementCount |
Count of atomic number values that are used to represent custom, non-elemental particles.
const double PI_D = 3.141592653589793238462643 |
Unit conversion factors.
const float PI_F = static_cast<float>(PI_D) |
Unit conversion factors.
const double DEG_TO_RAD_D = PI_D / 180.0 |
Unit conversion factors.
const float DEG_TO_RAD_F = static_cast<float>(DEG_TO_RAD_D) |
Unit conversion factors.
const Real DEG_TO_RAD = static_cast<Real>(DEG_TO_RAD_D) |
Unit conversion factors.
const double RAD_TO_DEG_D = 180.0 / PI_D |
Unit conversion factors.
const float RAD_TO_DEG_F = static_cast<float>(RAD_TO_DEG_D) |
Unit conversion factors.
const Real RAD_TO_DEG = static_cast<Real>(RAD_TO_DEG_D) |
Unit conversion factors.
const double BOHR_TO_ANGSTROM_D = 0.52917721092 |
Unit conversion factors.
const float BOHR_TO_ANGSTROM_F = static_cast<float>(BOHR_TO_ANGSTROM_D) |
Unit conversion factors.
const Real BOHR_TO_ANGSTROM = static_cast<Real>(BOHR_TO_ANGSTROM_D) |
Unit conversion factors.
const double ANGSTROM_TO_BOHR_D = 1.0 / BOHR_TO_ANGSTROM_D |
Unit conversion factors.
const float ANGSTROM_TO_BOHR_F = static_cast<float>(ANGSTROM_TO_BOHR_D) |
Unit conversion factors.
const Real ANGSTROM_TO_BOHR = static_cast<Real>(ANGSTROM_TO_BOHR_D) |
Unit conversion factors.