#include <Cluster.h>
Clusters class
Storage class for cluster data
◆ Cluster()
| Cluster::Cluster |
( |
const QString & |
name = "", |
|
|
const QColor & |
color = Qt::gray, |
|
|
const std::vector< std::uint32_t > & |
indices = std::vector<std::uint32_t>() |
|
) |
| |
Constructor
- Parameters
-
| name | Name of the cluster |
| color | Color of the cluster |
| indices | Indices of the cluster |
◆ colorizeClusters() [1/2]
| void Cluster::colorizeClusters |
( |
QVector< Cluster > & |
clusters, |
|
|
const QImage & |
colorMapImage |
|
) |
| |
|
static |
Colorize clusters by color map
- Parameters
-
| clusters | Vector of clusters to colorize |
| colorMapImage | Color map image |
◆ colorizeClusters() [2/2]
| void Cluster::colorizeClusters |
( |
QVector< Cluster > & |
clusters, |
|
|
std::int32_t |
randomSeed = 0 |
|
) |
| |
|
static |
Colorize clusters by pseudo-random colors
- Parameters
-
| clusters | Vector of clusters to colorize |
| randomSeed | Random seed for pseudo-random colors |
◆ copy()
Copy cluster
- Returns
- Copy of the cluster (copies all members, except the _id, which is re-generated)
◆ getColor()
| QColor Cluster::getColor |
( |
| ) |
const |
Get cluster color
- Returns
- Cluster color
◆ getId()
| QString Cluster::getId |
( |
| ) |
const |
Get unique identifier
- Returns
- Unique identifier
◆ getIndices() [1/2]
| std::vector< unsigned int > & Cluster::getIndices |
( |
| ) |
|
Get indices the cluster refers to
- Returns
- Indices the cluster refers to
◆ getIndices() [2/2]
| const std::vector< unsigned int > & Cluster::getIndices |
( |
| ) |
const |
Get indices the cluster refers to
- Returns
- Indices the cluster refers to
◆ getMean() [1/2]
| std::vector< float > & Cluster::getMean |
( |
| ) |
|
|
inline |
Get mean values for every dimension of the cluster
◆ getMean() [2/2]
| const std::vector< float > & Cluster::getMean |
( |
| ) |
const |
|
inline |
◆ getMedian() [1/2]
| std::vector< float > & Cluster::getMedian |
( |
| ) |
|
|
inline |
Get median values for every dimension of the cluster
◆ getMedian() [2/2]
| const std::vector< float > & Cluster::getMedian |
( |
| ) |
const |
|
inline |
◆ getName()
| QString Cluster::getName |
( |
| ) |
const |
Get cluster name
- Returns
- Cluster name
◆ getNumberOfIndices()
| std::uint32_t Cluster::getNumberOfIndices |
( |
| ) |
const |
Get number of indices
- Returns
- Number of indices
◆ getStandardDeviation() [1/2]
| std::vector< float > & Cluster::getStandardDeviation |
( |
| ) |
|
|
inline |
Get standard deviation values for every dimension of the cluster
◆ getStandardDeviation() [2/2]
| const std::vector< float > & Cluster::getStandardDeviation |
( |
| ) |
const |
|
inline |
◆ operator==()
| bool Cluster::operator== |
( |
const Cluster & |
rhs | ) |
const |
|
inline |
Comparison operator for two clusters
- Parameters
-
| rhs | Right hand sign of the comparison |
◆ setColor()
| void Cluster::setColor |
( |
const QColor & |
color | ) |
|
Set cluster color
- Parameters
-
◆ setId()
| void Cluster::setId |
( |
const QString & |
id | ) |
|
Set unique identifier
- Parameters
-
◆ setIndices()
| void Cluster::setIndices |
( |
const std::vector< unsigned int > & |
indices | ) |
|
◆ setName()
| void Cluster::setName |
( |
const QString & |
name | ) |
|
Set cluster name
- Parameters
-
◆ _color
◆ _id
◆ _indices
| std::vector<unsigned int> Cluster::_indices |
|
protected |
◆ _mean
| std::vector<float> Cluster::_mean |
|
protected |
◆ _median
| std::vector<float> Cluster::_median |
|
protected |
Indices contained by the cluster
◆ _name
◆ _stddev
| std::vector<float> Cluster::_stddev |
|
protected |
The documentation for this class was generated from the following files:
- D:/Work/ManiVault/DevBundle/allmain/source/core/HDPS/src/plugins/ClusterData/src/Cluster.h
- D:/Work/ManiVault/DevBundle/allmain/source/core/HDPS/src/plugins/ClusterData/src/Cluster.cpp