|
virtual | ~TrcTrack () |
| Destructor, frees memory.
|
|
virtual OFString | getName () const |
| Get name of component. More...
|
|
virtual void | resetRules () |
| Resets rules to their original values.
|
|
virtual void | clearData () |
| Clear all data.
|
|
virtual OFCondition | check (const OFBool quiet=OFFalse) |
| Check whether this component's data satisfies the underlying rules. More...
|
|
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
| Read attributes from given item into this class. More...
|
|
virtual OFCondition | write (DcmItem &destination) |
| Write attributes from this class into given item. More...
|
|
virtual size_t | getTrackData (const Float32 *&data) const |
| Get Track Data. More...
|
|
virtual size_t | getNumDataPoints () |
| Get Number of data points.
|
|
virtual OFBool | getRecommendedDisplayCIELabValue (Uint16 &L, Uint16 &a, Uint16 &b) |
| Get Recommended Display CIELab Value. More...
|
|
size_t | getRecommendedDisplayCIELabValueList (const Uint16 *&colors) |
| Get Recommended Display CIELab Value List. More...
|
|
TrcTypes::E_TrackColorMode | getRecommendedDisplayCIELabMode () |
| Returns the coloring mode, i.e. More...
|
|
virtual OFCondition | setTrackData (const Float32 *trackDataPoints, const size_t numPoints) |
| Set Track Data. More...
|
|
virtual OFCondition | setRecommendedDisplayCIELabValues (const Uint16 *colors, const size_t numColors) |
| Set Recommended Display CIELab Value (List) Depending on how many colors are provided, different DICOM is produced when writing the Track later: 0: No color information for this Track is stored (i.e. More...
|
|
| IODComponent (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL) |
| Constructor. More...
|
|
| IODComponent (IODComponent *parent=NULL) |
| Constructor, creates rules and item from scratch. More...
|
|
IODComponent & | operator= (const IODComponent &rhs) |
| Assignment operator, copies contained item and rule set from rhs to "this" attribute set. More...
|
|
| IODComponent (const IODComponent &rhs) |
| Copy constructor, copies reference to contained item and rule set to "this" attribute set. More...
|
|
virtual | ~IODComponent () |
| Virtual Destructor.
|
|
void | clearData () |
| Clear all attributes from the data that are handled by this module. More...
|
|
virtual void | inventMissing () |
| Set missing values by inventing "default values". More...
|
|
OFshared_ptr< IODRules > | getRules () |
| Get rules handled by this module. More...
|
|
virtual void | makeOptional () |
| Make component optional by turning all attributes requirement types of it to type 3. More...
|
|
DcmItem & | getData () |
| Get the data handled by this module. More...
|
|
virtual int | compare (const IODComponent &rhs) const |
| Comparison operator for IOD Components. More...
|
|
|
static OFCondition | create (const Float32 *trackDataPoints, const size_t numPoints, const Uint16 *colors, const size_t numColors, TrcTrack *&trackSet) |
| Create TrcTrack object from required data. More...
|
|
static OFCondition | read (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
| Static helper function that reads attributes from given item into destination item, as determined by the provided rules and component name. More...
|
|
static OFCondition | write (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
| Static helper function that writes attributes from given item into destination item, as determined by the provided rules and component name. More...
|
|
Class representing a Track of of the "Tractography Results" IOD.
This is the data contained in the items of the Track Sequence.
virtual OFCondition TrcTrack::setRecommendedDisplayCIELabValues |
( |
const Uint16 * |
colors, |
|
|
const size_t |
numColors |
|
) |
| |
|
virtual |
Set Recommended Display CIELab Value (List) Depending on how many colors are provided, different DICOM is produced when writing the Track later: 0: No color information for this Track is stored (i.e.
neither "Recommended
Display CIELab Value" is set nor "Recommended Display CIELab Value List". Thus there must be a color definition on Track Set level instead. 1: The given color (consisting of L,a,b component) is recommended to be used for coloring every point in this track. This color will got to the element "Recommended Display CIELab value" for this particular track. In that case, the related Track Set must not have any color recommendation. >1: The number of colors must be equal to the number of data points. Each data point color is separately specified. This setting will lead to the element "Recommended Display CIELab Value List" to be written later. The related Track Set must not contain any color recommendation at all in that case. Note that if the third option (>1) is chosen, it must be provided for every track in the related Track Set!
- Parameters
-
colors | Array of color values to be set, all colors one after another with each color consisting of L, a and b component. |
numColors | Number of colors in array (one point consists of x, y, and z coordinates). |
- Returns
- EC_Normal if successful, an error code otherwise