Region Handling
[Miscellaneous]

Collaboration diagram for Region Handling:

Data Structures

struct  oyRegion_s
 start with a simple rectangle More...

Functions

oyRegion_soyRegion_s::oyRegion_NewWith (double x, double y, double width, double height, oyObject_s object)
 new with geometry
oyRegion_soyRegion_s::oyRegion_NewFrom (oyRegion_s *ref, oyObject_s object)
 new from other region
oyRegion_soyRegion_s::oyRegion_Copy (oyRegion_s *orig, oyObject_s object)
 copy/reference from other region
int oyRegion_s::oyRegion_Release (oyRegion_s **obj)
 release
void oyRegion_s::oyRegion_SetGeo (oyRegion_s *edit_region, double x, double y, double width, double height)
 set geometry
void oyRegion_s::oyRegion_SetByRegion (oyRegion_s *edit_region, oyRegion_s *ref)
 copy values
void oyRegion_s::oyRegion_Trim (oyRegion_s *edit_region, oyRegion_s *ref)
 trim edit_region to ref extents
void oyRegion_s::oyRegion_MoveInside (oyRegion_s *edit_region, oyRegion_s *ref)
 trim edit_region to ref extents
void oyRegion_s::oyRegion_Scale (oyRegion_s *edit_region, double factor)
 scale with origin in the top left corner
void oyRegion_s::oyRegion_Normalise (oyRegion_s *edit_region)
 normalise swapped values for width and height
void oyRegion_s::oyRegion_Round (oyRegion_s *edit_region)
 scale with origin in the top left corner
int oyRegion_s::oyRegion_IsEqual (oyRegion_s *region1, oyRegion_s *region2)
 compare
int oyRegion_s::oyRegion_IsInside (oyRegion_s *region, double x, double y)
 compare
int oyRegion_s::oyRegion_CountPoints (oyRegion_s *region)
 count number of points covered by this region
int oyRegion_s::oyRegion_Index (oyRegion_s *region, double x, double y)
 return position inside region, assuming region size
oyChar * oyRegion_s::oyRegion_Show (oyRegion_s *r)
 debug text not so threadsafe

Function Documentation

oyRegion_s * oyRegion_Copy ( oyRegion_s orig,
oyObject_s  object 
) [related, inherited]

copy/reference from other region

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::oy_, oyObject_s::oyObject_Copy(), and oyRegion_s::oyRegion_NewFrom().

int oyRegion_CountPoints ( oyRegion_s region  )  [related, inherited]

count number of points covered by this region

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, and oyRegion_s::width.

int oyRegion_Index ( oyRegion_s region,
double  x,
double  y 
) [related, inherited]

return position inside region, assuming region size

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

int oyRegion_IsEqual ( oyRegion_s region1,
oyRegion_s region2 
) [related, inherited]

compare

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

int oyRegion_IsInside ( oyRegion_s region,
double  x,
double  y 
) [related, inherited]

compare

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

void oyRegion_MoveInside ( oyRegion_s edit_region,
oyRegion_s ref 
) [related, inherited]

trim edit_region to ref extents

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::oyRegion_Normalise(), oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

oyRegion_s * oyRegion_NewFrom ( oyRegion_s ref,
oyObject_s  object 
) [related, inherited]

new from other region

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::oyRegion_SetByRegion().

Referenced by oyImage_s::oyImage_FillArray(), and oyRegion_s::oyRegion_Copy().

oyRegion_s * oyRegion_NewWith ( double  x,
double  y,
double  width,
double  height,
oyObject_s  object 
) [related, inherited]

new with geometry

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::oyRegion_SetGeo().

Referenced by oyImage_s::oyImage_Create().

void oyRegion_Normalise ( oyRegion_s edit_region  )  [related, inherited]

normalise swapped values for width and height

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

Referenced by oyRegion_s::oyRegion_MoveInside(), and oyRegion_s::oyRegion_Trim().

int oyRegion_Release ( oyRegion_s **  obj  )  [related, inherited]

release

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::oy_, oyOBJECT_REGION_S, oyObject_s::oyObject_Release(), and oyRegion_s::type_.

void oyRegion_Round ( oyRegion_s edit_region  )  [related, inherited]

scale with origin in the top left corner

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

void oyRegion_Scale ( oyRegion_s edit_region,
double  factor 
) [related, inherited]

scale with origin in the top left corner

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

Referenced by oyImage_s::oyImage_FillArray().

void oyRegion_SetByRegion ( oyRegion_s edit_region,
oyRegion_s ref 
) [related, inherited]

copy values

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::oyRegion_SetGeo(), oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

Referenced by oyRegion_s::oyRegion_NewFrom().

void oyRegion_SetGeo ( oyRegion_s edit_region,
double  x,
double  y,
double  width,
double  height 
) [related, inherited]

set geometry

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

Referenced by oyRegion_s::oyRegion_NewWith(), and oyRegion_s::oyRegion_SetByRegion().

oyChar * oyRegion_Show ( oyRegion_s r  )  [related, inherited]

debug text not so threadsafe

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.

void oyRegion_Trim ( oyRegion_s edit_region,
oyRegion_s ref 
) [related, inherited]

trim edit_region to ref extents

Since:
Oyranos: version 0.1.8
Date:
4 december 2007 (API 0.1.8)

References oyRegion_s::height, oyRegion_s::oyRegion_Normalise(), oyRegion_s::width, oyRegion_s::x, and oyRegion_s::y.


Generated on Tue Mar 10 09:46:41 2009 for Oyranos by  doxygen 1.5.8