Geo::GDAL::ColorTable Class Reference

Inherits Geo::GDAL::MajorObject, and Geo::GDAL.

Inheritance diagram for Geo::GDAL::ColorTable:

Inheritance graph
[legend]
List of all members.

Public Class Methods

Geo::GDAL::ColorTable new (scalar GDALPaletteInterp=scalar Geo::GDAL::Const::GPI_RGB)
Geo::GDAL::ColorTable create (scalar GDALPaletteInterp= 'RGB')

Public Object Methods

Geo::GDAL::ColorTable Clone ()
scalar GetPaletteInterpretation ()
scalar GetCount ()
list ColorTable (list colortable)
list ColorEntries (list color_entries)
list ColorEntry (scalar i, list color)
list GetColorEntry (scalar i)
list GetColorEntryAsRGB (scalar i)
 SetColorEntry (scalar index, list ColorEntry)
 CreateColorRamp (scalar start_index, listref start_color, scalar end_index, listref end_color)

Constructor & Destructor Documentation

list Geo::GDAL::ColorTable::ColorTable ( list  colortable  ) 

Get or set the table of color entries.

Parameters:
colortable [optional]
Returns:
a table of color entries (a list of lists) in a non void context


Member Function Documentation

Geo::GDAL::ColorTable Geo::GDAL::ColorTable::Clone (  ) 

Returns:
a new Geo::GDAL::ColorTable object

list Geo::GDAL::ColorTable::ColorEntries ( list  color_entries  ) 

Get or set the table of color entries.

Deprecated:
use Geo::GDAL::ColorTable::ColorTable
Parameters:
color_entries [optional]
Returns:
a table of color entries (a list of lists) in a non void context

list Geo::GDAL::ColorTable::ColorEntry ( scalar  i,
list  color 
)

Get or set a color entry.

Parameters:
i 
color [optional]
Returns:
a color entry

Geo::GDAL::ColorTable Geo::GDAL::ColorTable::create ( scalar  GDALPaletteInterp = 'RGB'  ) 

Usage:

$ct = Geo::GDAL::ColorTable->create(...arguments...);
Returns:
a new Geo::GDAL::ColorTable object

Geo::GDAL::ColorTable::CreateColorRamp ( scalar  start_index,
listref  start_color,
scalar  end_index,
listref  end_color 
)

Parameters:
start_index 
start_color 
end_index 
end_color 

list Geo::GDAL::ColorTable::GetColorEntry ( scalar  i  ) 

Parameters:
i 
Returns:
array ColorEntry = ($c1, $c2, $c3, $c4)

list Geo::GDAL::ColorTable::GetColorEntryAsRGB ( scalar  i  ) 

Parameters:
i 
Returns:
array ColorEntry = ($r, $g, $b, $alpha)

scalar Geo::GDAL::ColorTable::GetCount (  ) 

Returns:
scalar (count of color entries as int)

scalar Geo::GDAL::ColorTable::GetPaletteInterpretation (  ) 

Returns:
paletter interpretation (string)

Geo::GDAL::ColorTable Geo::GDAL::ColorTable::new ( scalar  GDALPaletteInterp = scalar Geo::GDAL::Const::GPI_RGB  ) 

Deprecated:
use Geo::GDAL::ColorTable::create, which uses string constants
Returns:
a new Geo::GDAL::ColorTable object

Geo::GDAL::ColorTable::SetColorEntry ( scalar  index,
list  ColorEntry 
)

Parameters:
index 
ColorEntry a list or a reference to an array


The documentation for this class was generated from the following file:
Generated on 26 May 2013 for Geo::GDAL by  doxygen 1.4.7