Cd.It8 – colord Reference Manual
Packages
colord
Cd
It8
instrument
kind
normalized
originator
reference
spectral
title
error_quark
It8
It8.with_kind
add_data
add_option
add_spectrum
get_data_item
get_data_size
get_enable_created
get_instrument
get_kind
get_matrix
get_normalized
get_originator
get_reference
get_spectral
get_spectrum_array
get_spectrum_by_id
get_title
get_xyz_for_rgb
has_option
load_from_data
load_from_file
save_to_data
save_to_file
set_enable_created
set_instrument
set_kind
set_matrix
set_normalized
set_originator
set_reference
set_spectral
set_spectrum_array
set_title
It8
Object Hierarchy:
Description:
[
CCode
( type_id =
"cd_it8_get_type ()"
) ]
public
class
It8
:
Object
Namespace:
Cd
Package:
colord
Content:
Properties:
public
string
instrument
{
get
; }
The instrument that created the results, e.
public
uint
kind
{
get
;
set
; }
The kind of IT8 file.
public
bool
normalized
{
get
; }
If the results file is normalized.
public
string
originator
{
get
; }
The framework that created the results, e.
public
string
reference
{
get
; }
The reference that created the results, e.
public
bool
spectral
{
get
; }
If the results file is spectral.
public
string
title
{
get
; }
The file title, e.
Static methods:
public
static
Quark
error_quark
()
Creation methods:
public
It8
()
Creates a new
It8
object.
public
It8.with_kind
(
It8Kind
kind)
Creates a new
It8
object.
Methods:
public
void
add_data
(
ColorRGB
rgb,
ColorXYZ
xyz)
Adds a reading to this object.
public
void
add_option
(
string
option)
Sets any extra options that have to be set in the CCMX file
public
void
add_spectrum
(
Spectrum
spectrum)
Adds a spectrum to the spectral array.
public
bool
get_data_item
(
uint
idx,
ColorRGB
rgb,
ColorXYZ
xyz)
Gets a specific bit of data from this object.
public
uint
get_data_size
()
Gets the data size.
public
bool
get_enable_created
()
Gets if the 'CREATED' attribute will be written.
public
unowned
string
get_instrument
()
Gets the instrument the file was created by.
public
It8Kind
get_kind
()
Gets the kind of IT8 file.
public
unowned
Mat3x3
?
get_matrix
()
Gets the calibration matrix in the it8 file.
public
bool
get_normalized
()
Gets if the data should be written normlaised to y=100.
public
unowned
string
get_originator
()
Gets the file orginator.
public
unowned
string
get_reference
()
Gets the reference the file was created against.
public
bool
get_spectral
()
Gets if the data is spectral or XYZ.
public
GenericArray
<
unowned
Spectrum
>
get_spectrum_array
()
Gets the spectral data of IT8 file.
public
unowned
Spectrum
get_spectrum_by_id
(
string
id)
Gets a specific spectrum in an IT8 file.
public
unowned
string
get_title
()
Gets the file title.
public
unowned
ColorXYZ
get_xyz_for_rgb
(
double
R,
double
G,
double
B,
double
delta)
Gets the XYZ value for a specific RGB value.
public
bool
has_option
(
string
option)
Finds an option in the file.
public
bool
load_from_data
(
char
[] data)
throws
Error
Loads a it8 file from data.
public
bool
load_from_file
(
File
file)
throws
Error
Loads a it8 file from disk.
public
bool
save_to_data
(
string
[] data)
throws
Error
Saves a it8 file to an area of memory.
public
bool
save_to_file
(
File
file)
throws
Error
Saves a it8 file to disk
public
void
set_enable_created
(
bool
enable_created)
Sets if the 'CREATED' attribute should be written.
public
void
set_instrument
(
string
instrument)
Sets the measuring instrument that created the .
public
void
set_kind
(
It8Kind
kind)
Set the kind of IT8 file.
public
void
set_matrix
(
Mat3x3
matrix)
Set the calibration matrix in the it8 file.
public
void
set_normalized
(
bool
normalized)
Sets if normalized data should be written to the .
public
void
set_originator
(
string
originator)
Sets the program name that created the .
public
void
set_reference
(
string
reference)
Sets the reference that as used to create the .
public
void
set_spectral
(
bool
spectral)
Sets if spectral data should be written to the .
public
void
set_spectrum_array
(
owned
GenericArray
<
unowned
Spectrum
> data)
Set the spectral data
public
void
set_title
(
string
title)
Sets the display name for the file.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref