TdkProcessingService Class Reference
[The Services Module]

Implements the processing service methods. More...

#include <TdkProcessingService.h>

List of all members.

Static Public Member Functions

static double calcLatLongDistanceInMeters (double xmin, double xmax, double ymin, double ymax, const string &datum="SAD69", TeProjection *proj=NULL)
 Returns the distance in meters.
static void convertBox (double &xmin, double &xmax, double &ymin, double &ymax, TeProjection &from, TeProjection &to)
 Converts the coordinates of the given box using the specified projections.
static void convertCoord2D (double &x, double &y, TeProjection &from, TeProjection &to)
 Converts the given coordinates using the specified projections.
static TeProjection * createSimpleLatLongProjection ()
 Create a new LatLong projection with default params.
static TeProjection * createSimpleUTMProjection (double lon0=-45)
 Create a new UTM projection with default params.
static TeProjection * createProjection (const TeProjectionParams &params)
 Create a new LatLong projection with user params.
static void generateColorScheme (std::vector< TeColor > &ramps, int numColors, std::vector< TeColor > &colors)
 Generates a graduated color scale following a given set of color ramps and apply it to a legend vector.
static void getColorPallete (TdkColorPallete pallete, std::vector< TeColor > &colors)
 Gets the color of a given pallete.
static unsigned char * flipVertical (unsigned char *data, int width, int height)
 Verticaly mirror the given image data.
static void getAlphaMask (int width, int height, unsigned char mask_red, unsigned char mask_green, unsigned char mask_blue, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char **alpha)
static void rotateRaster (double angle, int width, int height, unsigned char *red, unsigned char *green, unsigned char *blue, int *new_width, int *new_height, unsigned char **new_red, unsigned char **new_green, unsigned char **new_blue, unsigned char **alpha)
static void convertRaster (TeRaster *raster, TeRaster *outRaster)
static TeRaster * convertRasterProjection (TeRaster *inRaster, TeProjection *outProj)
static std::string getFormatName (TdkImageFormat format)
static TdkImageFormattedconvertImage (TdkImageRGB *image, TdkImageFormat format)
static std::vector< std::string > operatorDisjoint (TePointSet p1, TePointSet p2)
 Check if coordinate p1 and coordinate p2 are disjoint -- returns a vector of objectIds.
static std::vector< std::string > operatorDisjoint (TePointSet p1, TeLineSet p2)
static std::vector< std::string > operatorDisjoint (TePointSet p1, TePolygonSet p2)
static std::vector< std::string > operatorDisjoint (TeLineSet p1, TeLineSet p2)
static std::vector< std::string > operatorDisjoint (TeLineSet p1, TePolygonSet p2)
static std::vector< std::string > operatorDisjoint (TePolygonSet p1, TePolygonSet p2)
static std::vector< std::string > operatorTouches (TePointSet p1, TeLineSet p2)
 Check if object is touches another object -- returns a vector of objectIds.
static std::vector< std::string > operatorTouches (TePointSet p1, TePolygonSet p2)
static std::vector< std::string > operatorTouches (TeLineSet p1, TeLineSet p2)
static std::vector< std::string > operatorTouches (TeLineSet p1, TePolygonSet p2)
static std::vector< std::string > operatorTouches (TePolygonSet p1, TePolygonSet p2)
static std::vector< std::string > operatorCrosses (TeLineSet p1, TeLineSet p2)
 Check if object is crosses another object -- returns a vector of objectIds.
static std::vector< std::string > operatorCrosses (TeLineSet p1, TePolygonSet p2)
static std::vector< std::string > operatorWithin (TePointSet pt1, TePointSet pt2)
static std::vector< std::string > operatorWithin (TePointSet pt1, TeLineSet l2)
static std::vector< std::string > operatorWithin (TePointSet pt1, TePolygonSet pl2)
static std::vector< std::string > operatorWithin (TeLineSet l1, TeLineSet l2)
static std::vector< std::string > operatorWithin (TeLineSet l1, TePolygonSet pl2)
static std::vector< std::string > operatorWithin (TePolygonSet pl1, TePolygonSet pl2)
static std::vector< std::string > operatorOverlaps (TeLineSet l1, TeLineSet l2)
 Check if object overlaps another object -- returns a vector of objectIds.
static std::vector< std::string > operatorOverlaps (TePolygonSet pl1, TePolygonSet pl2)
static bool operatorIntersects (TeCoord2D c, const TeBox &b)
 Check if object 1 and object 2 intersects.
static bool operatorIntersects (TePoint p, const TeBox &b)
static bool operatorIntersects (TeBox bx1, const TeBox &bx2)
static std::vector< std::string > operatorEquals (TePointSet p1, TePointSet p2)
 Check if object 1 and object 2 are equal.
static std::vector< std::string > operatorEquals (TeLineSet l1, TeLineSet l2)
static std::vector< std::string > operatorEquals (TePolygonSet p1, TePolygonSet p2)
static std::vector< std::string > operatorCovered (TeLineSet l1, TeLineSet l2)
 Check if object 1 is covered by object 2.
static std::vector< std::string > operatorCovered (TeLineSet l, TePolygonSet pl)
static std::vector< std::string > operatorCovered (TePolygonSet pl1, TePolygonSet pl2)
static void TdkBuildTranslateMatrix (TdkMathMatrix &matrix, double tx, double ty, double tz)
 Builds a translation matrix.
static void TdkTranslate (TePolygonSet &polygonSet, double tx, double ty, double tz)
 Translates a given geometry set.
static void TdkTranslate (TePolygon &polygon, double tx, double ty, double tz)
static void TdkTranslate (TeLineSet &lineSet, double tx, double ty, double tz)
static void TdkTranslate (TeLine2D &line, double tx, double ty, double tz)
static void TdkTranslate (TePointSet &pointSet, double tx, double ty, double tz)
static void TdkTranslate (TePoint &point, double tx, double ty, double tz)
static void TdkTranslate (TeTextSet &textSet, double tx, double ty, double tz)
static void TdkTranslate (TeText &text, double tx, double ty, double tz)
static void TdkTranslate (TeBox &box, double tx, double ty, double tz)
static void TdkBuildScaleMatrix (TdkMathMatrix &matrix, double sx, double sy, double sz, const TeCoord2D &coord)
 Builds a scaling matrix.
static void TdkScale (TePolygonSet &polygonSet, double sx, double sy, double sz, const TeCoord2D &coord)
 Scales a given geometry set.
static void TdkScale (TePolygon &polygon, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TeLineSet &lineSet, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TeLine2D &line, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TePointSet &pointSet, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TePoint &point, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TeTextSet &textSet, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TeText &text, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkScale (TeBox &box, double sx, double sy, double sz, const TeCoord2D &coord)
static void TdkBuildRotateMatrix (TdkMathMatrix &matrix, double angle, const TeCoord2D &coord)
 Builds a rotation matrix.
static void TdkRotate (TePolygonSet &polygonSet, double angle, const TeCoord2D &coord)
 Rotates a given geometry set.
static void TdkRotate (TePolygon &polygon, double angle, const TeCoord2D &coord)
static void TdkRotate (TeLineSet &lineSet, double angle, const TeCoord2D &coord)
static void TdkRotate (TeLine2D &line, double angle, const TeCoord2D &coord)
static void TdkRotate (TePointSet &pointSet, double angle, const TeCoord2D &coord)
static void TdkRotate (TePoint &point, double angle, const TeCoord2D &coord)
static void TdkRotate (TeTextSet &textSet, double angle, const TeCoord2D &coord)
static void TdkRotate (TeText &text, double angle, const TeCoord2D &coord)
static void TdkRotate (TeBox &box, double angle, const TeCoord2D &coord)
static void TdkTransform (TePolygonSet &polygonSet, TdkMathMatrix *matrix)
 Applies a given transformation to a geometry set.
static void TdkTransform (TePolygon &polygon, TdkMathMatrix *matrix)
static void TdkTransform (TeLineSet &lineSet, TdkMathMatrix *matrix)
static void TdkTransform (TeLine2D &line, TdkMathMatrix *matrix)
static void TdkTransform (TePointSet &pointSet, TdkMathMatrix *matrix)
static void TdkTransform (TePoint &point, TdkMathMatrix *matrix)
static void TdkTransform (TeTextSet &textSet, TdkMathMatrix *matrix)
static void TdkTransform (TeText &text, TdkMathMatrix *matrix)
static void TdkTransform (TeBox &box, TdkMathMatrix *matrix)
static TePolygonSet createBufferRegion (TdkObjectGID &objGID, double distance)
static bool intersectsPolygon (TdkObjectGID &objGID, TePolygon &buffer)
 Checks if a polygon buffer intersects the geometry of a TdkObject.
static bool intersectsObject (TdkObjectGID &objGID1, TdkObjectGID &objGID2, double toleranceDistance=0)
 Checks if the geometry of a TdkObject intersects the geometry of another TdkObject.
static int pickNearestByPoint (vector< TdkObjectGID * > &objects, TePoint &point, double toleranceDistance)
 Returns the nearest object of a list with respect to a given point, as long as it is within the tolerance distance.
static int pickNearestByPoint (TdkObjectGIDMap &objects, TePoint &point, double toleranceDistance)
static int pickByPoint (vector< TdkObjectGID * > &objects, TePoint &point, double toleranceDistance=0)
 Returns the first object of a list that is located within a given tolerance distance from a point.
static int pickByPoint (TdkObjectGIDMap &objects, TePoint &point, double toleranceDistance=0)
static int pickByObject (vector< TdkObjectGID * > &objects, TdkObjectGID &obj, double toleranceDistance=0)
 Returns the first object of a list that is located within a given tolerance distance from another object.
static int pickByObject (TdkObjectGIDMap &objects, TdkObjectGID &obj, double toleranceDistance=0)
static double getLineFraction (TeLineSet &lines, TePoint &point)
static double getLineFraction (TdkObjectGID &objGID, TePoint &point)
static bool getLineFractionAndAzimuth (TeLineSet &lines, TePoint &point, double &fraction, double &azimuth)
static bool getLineFractionAndAzimuth (TdkObjectGID &objGID, TePoint &point, double &fraction, double &azimuth)
static unsigned int TdkPick (TdkTheme *theme, TeLinearRing &ring, string &subquery, TdkObjectIdentifierList &lst, unsigned int n)
static unsigned int TdkPick (TdkTheme *theme, double xmin, double ymin, double xmax, double ymax, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
static unsigned int TdkPick (TdkTheme *theme, double xc, double yc, double r, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
static TdkThemeObjectsTdkPickCircle (TdkTheme *theme, double xc, double yc, double r, unsigned int n=0)
static TdkThemeObjectsTdkPickTheme (TdkTheme *theme, double x0, double y0, double x1, double y1, unsigned int n=0)
static TdkThemeObjectsTdkPickTheme (TdkTheme *theme, TeLinearRing &ring, unsigned int n=0)
static unsigned int TdkPickPolygons (TdkTheme *theme, double xmin, double ymin, double xmax, double ymax, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
 Pick all the lines geometry objects of a layer which are inside a given rectangle area.
static unsigned int TdkPickLines (TdkTheme *theme, double xmin, double ymin, double xmax, double ymax, string &subquery, TdkObjectIdentifierList &objLst, unsigned int n=0)
 Pick all the lines geometry objects of a layer which are inside a given rectangle area.
static unsigned int TdkPickPoints (TdkTheme *theme, double xmin, double ymin, double xmax, double ymax, string &subquery, TdkObjectIdentifierList &objLst, unsigned int n=0)
 Pick all the point geometry objects of a layer which are inside a given rectangle area.
static unsigned int TdkPickPolygons (TdkTheme *theme, double xc, double yc, double r, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
 Pick all the lines geometry objects of a layer which are inside a given rectangle area.
static unsigned int TdkPickLines (TdkTheme *theme, double xc, double yc, double r, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
 Pick all the lines geometry objects of a layer which are inside a given rectangle area.
static unsigned int TdkPickPoints (TdkTheme *theme, double xc, double yc, double r, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
 Pick all the point geometry objects of a layer which are inside a given circular area.
static unsigned int TdkPickPoints (TdkTheme *theme, TeLinearRing &ring, string &subquery, TdkObjectIdentifierList &lst, unsigned int n=0)
 Pick all the point geometry objects of a layer which are inside a given ring area.
static unsigned int TdkPickLines (TdkTheme *theme, TeLinearRing &ring, string &subquery, TdkObjectIdentifierList &lst, unsigned int n)
 Pick all the lines geometry objects of a layer which are inside a given circular area.
static unsigned int TdkPickPolygons (TdkTheme *theme, TeLinearRing &ring, string &subquery, TdkObjectIdentifierList &lst, unsigned int n)
 Pick all the lines geometry objects of a layer which are inside a given circular area.
static bool TdkPickRasterValue (TeDecoderMemory *dec, TdkTheme *theme, TeProjection *viewProj, double x, double y, vector< double > &bands)
static void convertCoordsPC2LL (double &x, double &y, TeProjection *projection)
static void convertCoordsLL2PC (double &x, double &y, TeProjection *projection)
static TeBox TdkConvertBox (TeBox box, TeProjection *proj_from, TeProjection *proj_to)
static TeProjection * TdkCloneProjection (TeProjection *proj)
 Clone the given projection.
static double CalcLLDistanceInMeters (double xmin, double xmax, double ymin, double ymax, const string &datum="SAD69", TeProjection *proj=NULL)
 Calculates the LatLong distance in meters between 2 given coordinates.
static double calcDistance (double lat0, double lon0, double lat1, double lon1)
static TeBox TetrahedronBBox (const TeCoord2D &pt0, const TeCoord2D &pt1, const TeCoord2D &pt2, const TeCoord2D &pt3)
static bool isObjectIdentified (TdkObjectGID &gid)
 Returns true if the object is identified, otherwise returns false.
static bool isObjectSelected (TdkObjectGID &gid)
 Returns true if the object is selected, otherwise returns false.
static bool isAnySelectedObject ()
 Returns true if there's a selected object, otherwise returns false.
static bool isAnyIdentifiedObject ()

Static Protected Member Functions

static unsigned char * CreateRotationMask (int src_width, int src_height, int dst_width, int dst_height, int color_space, int data_type, double cos0, double sin0)


Detailed Description

Implements the processing service methods.


Member Function Documentation

double TdkProcessingService::calcLatLongDistanceInMeters ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
const string &  datum = "SAD69",
TeProjection *  proj = NULL 
) [static]

Returns the distance in meters.

Tecgraf - GIS development team

Tdk Framework

@(#) TdkProcessingService.cpp

void TdkProcessingService::convertBox ( double &  xmin,
double &  xmax,
double &  ymin,
double &  ymax,
TeProjection &  from,
TeProjection &  to 
) [static]

Converts the coordinates of the given box using the specified projections.

void TdkProcessingService::convertCoord2D ( double &  x,
double &  y,
TeProjection &  from,
TeProjection &  to 
) [static]

Converts the given coordinates using the specified projections.

TeProjection * TdkProcessingService::createSimpleLatLongProjection (  )  [static]

Create a new LatLong projection with default params.

TeProjection * TdkProcessingService::createSimpleUTMProjection ( double  lon0 = -45  )  [static]

Create a new UTM projection with default params.

TeProjection * TdkProcessingService::createProjection ( const TeProjectionParams &  params  )  [static]

Create a new LatLong projection with user params.

void TdkProcessingService::generateColorScheme ( std::vector< TeColor > &  ramps,
int  numColors,
std::vector< TeColor > &  colors 
) [static]

Generates a graduated color scale following a given set of color ramps and apply it to a legend vector.

Parameters:
ramps Vector with the sequence color ramps used to build the graduated color scale
numColors desired number of colors on the scale
colors resulting color scale

void TdkProcessingService::getColorPallete ( TdkColorPallete  pallete,
std::vector< TeColor > &  colors 
) [static]

Gets the color of a given pallete.

Parameters:
pallete Palette identificator
colors resulting color pallete

unsigned char * TdkProcessingService::flipVertical ( unsigned char *  data,
int  width,
int  height 
) [static]

Verticaly mirror the given image data.

This method returns in a newly allocated memory block the given image channel data upside down.

void TdkProcessingService::getAlphaMask ( int  width,
int  height,
unsigned char  mask_red,
unsigned char  mask_green,
unsigned char  mask_blue,
unsigned char *  red,
unsigned char *  green,
unsigned char *  blue,
unsigned char **  alpha 
) [static]

void TdkProcessingService::rotateRaster ( double  angle,
int  width,
int  height,
unsigned char *  red,
unsigned char *  green,
unsigned char *  blue,
int *  new_width,
int *  new_height,
unsigned char **  new_red,
unsigned char **  new_green,
unsigned char **  new_blue,
unsigned char **  alpha 
) [static]

void TdkProcessingService::convertRaster ( TeRaster *  raster,
TeRaster *  outRaster 
) [static]

TeRaster * TdkProcessingService::convertRasterProjection ( TeRaster *  inRaster,
TeProjection *  outProj 
) [static]

std::string TdkProcessingService::getFormatName ( TdkImageFormat  format  )  [static]

TdkImageFormatted * TdkProcessingService::convertImage ( TdkImageRGB image,
TdkImageFormat  format 
) [static]

vector< std::string > TdkProcessingService::operatorDisjoint ( TePointSet  p1,
TePointSet  p2 
) [static]

Check if coordinate p1 and coordinate p2 are disjoint -- returns a vector of objectIds.

vector< std::string > TdkProcessingService::operatorDisjoint ( TePointSet  p1,
TeLineSet  p2 
) [static]

vector< std::string > TdkProcessingService::operatorDisjoint ( TePointSet  p1,
TePolygonSet  p2 
) [static]

vector< std::string > TdkProcessingService::operatorDisjoint ( TeLineSet  p1,
TeLineSet  p2 
) [static]

vector< std::string > TdkProcessingService::operatorDisjoint ( TeLineSet  p1,
TePolygonSet  p2 
) [static]

vector< std::string > TdkProcessingService::operatorDisjoint ( TePolygonSet  p1,
TePolygonSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorTouches ( TePointSet  p1,
TeLineSet  p2 
) [static]

Check if object is touches another object -- returns a vector of objectIds.

std::vector< std::string > TdkProcessingService::operatorTouches ( TePointSet  p1,
TePolygonSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorTouches ( TeLineSet  p1,
TeLineSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorTouches ( TeLineSet  p1,
TePolygonSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorTouches ( TePolygonSet  p1,
TePolygonSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorCrosses ( TeLineSet  p1,
TeLineSet  p2 
) [static]

Check if object is crosses another object -- returns a vector of objectIds.

std::vector< std::string > TdkProcessingService::operatorCrosses ( TeLineSet  p1,
TePolygonSet  p2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TePointSet  pt1,
TePointSet  pt2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TePointSet  pt1,
TeLineSet  l2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TePointSet  pt1,
TePolygonSet  pl2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TeLineSet  l1,
TeLineSet  l2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TeLineSet  l1,
TePolygonSet  pl2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorWithin ( TePolygonSet  pl1,
TePolygonSet  pl2 
) [static]

static std::vector<std::string> TdkProcessingService::operatorOverlaps ( TeLineSet  l1,
TeLineSet  l2 
) [static]

Check if object overlaps another object -- returns a vector of objectIds.

static std::vector<std::string> TdkProcessingService::operatorOverlaps ( TePolygonSet  pl1,
TePolygonSet  pl2 
) [static]

bool TdkProcessingService::operatorIntersects ( TeCoord2D  c,
const TeBox &  b 
) [static]

Check if object 1 and object 2 intersects.

bool TdkProcessingService::operatorIntersects ( TePoint  p,
const TeBox &  b 
) [static]

bool TdkProcessingService::operatorIntersects ( TeBox  bx1,
const TeBox &  bx2 
) [static]

std::vector< std::string > TdkProcessingService::operatorEquals ( TePointSet  p1,
TePointSet  p2 
) [static]

Check if object 1 and object 2 are equal.

std::vector< std::string > TdkProcessingService::operatorEquals ( TeLineSet  l1,
TeLineSet  l2 
) [static]

std::vector< std::string > TdkProcessingService::operatorEquals ( TePolygonSet  p1,
TePolygonSet  p2 
) [static]

std::vector< std::string > TdkProcessingService::operatorCovered ( TeLineSet  l1,
TeLineSet  l2 
) [static]

Check if object 1 is covered by object 2.

std::vector< std::string > TdkProcessingService::operatorCovered ( TeLineSet  l,
TePolygonSet  pl 
) [static]

std::vector< std::string > TdkProcessingService::operatorCovered ( TePolygonSet  pl1,
TePolygonSet  pl2 
) [static]

void TdkProcessingService::TdkBuildTranslateMatrix ( TdkMathMatrix matrix,
double  tx,
double  ty,
double  tz 
) [static]

Builds a translation matrix.

void TdkProcessingService::TdkTranslate ( TePolygonSet &  polygonSet,
double  tx,
double  ty,
double  tz 
) [static]

Translates a given geometry set.

void TdkProcessingService::TdkTranslate ( TePolygon &  polygon,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TeLineSet &  lineSet,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TeLine2D &  line,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TePointSet &  pointSet,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TePoint &  point,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TeTextSet &  textSet,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TeText &  text,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkTranslate ( TeBox &  box,
double  tx,
double  ty,
double  tz 
) [static]

void TdkProcessingService::TdkBuildScaleMatrix ( TdkMathMatrix matrix,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

Builds a scaling matrix.

void TdkProcessingService::TdkScale ( TePolygonSet &  polygonSet,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

Scales a given geometry set.

void TdkProcessingService::TdkScale ( TePolygon &  polygon,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TeLineSet &  lineSet,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TeLine2D &  line,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TePointSet &  pointSet,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TePoint &  point,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TeTextSet &  textSet,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TeText &  text,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkScale ( TeBox &  box,
double  sx,
double  sy,
double  sz,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkBuildRotateMatrix ( TdkMathMatrix matrix,
double  angle,
const TeCoord2D &  coord 
) [static]

Builds a rotation matrix.

void TdkProcessingService::TdkRotate ( TePolygonSet &  polygonSet,
double  angle,
const TeCoord2D &  coord 
) [static]

Rotates a given geometry set.

void TdkProcessingService::TdkRotate ( TePolygon &  polygon,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TeLineSet &  lineSet,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TeLine2D &  line,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TePointSet &  pointSet,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TePoint &  point,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TeTextSet &  textSet,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TeText &  text,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkRotate ( TeBox &  box,
double  angle,
const TeCoord2D &  coord 
) [static]

void TdkProcessingService::TdkTransform ( TePolygonSet &  polygonSet,
TdkMathMatrix matrix 
) [static]

Applies a given transformation to a geometry set.

void TdkProcessingService::TdkTransform ( TePolygon &  polygon,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TeLineSet &  lineSet,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TeLine2D &  line,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TePointSet &  pointSet,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TePoint &  point,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TeTextSet &  textSet,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TeText &  text,
TdkMathMatrix matrix 
) [static]

void TdkProcessingService::TdkTransform ( TeBox &  box,
TdkMathMatrix matrix 
) [static]

TePolygonSet TdkProcessingService::createBufferRegion ( TdkObjectGID objGID,
double  distance 
) [static]

Parameters:
objGID GID of the TdkObject from which the buffer is to be created
distance distance from the object to be used as the buffer limit

bool TdkProcessingService::intersectsPolygon ( TdkObjectGID objGID,
TePolygon &  buffer 
) [static]

Checks if a polygon buffer intersects the geometry of a TdkObject.

Parameters:
buffer a polygon representing the buffer to be checked
objGID GID of the TdkObject to be checked

bool TdkProcessingService::intersectsObject ( TdkObjectGID objGID1,
TdkObjectGID objGID2,
double  toleranceDistance = 0 
) [static]

Checks if the geometry of a TdkObject intersects the geometry of another TdkObject.

Parameters:
objGID1 GID of the first TdkObject to be checked
objGID2 GID of the second TdkObject to be checked
toleranceDistance tolerance to be used for checking for an intersection

int TdkProcessingService::pickNearestByPoint ( vector< TdkObjectGID * > &  objects,
TePoint &  point,
double  toleranceDistance 
) [static]

Returns the nearest object of a list with respect to a given point, as long as it is within the tolerance distance.

Parameters:
objects vector of object GIDs
point point of interest
toleranceDistance tolerance to be used for finding a matching object

int TdkProcessingService::pickNearestByPoint ( TdkObjectGIDMap objects,
TePoint &  point,
double  toleranceDistance 
) [static]

int TdkProcessingService::pickByPoint ( vector< TdkObjectGID * > &  objects,
TePoint &  point,
double  toleranceDistance = 0 
) [static]

Returns the first object of a list that is located within a given tolerance distance from a point.

Parameters:
objects vector of object GIDs
point point of interest
toleranceDistance tolerance to be used for finding a matching object

int TdkProcessingService::pickByPoint ( TdkObjectGIDMap objects,
TePoint &  point,
double  toleranceDistance = 0 
) [static]

int TdkProcessingService::pickByObject ( vector< TdkObjectGID * > &  objects,
TdkObjectGID obj,
double  toleranceDistance = 0 
) [static]

Returns the first object of a list that is located within a given tolerance distance from another object.

Parameters:
objects vector of object GIDs
obj GID of the object of interest
toleranceDistance tolerance to be used for finding a matching object

int TdkProcessingService::pickByObject ( TdkObjectGIDMap objects,
TdkObjectGID obj,
double  toleranceDistance = 0 
) [static]

double TdkProcessingService::getLineFraction ( TeLineSet &  lines,
TePoint &  point 
) [static]

Parameters:
lines a lines geometry structure
point a point geometry structure, which may not be located on the lines

double TdkProcessingService::getLineFraction ( TdkObjectGID objGID,
TePoint &  point 
) [static]

Parameters:
objGID GID of the object of interest
point a point geometry structure, which may not be located on the provided object

bool TdkProcessingService::getLineFractionAndAzimuth ( TeLineSet &  lines,
TePoint &  point,
double &  fraction,
double &  azimuth 
) [static]

Parameters:
lines a lines geometry structure
point a point geometry structure, which may not be located on the lines
fraction the resulting percentage fraction
azimuth the resulting azimuth of the corresponding line segment

bool TdkProcessingService::getLineFractionAndAzimuth ( TdkObjectGID objGID,
TePoint &  point,
double &  fraction,
double &  azimuth 
) [static]

Parameters:
objGID GID of the object of interest
point a point geometry structure, which may not be located on the provided object
fraction the resulting percentage fraction
azimuth the resulting azimuth of the corresponding line segment

unsigned int TdkProcessingService::TdkPick ( TdkTheme theme,
TeLinearRing &  ring,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n 
) [static]

This function returns a list of ids from all given theme geographic objects which have intersection with the given rectangle area.

Parameters:
theme theme from where the geometry objects will be picked
x0,y0,x1,y1 rectangle area
geomLst Geometry id list of selected objects.
n maximum number of objects to be picked, if it is less or equal to zero there isn't a maximun limit.

unsigned int TdkProcessingService::TdkPick ( TdkTheme theme,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

unsigned int TdkProcessingService::TdkPick ( TdkTheme theme,
double  xc,
double  yc,
double  r,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

TdkThemeObjects * TdkProcessingService::TdkPickCircle ( TdkTheme theme,
double  xc,
double  yc,
double  r,
unsigned int  n = 0 
) [static]

This function returns a list of ids from all given theme geographic objects which have intersection with the given circle area.

Parameters:
theme theme from where the geometry objects will be picked
xc,yc,r circle area.
n maximum number of objects to be picked, if it is less or equal to zero there isn't a maximun limit.

TdkThemeObjects * TdkProcessingService::TdkPickTheme ( TdkTheme theme,
double  x0,
double  y0,
double  x1,
double  y1,
unsigned int  n = 0 
) [static]

TdkThemeObjects * TdkProcessingService::TdkPickTheme ( TdkTheme theme,
TeLinearRing &  ring,
unsigned int  n = 0 
) [static]

This function returns a list of ids from all given theme geographic objects which have intersection with the given ring area.

Parameters:
theme theme from where the geometry objects will be picked
ring ring area.
n maximum number of objects to be picked, if it is less or equal to zero there isn't a maximun limit.

unsigned int TdkProcessingService::TdkPickPolygons ( TdkTheme theme,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

Pick all the lines geometry objects of a layer which are inside a given rectangle area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

unsigned int TdkProcessingService::TdkPickLines ( TdkTheme theme,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
string &  subquery,
TdkObjectIdentifierList objLst,
unsigned int  n = 0 
) [static]

Pick all the lines geometry objects of a layer which are inside a given rectangle area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

unsigned int TdkProcessingService::TdkPickPoints ( TdkTheme theme,
double  xmin,
double  ymin,
double  xmax,
double  ymax,
string &  subquery,
TdkObjectIdentifierList objLst,
unsigned int  n = 0 
) [static]

Pick all the point geometry objects of a layer which are inside a given rectangle area.

Parameters:
layer layer where are the geometry objects to be picked
xmin,ymin,xmax,ymax rectangle area
subquery layer objects filter, only the objects contained on this subquery will be catched.
objLst id list where the picked objects will be inserted
n if > 0, limits the number of object of the objects list to a maximun of n.

unsigned int TdkProcessingService::TdkPickPolygons ( TdkTheme theme,
double  xc,
double  yc,
double  r,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

Pick all the lines geometry objects of a layer which are inside a given rectangle area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

unsigned int TdkProcessingService::TdkPickLines ( TdkTheme theme,
double  xc,
double  yc,
double  r,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

Pick all the lines geometry objects of a layer which are inside a given rectangle area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

unsigned int TdkProcessingService::TdkPickPoints ( TdkTheme theme,
double  xc,
double  yc,
double  r,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

Pick all the point geometry objects of a layer which are inside a given circular area.

Parameters:
layer layer where are the geometry objects to be picked
xc,yc,r rectangle area
subquery layer objects filter, only the objects contained on this subquery will be catched.
lst id list where the picked objects will be inserted
n if > 0, limits the number of object of the objects list to a maximun of n.

unsigned int TdkProcessingService::TdkPickPoints ( TdkTheme theme,
TeLinearRing &  ring,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n = 0 
) [static]

Pick all the point geometry objects of a layer which are inside a given ring area.

Parameters:
layer layer where are the geometry objects to be picked
ring ring area
subquery layer objects filter, only the objects contained on this subquery will be catched.
lst id list where the picked objects will be inserted
n if > 0, limits the number of object of the objects list to a maximun of n.

unsigned int TdkProcessingService::TdkPickLines ( TdkTheme theme,
TeLinearRing &  ring,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n 
) [static]

Pick all the lines geometry objects of a layer which are inside a given circular area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

unsigned int TdkProcessingService::TdkPickPolygons ( TdkTheme theme,
TeLinearRing &  ring,
string &  subquery,
TdkObjectIdentifierList lst,
unsigned int  n 
) [static]

Pick all the lines geometry objects of a layer which are inside a given circular area.

This function does similar to the TePickPoints function, but instead of points it gets the layer lines.

See also:
TePickPoints

bool TdkProcessingService::TdkPickRasterValue ( TeDecoderMemory *  dec,
TdkTheme theme,
TeProjection *  viewProj,
double  x,
double  y,
vector< double > &  bands 
) [static]

Gets the bands of a raster. Given a memory area, the function returns a vector with three bands from colors.

Parameters:
Decoder to a raster stored.
Desired theme that the image is contained.
Value of axle x..
Value of axle y.
Reference for a vector of bands that will be filled.
Returns:
Returns fale if to occur some error.

void TdkProcessingService::convertCoordsPC2LL ( double &  x,
double &  y,
TeProjection *  projection 
) [static]

void TdkProcessingService::convertCoordsLL2PC ( double &  x,
double &  y,
TeProjection *  projection 
) [static]

TeBox TdkProcessingService::TdkConvertBox ( TeBox  box,
TeProjection *  proj_from,
TeProjection *  proj_to 
) [static]

TeProjection * TdkProcessingService::TdkCloneProjection ( TeProjection *  proj  )  [static]

Clone the given projection.

Create a new instance of class TeProjection that is exactly the same as the given projection.

double TdkProcessingService::CalcLLDistanceInMeters ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
const string &  datum = "SAD69",
TeProjection *  proj = NULL 
) [static]

Calculates the LatLong distance in meters between 2 given coordinates.

Calculates the LatLong distance in meters bewteen 2 given coordinates created using a generic Projection. If no Projection param is given, we assume the given coordinates to be already in LatLong. If no datum is given we assume a "SAD69" value. Params are given in Degrees.

double TdkProcessingService::calcDistance ( double  lat0,
double  lon0,
double  lat1,
double  lon1 
) [static]

TeBox TdkProcessingService::TetrahedronBBox ( const TeCoord2D &  pt0,
const TeCoord2D &  pt1,
const TeCoord2D &  pt2,
const TeCoord2D &  pt3 
) [static]

bool TdkProcessingService::isObjectIdentified ( TdkObjectGID gid  )  [static]

Returns true if the object is identified, otherwise returns false.

Parameters:
obj GID of the object of interest

bool TdkProcessingService::isObjectSelected ( TdkObjectGID gid  )  [static]

Returns true if the object is selected, otherwise returns false.

Parameters:
obj GID of the object of interest

bool TdkProcessingService::isAnySelectedObject (  )  [static]

Returns true if there's a selected object, otherwise returns false.

bool TdkProcessingService::isAnyIdentifiedObject (  )  [static]

unsigned char * TdkProcessingService::CreateRotationMask ( int  src_width,
int  src_height,
int  dst_width,
int  dst_height,
int  color_space,
int  data_type,
double  cos0,
double  sin0 
) [static, protected]


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:51 2007 for TDK by  doxygen 1.5.2