MeVisLab Scripting Reference
|
#include <mlXMarkerListWrapper.h>
Inherits QObject.
Public Slots | |
QList< MLXMarkerWrapper * > | getMarkers () |
MLXMarkerWrapper * | getMarker (int position) |
QVariant | getMarkerPositions3DAsNumPyArray () |
QVariant | getMarkerPositions6DAsNumPyArray () |
QVariant | getMarkerVecsAsNumPyArray () |
QVariant | getMarkerTypesAsNumPyArray () |
QVariant | getMarkerIdsAsNumPyArray () |
void | addMarkersFromNumPyArray (PyObject *positions, PyObject *types=nullptr, PyObject *vecs=nullptr) |
void | add (QVariantList pos, QVariantList vec, int type, int position=-1) |
void | remove (int position) |
void | clear () |
int | getCurrentIndex () |
int | size () const |
QVariantMap | calculatePCA () const |
A class that wraps XMarkerList objects for use in Python.
|
slot |
Add new marker.
|
slot |
Adds markers from NumPy arrays.
Positions can be a list of 3D or 6D double values. Types specifies the optional marker types as 1D integer array or as a single int value. Vecs specifies the optional direction vectors as 3D double array.
|
slot |
Calculates the main axes using PCA.
Returns a dictionary with the following values:
|
slot |
Removes all markers.
|
slot |
Get current index, i.e. the index of the 'selected' marker.
|
slot |
Get marker at position position
.
|
slot |
Returns the id of the markers as a NumPy array of type int64.
|
slot |
Returns an array of 3D marker positions of type float64.
|
slot |
Returns an array of 6D marker positions (x,y,z,c,t,u) of type float64.
|
slot |
Get markers of the list.
|
slot |
Returns the type of the markers as a NumPy array of type int32.
|
slot |
Returns an array of marker "vec" 3D component of type float64.
|
slot |
Remove marker at position position
.
|
inlineslot |
Get size of list.