Home | Trees | Indices | Help |
|
---|
|
init(MultipleInvocations)
FMEPalette class.
Create an instance of a FMEPalette object.
init(name, key, value)
Creates a palette with the given properties.
The keys tile and values tile must have the same number of entries.
Parameters
name (string)
- Name of the palette.
keys (FMETile)
- Keys to set. Duplicate keys are not
allowed and keys must be in ascending order.
values (FMETile)
- Values to set.
Returns: FMEPalette
init(palette)
Create a copy of the passed in palette object.
Parameters
palette FMEPalette
- The palette object to create a
copy of.
Returns: FMEPalette
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
None
|
|
||
bool
|
|
||
bool
|
|
||
bool
|
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
FMETile |
|
||
string
|
|
||
FMETile |
|
||
int
|
|
||
FMETile |
|
||
FMETile |
|
||
bool
|
|
||
bool
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Adds keys and values to the palette. This method can add and/or set multiple values at once. The input keys tile must be the same interpretation as the palette keys. The input values tile must be the same interpretation as the palette values. The size of keys must be the same as the size of the values.
|
Returns whether the specified keys are contained in the palette. The input tile may contain multiple keys.
|
Returns whether the specified values are contained in the palette. The input tile may contain multiple values.
|
Evaluates whether two palettes are identical.
|
Returns the indices of the specified keys in the palette. An index represents the position of a key in the overall list of keys. For example, if a palette contains the following keys: 0 2 5 8, then the corresponding indices are: 0 1 2 3.
|
Returns the keys of the palette.
|
Returns a tile containing the maximum values of each component in the palette. This tile might not be part of the palette itself and might not have a corresponding key tile.
|
Returns a maximum key of the palette.
|
Returns a maximum value of the palette.
|
Returns a tile containing the minimum values of each component in the palette. This tile might not be part of the palette itself and might not have a corresponding key tile.
|
Returns a minimum key of the palette.
|
Returns a minimum value of the palette.
|
Returns a name of the palette.
|
Returns the next available keys from the palette. This method can get multiple available keys at once. This routine can be used before the addKeysAndValues routine to make sure that there are enough new keys.
|
Returns the number of entries in the palette.
|
Returns the values of the palette.
|
Returns resolved values from the keys parameter. This method allow multiple key-to-value lookups. The input keys tile must be the same interpretation as the palette keys.
|
Returns whether the palette has been modified from its baseline state.
|
Returns whether the palette is selected for operations.
|
Removes specified keys and corresponding values from the palette. This method can remove multiple keys and values at once. The input keys tile must be the same interpretation as the palette keys. Note that palette cannot be empty, meaning that there must be at least one entry in the palette. Therefore, attempting to remove everything from the palette will give an error and raise an exception.
|
Sets whether palette has been modified from baseline state. Note that hasBeenModified is initially set to
|
Selects/ Deselects palette for operations.
|
Sets value associated with the key of the palette. This method can set multiple values at once. The input keys tile must be the same interpretation as the palette keys. The input values tile must be the same interpretation as the palette values. The size of the keys must be the same as the size of the values.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 20 06:21:02 2017 | http://epydoc.sourceforge.net |