|
|
int | load (const QString &filename) |
| |
|
const QString & | name () const |
| | Return the name of this dataset.
|
| |
|
void | setName (const QString &name) |
| | Set the name for this dataset.
|
| |
| const Point * | point (const QString &id) const |
| | Find a point with a given ID. More...
|
| |
| Point * | point (const QString &id) |
| | Find a point with a given ID. More...
|
| |
|
bool | contains (const QString &id) const |
| | Return whether this dataset contains a point with the given ID.
|
| |
|
QStringList | pointNames () const |
| | Return a list of the names of the points contained in this dataset.
|
| |
|
const PointLayout & | layout () const |
| | Return the layout of this dataset.
|
| |
|
const PointLayout & | originalLayout () const |
| | Return the original layout of this dataset.
|
| |
| void | checkAllPointsShareSameLayout (const QVector< Point * > *points=0) const |
| | Check that all given points have the same layout object as this dataset. More...
|
| |
|
const TransfoChain & | history () const |
| | Return the history of this dataset (the list of all transformations that have been applied).
|
| |
| void | setHistory (const TransfoChain &history) |
| | Set a predefined history for this dataset. More...
|
| |
|
void | forgetHistory () |
| | Reset the history to an empty one but does not touch any of the points.
|
| |
| void | simplifyHistory () |
| | Simplify the history of the transformations to have it in a "normalized" state, which consist at most of a Remove transformation followed by a FixLength one. More...
|
| |
| void | setReferenceDataSet (DataSet *dataset=0, bool checkOriginalLayout=true) |
| | Set the reference dataset, ie: the one used for fetching the values when doing filtered queries. More...
|
| |
| const DataSet * | referenceDataSet () const |
| | Return the reference dataset. More...
|
| |
| void | addPoint (const Point *point) |
| | Add the specified point to this dataset. More...
|
| |
| void | addPoints (const QVector< Point * > &points) |
| | Add the specified points to this dataset. More...
|
| |
| void | appendDataSet (const DataSet *dataset) |
| | Append the points from the second dataset to the first one. More...
|
| |
| void | removePoint (const QString &id) |
| | Remove a single point from the dataset given its ID. More...
|
| |
| void | removePoints (const QList< QString > &ids) |
| | Remove a list of points from the dataset given their IDs. More...
|
| |
| void | addView (View *view) |
| | Register a view on this dataset. More...
|
| |
|
void | removeView (View *view) |
| | Remove a View from the list of registered views for this dataset.
|
| |
|
DataSet * | copy () const |
| | Performs a deep copy of this dataset (ie: the contained points are copied as well).
|
| |
| void | load (const QString &filename, int start=0, int end=-1) |
| | Load a dataset from disk. More...
|
| |
| void | loadNthPart (const QString &filename, int idx=0, int total=1) |
| | Load the n-th part of a dataset from disk. More...
|
| |
|
void | save (const QString &filename) const |
| | Save this dataset to disk.
|
| |
|
void | fromBase64 (const std::string &data) |
| | Load a DataSet from its base64 representation.
|
| |
|
void | fromBase64 (const QByteArray &data) |
| | Load a DataSet from its base64 representation.
|
| |
|
std::string | toBase64 () const |
| | Return a base64 representation for this DataSet.
|
| |
|
| PointArray (int n=0, bool ownsMemory=true) |
| |
|
| PointArray (bool ownsMemory) |
| |
|
void | clear () |
| | Delete the points this array contains (if it owns them), then resize the array to 0.
|
| |
|
int | totalSegments () const |
| | Returns the total number of segments in this PointArray (the sum of the number of segments for each point in the array).
|
| |
|
const Point * | samplePoint () const |
| | Returns any single point from the PointArray.
|
| |
|
|
static DataSet * | mergeFiles (const QMap< QString, QString > &sigfiles, const QStringList &descsSelect=QStringList()<< "*", const QStringList &descsExclude=QStringList(), int start=0, int end=10000000, PointLayout *reflayout=0) |
| | Take a map of pairs (pointID, filename) and merges the signature files in a single dataset and returns it.
|
| |
|
QReadWriteLock | lock |
| | A lock available for users to take, if the dataset is to be used in a multi-threaded context.
|
| |
|
int | binarySearch (const QString &id, int start, int end) const |
| | Looks for point with name id, between indices start and end included.
|
| |
| int | pointIndex (const QString &id) const |
| | Returns the index of the point with the given name. More...
|
| |
|
void | clear () |
| |
|
int | load (QDataStream &in, int start=0, int end=-1, bool readAllPointsFromStream=false) |
| | Returns the number of points in the dataset (not the number of points loaded).
|
| |
|
void | setLayoutIfEmpty (const Point *point) |
| |
|
void | invalidateViews () |
| |
|
void | modify () |
| |
|
void | setHistoryNoCheck (const TransfoChain &history) |
| |
|
void | addTransformation (const Transformation &transfo) |
| |
|
bool | consistentLinks () const |
| |
|
void | forceUnlinkReferringDataSets () |
| |
|
void | unifyLayout () |
| | Make all the points in this DataSet share the same layout.
|
| |
| void | checkUniqueIDs () |
| | Checks that all point names are unique (ie: there are no duplicates in this dataset). More...
|
| |
| void | checkUniqueIDsFrom (const QVector< Point * > &v) |
| | Checks that all point names inside v are unique and also that none of them is already in this dataset. More...
|
| |
| void | addPoints (const QVector< Point * > &points, bool layoutCheck, bool transformPoint, bool checkUnique=true, bool takeOwnership=false, bool relaySignal=true) |
| | Adds the given points to his dataset. More...
|
| |
|
void | removePoints (const QList< QString > &ids, bool relaySignal) |
| |
|
void | sortPoints (int pivotIdx=-1) |
| |
|
| DataSet (const DataSet &rhs) |
| |
|
DataSet & | operator= (const DataSet &rhs) |
| |
|
void | resize (int n) |
| |
| QString | _name |
| | Represents the name of the dataset, which should be a short way to describe its function or where it comes from, its purpose, etc... More...
|
| |
| TransfoChain | _history |
| | This represents the history of transformations that have been applied to this dataset, and also contains all the parameters to allow mapping a point from the original dataset space into the space this dataset is in. More...
|
| |
|
PointLayout | _layout |
| | This represents the common layout of all points contained in this dataset and provides functions for retrieving the physical location of a descriptor given its name, and reciprocally, retrieving the name of a descriptor given its physical location.
|
| |
| QList< DataSet * > | _linkedDataSets |
| | This list contains all datasets linked to this one, like when a dataset is referencing another one for the original values used when filtering. More...
|
| |
| QList< View * > | _linkedViews |
| | This list contains all Views linked to this DataSet, ie: the Views using points from this dataset to do their queries. More...
|
| |
|
bool | _isDataSorted |
| |
|
bool | _ownsMemory |
| |