Contents
Navigation
Home User Reference Other Resources


The QTPlgDicomPixelLut class allows to read and write the red, green, blue and alpha (optional) lookup table data and the associated lookup table data descriptors that can be included into a class instance. These data elements must be present if the is set to the enumerated value "COLOR PALETTE".

These lookup tables, if present, are now used by the plugin to interpret and display correctly pixel data.

Since version 6.3 of the plugin this class can be used in Console Applications






The QTPlgDicomPixelLut class constructors are called when you create a new instance of the class, while the ˜QTPlgDicomPixelLut class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used: a QTPlgDicomPixelLut object is valid if the , and properties are not nil.

The class provides you with the following initializer methods:
()
This is the default constructor. Use this constructor to create a new empty lookup table data set in memory. Later, you can specify the characteristics of the lookup tables and allocate memory for them by using the class method
(entries as integer,bitsPerEntry as integer,hasAlpha as boolean)
Use this constructor to create a new lookup table data set and allocate memory for it. The and class properties are set with the values of the entries and bitsPerEntry parameters respectively, and buffers are dimensioned to hold as data as specified by the property that is computed automatically.Setting hasAlpha to true, will cause the allocation of the buffer as well. Note that you can create or dispose of the in any moment by modifying the value of the property
(other as QTPlgDicomPixelLut)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance properties

specifies the number of entries in the lookup table. Suitable values range from 1 to 65536
specifies the number of bits for each entry in the Lookup Table Data. It shall take the value of 8 or 16. The LUT Data shall be stored in a format equivalent to 8 bits allocated when the number of bits for each entry is 8, and 16 bits allocated when the number of bits for each entry is 16, where in both cases the is equal to 1. A value of 16 indicates the Lookup Table Data will range from (0,0,0) minimum intensity to (65535,65535, 65535) maximum intensity. If the is present this property must take a value of 8
specifies the dimension, in bytes, of the buffers holding the lookup table data. It is determined by the values of the and class properties
determines the first input value mapped. This input value is mapped to the first entry in the Lookup Table Data. All input values less than the first value mapped are also mapped to the first entry in the Lookup Table Data. An input value one greater than the first value mapped is mapped to the second entry in the Lookup Table Data. Subsequent input values are mapped to the subsequent entries in the Lookup Table Data up to an input value equal to number of entries + first value mapped – 1, which is mapped to the in the Lookup Table Data. Input values greater than or equal to value are also mapped to the last entry in the Lookup Table Data.
it is automatically determined by the values of the and class properties
determines if the has to be allocated. This property can be set to true only if has a value of 8
specifies the values of the Red Lookup Table Data. When setting the lookup table data the size of the passed memoryblock must equal the value of the class property. As the content of the memoryblock is copied, you can safely dispose of it goes out of scope
specifies the values of the Green Lookup Table Data. When setting the lookup table data the size of the passed memoryblock must equal the value of the class property. As the content of the memoryblock is copied, you can safely dispose of it goes out of scope
specifies the values of the Blue Lookup Table Data. When setting the lookup table data the size of the passed memoryblock must equal the value of the class property. As the content of the memoryblock is copied, you can safely dispose of it goes out of scope
specifies the values of the Alpha Lookup Table Data. When setting the lookup table data the size of the passed memoryblock must equal the value of the class property. As the content of the memoryblock is copied, you can safely dispose of it goes out of scope

(entries as integer,bitsPerEntry as integer,hasAlpha as boolean)
use this method to specify the characteristics of the lookup tables. The and class properties are set with the values of the entries and bitsPerEntry parameters respectively, and buffers are dimensioned to hold as data as specified by the property that is computed automatically.Setting hasAlpha to true, will cause the allocation of the buffer as well. Note that you can create or dispose of the in any moment by modifying the value of the property. The property is set to 0
returns nothing. You can check the class property for errors