TiffData
Bases: NBOBaseClass
Represents the XML element TiffData.
This field describes the location of the pixel data in a tiff file.
getTypeName()
Returns the class type name.
Returns:
| Type | Description |
|---|---|
string
|
The class type name |
getXMLName()
Returns the XML element name corresponding to this class.
Returns:
| Type | Description |
|---|---|
string
|
The XML element name |
getNBOType()
Returns the NBO Type corresponding to this class.
Returns:
| Type | Description |
|---|---|
int
|
The NBO Type value |
getChildren()
Returns a list of all classes derived from this class.
Returns:
| Type | Description |
|---|---|
List[NBOBaseClass]
|
The list of derived classes |
getSubElements()
Returns a list of all child elements contained in this class.
Returns:
| Type | Description |
|---|---|
List[NBOBaseClass]
|
The list of child classes |
fromJsonFile(path)
Populates this object from a JSON file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
string
|
The path to the JSON file |
required |
fromJsonString(json_string)
Populates this object from a JSON string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json_string
|
string
|
The JSON content as a string |
required |
fromXmlFile(path)
Populates this object from a XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
string
|
The path to the XML file |
required |
fromXmlString(xml_string)
Populates this object from a XML string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xml_string
|
string
|
The XML content as a string |
required |
toXmlFile(filename)
Serializes this object to an XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
string
|
The path to the output XML file |
required |
toXmlString()
Serializes this object to an XML string.
Returns:
| Type | Description |
|---|---|
string
|
A string containing the XML representation of this object |
setIFD(value)
Sets the value of the IFD attribute.
Gives the IFD(s) for which this element is applicable. Indexed from 0. Default is 0 (the first IFD). [units:none]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
NonNegativeInt_Type
|
The value to set |
required |
getIFD()
Returns the value of the IFD attribute.
Gives the IFD(s) for which this element is applicable. Indexed from 0. Default is 0 (the first IFD). [units:none]
Returns:
| Type | Description |
|---|---|
NonNegativeInt_Type
|
The value of the attribute |
resetIFD()
Resets the IFD attribute to an unset state.
Gives the IFD(s) for which this element is applicable. Indexed from 0. Default is 0 (the first IFD). [units:none]
hasIFD()
Checks whether the optional IFD attribute is present.
Gives the IFD(s) for which this element is applicable. Indexed from 0. Default is 0 (the first IFD). [units:none]
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setFirstZ(value)
Sets the value of the FirstZ attribute.
Gives the Z position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first Z position). [units:none]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
NonNegativeInt_Type
|
The value to set |
required |
getFirstZ()
Returns the value of the FirstZ attribute.
Gives the Z position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first Z position). [units:none]
Returns:
| Type | Description |
|---|---|
NonNegativeInt_Type
|
The value of the attribute |
resetFirstZ()
Resets the FirstZ attribute to an unset state.
Gives the Z position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first Z position). [units:none]
hasFirstZ()
Checks whether the optional FirstZ attribute is present.
Gives the Z position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first Z position). [units:none]
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setFirstT(value)
Sets the value of the FirstT attribute.
Gives the T position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first T position). [units:none]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
NonNegativeInt_Type
|
The value to set |
required |
getFirstT()
Returns the value of the FirstT attribute.
Gives the T position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first T position). [units:none]
Returns:
| Type | Description |
|---|---|
NonNegativeInt_Type
|
The value of the attribute |
resetFirstT()
Resets the FirstT attribute to an unset state.
Gives the T position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first T position). [units:none]
hasFirstT()
Checks whether the optional FirstT attribute is present.
Gives the T position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first T position). [units:none]
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setFirstC(value)
Sets the value of the FirstC attribute.
Gives the C position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first C position). [units:none]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
NonNegativeInt_Type
|
The value to set |
required |
getFirstC()
Returns the value of the FirstC attribute.
Gives the C position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first C position). [units:none]
Returns:
| Type | Description |
|---|---|
NonNegativeInt_Type
|
The value of the attribute |
resetFirstC()
Resets the FirstC attribute to an unset state.
Gives the C position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first C position). [units:none]
hasFirstC()
Checks whether the optional FirstC attribute is present.
Gives the C position of the Image Plane at the specified IFD. Indexed from 0. Default is 0 (the first C position). [units:none]
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setPlaneCount(value)
Sets the value of the PlaneCount attribute.
Gives the number of IFDs affected. Dimension order of IFDs is given by the enclosing Pixels element's DimensionOrder attribute. Default is the number of IFDs in the TIFF file, unless an IFD is specified, in which case the default is 1. [units:none]
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
NonNegativeInt_Type
|
The value to set |
required |
getPlaneCount()
Returns the value of the PlaneCount attribute.
Gives the number of IFDs affected. Dimension order of IFDs is given by the enclosing Pixels element's DimensionOrder attribute. Default is the number of IFDs in the TIFF file, unless an IFD is specified, in which case the default is 1. [units:none]
Returns:
| Type | Description |
|---|---|
NonNegativeInt_Type
|
The value of the attribute |
resetPlaneCount()
Resets the PlaneCount attribute to an unset state.
Gives the number of IFDs affected. Dimension order of IFDs is given by the enclosing Pixels element's DimensionOrder attribute. Default is the number of IFDs in the TIFF file, unless an IFD is specified, in which case the default is 1. [units:none]
hasPlaneCount()
Checks whether the optional PlaneCount attribute is present.
Gives the number of IFDs affected. Dimension order of IFDs is given by the enclosing Pixels element's DimensionOrder attribute. Default is the number of IFDs in the TIFF file, unless an IFD is specified, in which case the default is 1. [units:none]
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |
setUUID(value)
Sets the value of the UUID element.
This must be used when the IFDs are located in another file. Note: It is permissible for this to be self referential.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
TiffData_InlineUUID
|
The value to set |
required |
getUUID()
Returns the value of the UUID element.
This must be used when the IFDs are located in another file. Note: It is permissible for this to be self referential.
Returns:
| Type | Description |
|---|---|
TiffData_InlineUUID
|
The value of the element |
resetUUID()
Resets the UUID element to an unset state.
This must be used when the IFDs are located in another file. Note: It is permissible for this to be self referential.
hasUUID()
Checks whether the optional UUID element is present.
This must be used when the IFDs are located in another file. Note: It is permissible for this to be self referential.
Returns:
| Type | Description |
|---|---|
boolean
|
true if the optional attribute has been set, false otherwise |