DCMTK: IODPaletteColorLUTModule Class Reference

DCMTK Version 3.7.0 OFFIS DICOM Toolkit

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
IODPaletteColorLUTModule Class Reference

Class representing the Palette Color Lookup Table Module: More...

Inheritance diagram for IODPaletteColorLUTModule:

## Public Member Functions
| IODPaletteColorLUTModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules)
| Constructor.
| IODPaletteColorLUTModule ()
| Constructor.
virtual | ~IODPaletteColorLUTModule ()
| Destructor.
virtual void | clearData ()
| Clear all attributes from the data that are handled by this module.
virtual void | resetRules ()
| Resets rules to their original values.
virtual OFString | getName () const
| Get name of module.
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue)
| Read attributes from given item into this class.
virtual OFCondition | write (DcmItem &destination)
| Write attributes from this class into given item.
virtual Uint8 | numBits ()
| Returns the number of bits used per LUT data entry.
virtual OFCondition | getRedPaletteColorLookupTableDescriptor (Uint16 &value, const unsigned long pos=0) const
| Get the Red Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | getGreenPaletteColorLookupTableDescriptor (Uint16 &value, const unsigned long pos=0) const
| Get the Green Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | getBluePaletteColorLookupTableDescriptor (Uint16 &value, const unsigned long pos=0) const
| Get the Blue Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | getPaletteColorLookupTableUID (OFString &value, const signed long pos=0) const
| Get the Palette Color Lookup Table UID.
virtual OFCondition | getRedPaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Red Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | getRedPaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Red Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | getGreenPaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Green Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | getGreenPaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Green Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | getBluePaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Blue Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | getBluePaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Blue Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | getSegmentedRedPaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Red Palette Color Lookup Tableâ Dataâ
virtual OFCondition | getSegmentedRedPaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Red Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | getSegmentedGreenPaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Green Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | getSegmentedGreenPaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Green Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | getSegmentedBluePaletteColorLookupTableData (const Uint16 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Blue Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | getSegmentedBluePaletteColorLookupTableData (const Uint8 *&dataCopy, unsigned long &numEntries)
| Get the Segmented Blue Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setRedPaletteColorLookupTableDescriptor (const Uint16 &value, const unsigned long pos=0)
| Set the Red Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | setGreenPaletteColorLookupTableDescriptor (const Uint16 &value, const unsigned long pos=0)
| Set the Green Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | setBluePaletteColorLookupTableDescriptor (const Uint16 &value, const unsigned long pos=0)
| Set the Blue Palette Color Lookup Tableâ Descriptor.
virtual OFCondition | setPaletteColorLookupTableUID (const OFString &value, const OFBool checkValue=OFTrue)
| Set the Palette Color Lookup Table UID.
virtual OFCondition | setRedPaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Red Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setRedPaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Red Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setGreenPaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Green Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setGreenPaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Green Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setBluePaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Blue Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setBluePaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Blue Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setSegmentedRedPaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Red Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setSegmentedRedPaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Red Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setSegmentedGreenPaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Green Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setSegmentedGreenPaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Green Palette Color Lookup Tableâ Dataâ (8 bit version).
virtual OFCondition | setSegmentedBluePaletteColorLookupTableData (const Uint16 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Blue Palette Color Lookup Tableâ Dataâ (16 bit version).
virtual OFCondition | setSegmentedBluePaletteColorLookupTableData (const Uint8 *value, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Segmented Blue Palette Color Lookup Tableâ Dataâ (8 bit version).
template<typename T>
OFCondition | setPaletteColorLookupTableData (const T *copyRed, const T *copyGreen, const T *copyBlue, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Set the Palette Color Lookup Tableâ Dataâ (red, green, blue, 8 or 16 bit).
template<typename T>
OFCondition | setSegmentedPaletteColorLookupTableData (const T *copyRedData, const T *copyGreenData, const T *copyBlueData, const unsigned long numEntries, const OFBool checkValue=OFTrue)
| Sets the red, green, and blue data for a segmented palette color lookup table.
virtual OFCondition | setRedPaletteColorLookupTableDescriptor (const Uint16 numEntries, const Uint16 firstValueMapped, const Uint8 numBitsPerEntry)
| Sets all three values of the Red Palette Color Lookup Table Descriptor.
virtual OFCondition | setGreenPaletteColorLookupTableDescriptor (const Uint16 numEntries, const Uint16 firstValueMapped, const Uint8 numBitsPerEntry)
| Sets all three values of the Green Palette Color Lookup Table Descriptor.
virtual OFCondition | setBluePaletteColorLookupTableDescriptor (const Uint16 numEntries, const Uint16 firstValueMapped, const Uint8 numBitsPerEntry)
| Sets the blue Palette Color Lookup Table Descriptor.
Public Member Functions inherited from IODModule
| IODModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules)
| Constructor.
| IODModule ()
| Constructor.
| IODModule (const IODModule &rhs)
| Copy constructor, creates shallow copy.
IODModule & | operator= (const IODModule &rhs)
| Assignment operator, creates shallow copy.
| ~IODModule ()
| Destructor.
Public Member Functions inherited from IODComponent
| IODComponent (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL)
| Constructor.
| IODComponent (IODComponent *parent=NULL)
| Constructor, creates rules and item from scratch.
IODComponent & | operator= (const IODComponent &rhs)
| Assignment operator, copies contained item and rule set from rhs to "this" attribute set.
| IODComponent (const IODComponent &rhs)
| Copy constructor, copies reference to contained item and rule set to "this" attribute set.
virtual | ~IODComponent ()
| Virtual Destructor.
virtual void | inventMissing ()
| Set missing values by inventing "default values".
OFshared_ptr< IODRules > | getRules ()
| Get rules handled by this module.
virtual void | makeOptional ()
| Make component optional by turning all attributes requirement types of it to type 3.
DcmItem & | getData ()
| Get the data handled by this module.
virtual OFCondition | check (const OFBool quiet=OFFalse)
| Check whether this component's data satisfies the underlying rules.
virtual int | compare (const IODComponent &rhs) const
| Comparison operator for IOD Components.
virtual bool | getValueCheckOnWrite () const
| Get whether attribute value errors will be handled as errors on writing.
virtual void | setValueCheckOnWrite (const OFBool checkValue)
| Set whether attribute values should be checked on writing, i.e.

## Protected Member Functions
virtual OFCondition | getUint8DataCopy (const DcmTagKey &dataTag, const Uint8 *&lutData, unsigned long &num8BitEntries)
| Returns a copy of the data for the given tag.
virtual OFCondition | putUint8Data (const DcmTagKey &dataTag, const Uint8 *lutData, const unsigned long num8BitEntries)
| Put the given 8 bit data into the given tag.
virtual OFCondition | getUint16DataCopy (const DcmTagKey &dataTag, const Uint16 *&lutData, unsigned long &numEntries)
| Returns a 16 bit copy of the data for the given tag.
virtual OFCondition | getUint16Data (const DcmTagKey &dataTag, const Uint16 *&lutData, unsigned long &numEntries)
| Returns a reference of the data from the given tag and the number of entries in the data.
virtual OFBool | checkLUT (const DcmTagKey &descriptorTag, const DcmTagKey &dataTag)
| Check given LUT for consistency with descriptor.
virtual OFBool | checkDescriptorConsistency (const OFBool &isError)
| Check basic consistency rules of all palette descriptors (not their data).
virtual OFBool | checkDataConsistency (const OFBool &isError)
| Check basic consistency of all palette data with their descriptors.
virtual OFBool | checkSegmentConsistency (const OFBool &isError, OFBool &isSegmented)
| Check that either segmented or unsegmented LUT data is used, not both.
virtual void | reportLUTError (const DcmTagKey &descriptorTag, const OFString &message, const OFBool &isError)
| Report error/warning for given descriptor tag.
virtual OFCondition | numEntriesForData (const DcmTagKey &dataTag, Uint16 &result)
| Get number of LUT data entries for given descriptor tag.

## Static Private Attributes
static const OFString | m_ModuleName
| The module's name ("PaletteColorLookupTableModule").

## Additional Inherited Members
Static Public Member Functions inherited from IODComponent
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.
static OFCondition | write (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName, const OFBool checkValue)
| Static helper function that writes attributes from given item into destination item, as determined by the provided rules and component name.
Protected Attributes inherited from IODComponent
OFshared_ptr< DcmItem > | m_Item
| Shared pointer to the data handled by this class.
OFshared_ptr< IODRules > | m_Rules
| Rules describing the attributes governed by this class.
IODComponent * | m_Parent
| The parent component (may be NULL) of this class.
OFBool | m_CheckValueOnWrite
| Denotes whether attribute values should be checked on writing, i.e.

## Detailed Description

Class representing the Palette Color Lookup Table Module:

Red Palette Color Lookup Tableâ Descriptor (0028,1101): (US or SS, 3, 1) Green Palette Color Lookup Tableâ Descriptor (0028,1102): (US or SS, 3, 1) Blue Palette Color Lookup Tableâ Descriptor (0028,1103): (US or SS, 3, 1) Palette Color Lookup Table UID (0028,1199): (UI, 1, 3) Red Palette Color Lookup Tableâ Dataâ (0028,1201): (OW, 1-n, 1C) Green Palette Color Lookup Tableâ Dataâ (0028,1202): (OW, 1-n, 1C) Blue Palette Color Lookup Tableâ Dataâ (0028,1203): (OW, 1-n, 1C) Segmented Red Palette Color Lookup Tableâ Dataâ (0028,1221): (OW, 1-n, 1C) Segmented Green Palette Color Lookup Tableâ Dataâ (0028,1222): (OW, 1-n, 1C) Segmented Blue Palette Color Lookup Tableâ Dataâ (0028,1223): (OW, 1-n, 1C)

## Constructor & Destructor Documentation

## ◆ IODPaletteColorLUTModule()

IODPaletteColorLUTModule::IODPaletteColorLUTModule | ( | OFshared_ptr< DcmItem > | item,
|  | OFshared_ptr< IODRules > | rules )

Constructor.

Parameters

  item | The item to be used for data storage. If NULL, the class creates an empty data container.
  rules | The rule set for this class. If NULL, the class creates one from scratch and adds its values.

## Member Function Documentation

## ◆ checkDataConsistency()

virtual OFBool IODPaletteColorLUTModule::checkDataConsistency | ( | const OFBool & | isError | ) |
| protectedvirtual

Check basic consistency of all palette data with their descriptors.

Parameters

  isError | If OFTrue, errors are reported, otherwise warnings

Returns
  OFTrue if all data is consistent, OFFalse otherwise

## ◆ checkDescriptorConsistency()

virtual OFBool IODPaletteColorLUTModule::checkDescriptorConsistency | ( | const OFBool & | isError | ) |
| protectedvirtual

Check basic consistency rules of all palette descriptors (not their data).

Parameters

  isError | If OFTrue, errors are reported, otherwise warnings

Returns
  OFTrue if all descriptors are consistent, OFFalse otherwise

## ◆ checkLUT()

virtual OFBool IODPaletteColorLUTModule::checkLUT | ( | const DcmTagKey & | descriptorTag,
|  | const DcmTagKey & | dataTag )
| protectedvirtual

Check given LUT for consistency with descriptor.

Parameters

  descriptorTag | The tag of the descriptor to be checked (i.e. Red/Green/BluePaletteColorLookupTableDescriptor)
  dataTag | The tag of the data to be checked (i.e. Red/Green/BluePaletteColorLookupTableData). Should of course match the descriptor "color".

Returns
  OFTrue if LUT is consistent, OFFalse otherwise

## ◆ checkSegmentConsistency()

virtual OFBool IODPaletteColorLUTModule::checkSegmentConsistency | ( | const OFBool & | isError,
|  | OFBool & | isSegmented )
| protectedvirtual

Check that either segmented or unsegmented LUT data is used, not both.

Parameters

  isError | If OFTrue, errors are reported, otherwise warnings
  isSegmented | Returns OFTrue if segmented LUT data is used, OFFalse otherwise

Returns
  OFTrue if LUT data is consistent, OFFalse otherwise

## ◆ clearData()

virtual void IODPaletteColorLUTModule::clearData | ( |  | ) |
| virtual

Clear all attributes from the data that are handled by this module.

An attribute is considered belonging to the module if there are rules marked as belonging to this module via the rule's module name.

Reimplemented from IODComponent.

## ◆ getBluePaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getBluePaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Blue Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getBluePaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getBluePaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Blue Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getBluePaletteColorLookupTableDescriptor()

virtual OFCondition IODPaletteColorLUTModule::getBluePaletteColorLookupTableDescriptor | ( | Uint16 & | value,
|  | const unsigned long | pos = 0 ) const
| virtual

Get the Blue Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Blue Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be retrieved (0..2)

Returns
  EC_Normal if value is found, an error code otherwise

## ◆ getGreenPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getGreenPaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Green Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getGreenPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getGreenPaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Green Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getGreenPaletteColorLookupTableDescriptor()

virtual OFCondition IODPaletteColorLUTModule::getGreenPaletteColorLookupTableDescriptor | ( | Uint16 & | value,
|  | const unsigned long | pos = 0 ) const
| virtual

Get the Green Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Green Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be retrieved (0..2)

Returns
  EC_Normal if value is found, an error code otherwise

## ◆ getName()

virtual OFString IODPaletteColorLUTModule::getName | ( |  | ) | const
| virtual

Get name of module.

Returns
  Name of the module ("PaletteColorLookupTableModule")

Implements IODComponent.

## ◆ getPaletteColorLookupTableUID()

virtual OFCondition IODPaletteColorLUTModule::getPaletteColorLookupTableUID | ( | OFString & | value,
|  | const signed long | pos = 0 ) const
| virtual

Get the Palette Color Lookup Table UID.

Parameters

  value | Reference to variable in which the value should be stored
  pos | Index of the value to get (0..vm-1), -1 for all components

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getRedPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getRedPaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Red Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getRedPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getRedPaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Red Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getRedPaletteColorLookupTableDescriptor()

virtual OFCondition IODPaletteColorLUTModule::getRedPaletteColorLookupTableDescriptor | ( | Uint16 & | value,
|  | const unsigned long | pos = 0 ) const
| virtual

Get the Red Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Red Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be retrieved (0..2)

Returns
  EC_Normal if value is found, an error code otherwise

## ◆ getSegmentedBluePaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedBluePaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Blue Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getSegmentedBluePaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedBluePaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Blue Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getSegmentedGreenPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedGreenPaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Green Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getSegmentedGreenPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedGreenPaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Green Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getSegmentedRedPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedRedPaletteColorLookupTableData | ( | const Uint16 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Red Palette Color Lookup Tableâ Dataâ

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getSegmentedRedPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::getSegmentedRedPaletteColorLookupTableData | ( | const Uint8 *& | dataCopy,
|  | unsigned long & | numEntries )
| virtual

Get the Segmented Red Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  dataCopy | Reference to variable in which a copy of the value should be stored
  numEntries | Number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getUint16Data()

virtual OFCondition IODPaletteColorLUTModule::getUint16Data | ( | const DcmTagKey & | dataTag,
|  | const Uint16 *& | lutData,
|  | unsigned long & | numEntries )
| protectedvirtual

Returns a reference of the data from the given tag and the number of entries in the data.

Parameters

  dataTag | The tag of the data to be copied to (i.e. Red/Green/Blue/PaletteColorLookupTableData)
  lutData | The pointer that will be set to the data
  numEntries | The number of entries in the data

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getUint16DataCopy()

virtual OFCondition IODPaletteColorLUTModule::getUint16DataCopy | ( | const DcmTagKey & | dataTag,
|  | const Uint16 *& | lutData,
|  | unsigned long & | numEntries )
| protectedvirtual

Returns a 16 bit copy of the data for the given tag.

The data is returned into the given pointer and the number of entries is returned.

Parameters

  dataTag | The tag of the data to be copied to (i.e. Red/Green/Blue/PaletteColorLookupTableData)
  lutData | The pointer that will be set to the copied data
  numEntries | The number of entries in the data

Returns
  EC_Normal if successful, an error code otherwise

## ◆ getUint8DataCopy()

virtual OFCondition IODPaletteColorLUTModule::getUint8DataCopy | ( | const DcmTagKey & | dataTag,
|  | const Uint8 *& | lutData,
|  | unsigned long & | num8BitEntries )
| protectedvirtual

Returns a copy of the data for the given tag.

A copy of the data is returned into the given pointer and the number of entries is returned.

Parameters

  dataTag | The tag of the data to be copied (i.e. Red/Green/Blue/PaletteColorLookupTableData)
  lutData | The pointer that will be set to the copied data
  num8BitEntries | The number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ numBits()

virtual Uint8 IODPaletteColorLUTModule::numBits | ( |  | ) |
| virtual

Returns the number of bits used per LUT data entry.

If the number of bits is not the same for all LUTs, 0 is returned, indicating an error.

Returns
  The number of bits used per LUT data entry (8 or 16)

## ◆ numEntriesForData()

virtual OFCondition IODPaletteColorLUTModule::numEntriesForData | ( | const DcmTagKey & | dataTag,
|  | Uint16 & | result )
| protectedvirtual

Get number of LUT data entries for given descriptor tag.

Parameters

  dataTag | The tag of the data to be checked (i.e. Red/Green/BluePaletteColorLookupTableDescriptor)
  result | The number of entries in the data

Returns
  EC_Normal if successful, an error code otherwise

## ◆ putUint8Data()

virtual OFCondition IODPaletteColorLUTModule::putUint8Data | ( | const DcmTagKey & | dataTag,
|  | const Uint8 * | lutData,
|  | const unsigned long | num8BitEntries )
| protectedvirtual

Put the given 8 bit data into the given tag.

Parameters

  dataTag | The tag of the data to be copied into (i.e. Red/Green/Blue/PaletteColorLookupTableData)
  lutData | The data to be copied
  num8BitEntries | The number of entries in the lookup table

Returns
  EC_Normal if successful, an error code otherwise

## ◆ read()

virtual OFCondition IODPaletteColorLUTModule::read | ( | DcmItem & | source,
|  | const OFBool | clearOldData = OFTrue )
| virtual

Read attributes from given item into this class.

Parameters

  source | The source to read from
  clearOldData | If OFTrue, old data is cleared before reading. Otherwise old data is overwritten (or amended)

Returns
  EC_Normal if reading was successful, error otherwise

Reimplemented from IODComponent.

## ◆ reportLUTError()

virtual void IODPaletteColorLUTModule::reportLUTError | ( | const DcmTagKey & | descriptorTag,
|  | const OFString & | message,
|  | const OFBool & | isError )
| protectedvirtual

Report error/warning for given descriptor tag.

Parameters

  descriptorTag | The tag of the descriptor to be reported (i.e. Red/Green/BluePaletteColorLookupTableDescriptor)
  message | The message to be reported
  isError | If OFTrue, an error is reported, otherwise a warning

## ◆ setBluePaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setBluePaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Blue Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setBluePaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setBluePaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Blue Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setBluePaletteColorLookupTableDescriptor() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setBluePaletteColorLookupTableDescriptor | ( | const Uint16 & | value,
|  | const unsigned long | pos = 0 )
| virtual

Set the Blue Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Blue Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be set (0..2)

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setBluePaletteColorLookupTableDescriptor() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setBluePaletteColorLookupTableDescriptor | ( | const Uint16 | numEntries,
|  | const Uint16 | firstValueMapped,
|  | const Uint8 | numBitsPerEntry )
| virtual

Sets the blue Palette Color Lookup Table Descriptor.

Parameters

  numEntries | The number of entries in the lookup table.
  firstValueMapped | The first value mapped in the lookup table.
  numBitsPerEntry | The number of bits per entry in the lookup table.

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setGreenPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setGreenPaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Green Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setGreenPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setGreenPaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Green Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setGreenPaletteColorLookupTableDescriptor() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setGreenPaletteColorLookupTableDescriptor | ( | const Uint16 & | value,
|  | const unsigned long | pos = 0 )
| virtual

Set the Green Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Green Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be set (0..2)

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setGreenPaletteColorLookupTableDescriptor() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setGreenPaletteColorLookupTableDescriptor | ( | const Uint16 | numEntries,
|  | const Uint16 | firstValueMapped,
|  | const Uint8 | numBitsPerEntry )
| virtual

Sets all three values of the Green Palette Color Lookup Table Descriptor.

Parameters

  numEntries | The number of entries in the lookup table.
  firstValueMapped | The first value mapped in the lookup table.
  numBitsPerEntry | The number of bits per entry in the lookup table.

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setPaletteColorLookupTableData()

template<typename T>

OFCondition IODPaletteColorLUTModule::setPaletteColorLookupTableData | ( | const T * | copyRed,
|  | const T * | copyGreen,
|  | const T * | copyBlue,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )

Set the Palette Color Lookup Tableâ Dataâ (red, green, blue, 8 or 16 bit).

Template Parameters

  T | The data type of the color lookup table data. (Uint16 or Uint8)

Parameters

  copyRed | The value of Red Palette Color Lookup Tableâ Dataâ
  copyGreen | The value of Green Palette Color Lookup Tableâ Dataâ
  copyBlue | The value of Blue Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in each of the lookup tables
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setPaletteColorLookupTableUID()

virtual OFCondition IODPaletteColorLUTModule::setPaletteColorLookupTableUID | ( | const OFString & | value,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Palette Color Lookup Table UID.

Parameters

  value | The value of Palette Color Lookup Table UID
  checkValue | Check value for conformance with VR (UI) and VM (1) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setRedPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setRedPaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Red Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setRedPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setRedPaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Red Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setRedPaletteColorLookupTableDescriptor() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setRedPaletteColorLookupTableDescriptor | ( | const Uint16 & | value,
|  | const unsigned long | pos = 0 )
| virtual

Set the Red Palette Color Lookup Tableâ Descriptor.

Parameters

  value | The value of Red Palette Color Lookup Tableâ Descriptor
  pos | The position of the value to be set (0..2)

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setRedPaletteColorLookupTableDescriptor() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setRedPaletteColorLookupTableDescriptor | ( | const Uint16 | numEntries,
|  | const Uint16 | firstValueMapped,
|  | const Uint8 | numBitsPerEntry )
| virtual

Sets all three values of the Red Palette Color Lookup Table Descriptor.

Parameters

  numEntries | The number of entries in the lookup table.
  firstValueMapped | The first value mapped in the lookup table.
  numBitsPerEntry | The number of bits per entry in the lookup table.

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedBluePaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedBluePaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Blue Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedBluePaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedBluePaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Blue Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedGreenPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedGreenPaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Green Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedGreenPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedGreenPaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Green Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedPaletteColorLookupTableData()

template<typename T>

OFCondition IODPaletteColorLUTModule::setSegmentedPaletteColorLookupTableData | ( | const T * | copyRedData,
|  | const T * | copyGreenData,
|  | const T * | copyBlueData,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )

Sets the red, green, and blue data for a segmented palette color lookup table.

The data arrays for red, green, and blue should be of type T and have a length of numEntries.

Template Parameters

  T | The data type of the color lookup table data. (Uint16 or Uint8)

Parameters

  copyRedData | Pointer to the array containing the red data.
  copyGreenData | Pointer to the array containing the green data.
  copyBlueData | Pointer to the array containing the blue data.
  numEntries | The number of entries in the lookup table.
  checkValue | Flag indicating whether to check the input values for validity. Default is true.

Returns
  EC_Normal if successful, error otherwise.

## ◆ setSegmentedRedPaletteColorLookupTableData() [1/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedRedPaletteColorLookupTableData | ( | const Uint16 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Red Palette Color Lookup Tableâ Dataâ (16 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ setSegmentedRedPaletteColorLookupTableData() [2/2]

virtual OFCondition IODPaletteColorLUTModule::setSegmentedRedPaletteColorLookupTableData | ( | const Uint8 * | value,
|  | const unsigned long | numEntries,
|  | const OFBool | checkValue = OFTrue )
| virtual

Set the Segmented Red Palette Color Lookup Tableâ Dataâ (8 bit version).

Parameters

  value | The value of Red Palette Color Lookup Tableâ Dataâ
  numEntries | Number of entries in the lookup table
  checkValue | Check value for conformance with VR (OW) and VM (1-n) if OFTrue

Returns
  EC_Normal if value is set, an error code otherwise

## ◆ write()

virtual OFCondition IODPaletteColorLUTModule::write | ( | DcmItem & | destination | ) |
| virtual

Write attributes from this class into given item.

Parameters

  destination | The item to write to

Returns
  EC_Normal if writing was successful, error otherwise

Reimplemented from IODComponent.

The documentation for this class was generated from the following file:

- dcmiod/include/dcmtk/dcmiod/modpalettecolorlut.h

Generated on for DCMTK Version 3.7.0 by Doxygen 1.16.1