#include <TdkDefaultGraphicalService.h>
Inheritance diagram for TdkDefaultGraphicalService:
Public Member Functions | |
TdkDefaultGraphicalService () | |
Default constructor. | |
virtual | ~TdkDefaultGraphicalService () |
Virtual destructor. | |
virtual void | initialize () |
Method called in the applicaiton initialization. | |
virtual void | finalize () |
Method called when the applicaiton is closing. | |
virtual void | drawView (TeView &view, TdkCanvas &canvas, int buffer=TdkCanvas::cbrBack, double angle=0., TdkMathMatrix *matrix=NULL, bool refreshTheme=true) |
virtual void | drawView (TeView &view, TdkImageRGB &image, TeBox &world, TeColor &backgroundColor) |
virtual void | drawViewTree (TeViewTree *viewTree, TdkCanvas *canvas, int buffer=TdkCanvas::cbrBack, double angle=0., TdkMathMatrix *matrix=NULL, bool refreshTheme=true) |
< Draws a view tree in a canvas. | |
virtual void | drawTheme (TdkTheme &theme, TdkCanvas &canvas, TeProjection &projection, double angle, TdkMathMatrix *matrix) |
virtual void | drawTheme (TdkTheme &theme, TdkImageRGB &image, TeProjection &projection, TeBox &world, TeColor &backgroundColor) |
virtual void | drawThemeObjects (TdkThemeObjects &tobjs, int color_red, int color_green, int color_blue, double world_x1, double world_y1, double world_x2, double world_y2, TeProjection &projection, int image_width, int image_height, int backcolor_red, int backcolor_green, int backcolor_blue, unsigned char *red, unsigned char *green, unsigned char *blue) |
virtual TeDecoderMemory * | TdkGetLayerRaster (TdkLayer *layer, const TeBox &box, double scale) |
virtual long int * | createCanvasPalette (TeRasterParams &par) |
virtual TdkImageRepType | getRasterColorModel (TeRasterParams &par) |
virtual void | drawRasterFile (TeRaster *raster, TdkCanvas *canvas, double angle, TdkMathMatrix *matrix, bool useMask, unsigned char maskRed, unsigned char maskGreen, unsigned char maskBlue) |
virtual TdkImageFormatted * | createImage (TdkCanvas *canvas, TdkImageFormat format) |
virtual void | wc2pixel (double &pX, double &pY, double wcX, double wcY, int width, int height, double wcXmin, double wcYmin, double wcXmax, double wcYmax) |
virtual void | pixel2wc (double &wcX, double &wcY, double pX, double pY, int width, int height, double wcXmin, double wcYmin, double wcXmax, double wcYmax) |
virtual void | pickBox (double pixelX, double pixelY, int width, int height, double wcXmin, double wcYmin, double wcXmax, double wcYmax, double &xmin, double &ymin, double &xmax, double &ymax, int tollerance=2) |
virtual double | getPixelSize (TdkCanvas *canvas, double scale) |
virtual double | getScale (TdkCanvas *canvas, double pixelSize) |
virtual void | drawPoint (TdkPointStyle &style, TdkCanvas &canvas, TePoint &point, TeColor &externColor, double externSizeFactor) |
TODO: Complete mehtod documentation. | |
virtual void | drawPointSample (TdkPointStyle &style, TdkCanvas &canvas, int x, int y, TeColor &externColor) |
TODO: Complete method documentation. | |
virtual void | drawPolygonContour (TdkPolygonStyle &style, TdkCanvas &canvas, TePolygon &polygon, TeColor &externContournColor, double externSizeFactor) |
TODO: Complete method documentation. | |
virtual void | drawPolygonContourSample (TdkPolygonStyle &style, TdkCanvas &canvas, int x, int y, TeColor &externContournColor) |
TODO: Complete method documentation. | |
virtual void | drawPolygon (TdkPolygonStyle &style, TdkCanvas &canvas, TePolygon &polygon, TeColor &externColor, TeColor &externContourColor, double externSizeFactor) |
TODO: Complete method documentation. | |
virtual void | drawPolygonSample (TdkPolygonStyle &style, TdkCanvas &canvas, int x, int y, TeColor &externColor, TeColor &externContourColor) |
TODO: Complete method documentation. | |
virtual void | drawLineVertex (TdkLineStyle &style, TdkCanvas *canvas, TeLine2D &line, TeColor &externVertexColor, double externSizeFactor) |
TODO: Document this method. | |
virtual void | drawLine (TdkLineStyle &style, TdkCanvas *canvas, TeLine2D &line, TeColor &externColor, double externWidthFactor) |
TODO: Document this method. | |
virtual void | drawLineSample (TdkLineStyle &style, TdkCanvas *canvas, int x, int y, TeColor &externColor) |
TODO: Document this method. | |
virtual void | drawLineSampleContour (TdkLineStyle &style, TdkCanvas *canvas, int x, int y, TeColor &externColor) |
TODO: Document this method. | |
virtual void | drawText (TdkTextStyle &style, TdkCanvas &canvas, TeText &text, TeColor &externColor, double externWidthFactor) |
virtual void | drawTextSample (TdkTextStyle &style, TdkCanvas &canvas, int x, int y, TeColor &externColor) |
virtual void | drawGeometry (TePoint &geom, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometry (TeLine2D &geom, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometry (TePolygon &geom, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometry (TeText &geom, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometrySet (TePointSet &geomSet, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometrySet (TeLineSet &geomSet, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometrySet (TePolygonSet &geomSet, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometrySet (TeTextSet &geomSet, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
Draws a geometries set in a given canvas. | |
virtual void | drawGeometryVector (std::vector< TePolygon * > &geoms, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometryVector (std::vector< TePoint * > &geoms, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometryVector (std::vector< TeLine2D * > &geoms, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
virtual void | drawGeometryVector (std::vector< TeText * > &geoms, TdkCanvas *canvas, double size_factor, TeLegendEntry &legendEntry, const TeBox &drawArea) |
Draws geometries in a given canvas. | |
virtual void | drawMultiGeometry (TeMultiGeometry &geometries, TdkCanvas *canvas, double size_factor, TdkMathMatrix *matrix, TeLegendEntry &legendEntry, const TeBox &drawArea) |
Draws geometries in a given canvas. | |
virtual void | drawMultiGeometry (TeMultiGeometry &geometries, TdkCanvas *canvas, double size_factor, TdkMathMatrix *matrix, TdkTheme *theme, const TeBox &drawArea) |
virtual void | setPolygonStyle (TdkVisual *style, TdkCanvas *cv) |
virtual void | setLineStyle (TdkVisual *style, TdkCanvas *cv) |
virtual void | setPointStyle (TdkVisual *style, TdkCanvas *cv) |
virtual void | setTextStyle (TdkVisual *style, TdkCanvas *cv) |
virtual void | drawObjectsIdentification (TeViewTree *viewtree, TdkCanvas *canvas) |
virtual void | drawObjectIdentification (TeCoord2D c, string text, TdkCanvas *canvas) |
virtual void | drawSelectedObjects (TeViewTree *viewtree, TdkCanvas *canvas) |
virtual void | drawLegend (TeViewTree *viewTree, TdkCanvas *canvas, double wx0, double wy0, double wx1, double wy1, bool multipleColumns, TdkViewNodeMap *nodeMap=NULL) |
Draws a legend (related to a TerraLib view) in a canvas. | |
virtual void | drawLegend (TdkViewNodeMap &nodeMap, TdkCanvas *canvas, double wx0, double wy0, double wx1, double wy1, bool multipleColumns) |
Draws a legend (related to a TdkViewNodeMap) in a canvas. | |
Protected Member Functions | |
template<class T> | |
void | drawGeometrySet (T &sourceGeomSet, TdkCanvas *canvas, double size_factor, TdkMathMatrix *matrix, TeLegendEntry &legendEntry, const TeBox &drawArea) |
template<class T> | |
void | drawGeometrySet (T &sourceGeomSet, TdkCanvas *canvas, double size_factor, TdkMathMatrix *matrix, TdkTheme *theme, TeBox box) |
template<class T> | |
void | drawGeometrySet (T &geomSet, TdkCanvas *canvas, double size_factor, TdkTheme *theme, TeBox box) |
void | drawSelectedObjects (TdkObjectIdentifierList &tobjs, TdkTheme &drawTheme, TdkCanvas *canvas, double &size_factor) |
Draws the theme objects in a canvas. | |
virtual void | drawThemeObjects (TdkThemeObjects &tobjs, const TeColor &color, TdkCanvas *cv) |
virtual void | drawEntryTitle (TdkCanvas *canvas, double wx, double wy, double scale, string title, bool bold=false) |
virtual void | drawPointSymb (TdkCanvas *canvas, double wx, double wy, double scale, TdkVisual *style) |
virtual void | drawLineSymb (TdkCanvas *canvas, double wx, double wy, double scale, TdkVisual *style) |
virtual void | drawPolySymb (TdkCanvas *canvas, double wx, double wy, double scale, TdkVisual *style) |
virtual void | drawTextSymb (TdkCanvas *canvas, double wx, double wy, double scale, TdkVisual *style) |
virtual void | drawGroupSymb (TdkCanvas *canvas, double wx, double wy, double scale) |
virtual void | drawThemeSymb (TdkCanvas *canvas, double wx, double wy, double scale, TeGeomRepVisualMap &style, int type) |
virtual void | drawTreeLegend (double &baseX, double dx, double &y, double minY, double maxY, TeViewTree *viewTree, TdkCanvas *canvas, bool multipleColumns, double scale, TdkViewNodeMap *nodeMap=NULL) |
virtual void | drawTreeLegend (double &baseX, double dx, double &y, double minY, double maxY, TdkViewNodeMap &nodeMap, TdkCanvas *canvas, bool multipleColumns, double scale) |
virtual TdkAbstractPointStyleRenderer * | getPointStyleRenderer (int subtype) |
virtual TdkAbstractPolygonStyleRenderer * | getPolygonStyleRenderer (int subtype) |
virtual TdkAbstractLineStyleRenderer * | getLineStyleRenderer (int subtype) |
virtual void | registerStyleRenderers () |
Register the style renderers to be used in draw mthods. | |
virtual void | registerPointStyleRenderers () |
virtual void | registerPolygonStyleRenderers () |
virtual void | registerLineStyleRenderers () |
virtual void | registerTextStyleRenderers () |
virtual void | unregisterStyleRenderers () |
template<class K, class V> | |
void | unregisterStyleRenderer (std::map< K, V * > &styleRendererMap) |
Protected Attributes | |
std::map< int, TdkAbstractPointStyleRenderer * > | pointStyleRendererMap |
std::map< int, TdkAbstractPolygonStyleRenderer * > | polygonStyleRendererMap |
std::map< int, TdkAbstractLineStyleRenderer * > | lineStyleRendererMap |
std::map< int, TdkAbstractTextStyleRenderer * > | textStyleRendererMap |
TdkDefaultGraphicalService::TdkDefaultGraphicalService | ( | ) |
Default constructor.
TdkDefaultGraphicalService::~TdkDefaultGraphicalService | ( | ) | [virtual] |
Virtual destructor.
void TdkDefaultGraphicalService::initialize | ( | ) | [virtual] |
void TdkDefaultGraphicalService::finalize | ( | ) | [virtual] |
void TdkDefaultGraphicalService::drawView | ( | TeView & | view, | |
TdkCanvas & | canvas, | |||
int | buffer = TdkCanvas::cbrBack , |
|||
double | angle = 0. , |
|||
TdkMathMatrix * | matrix = NULL , |
|||
bool | refreshTheme = true | |||
) | [virtual] |
Draws a view in a canvas. Draws in the canvas the view themes that are visible with the given transformation in the given buffer.
view | The view to draw. | |
canvas | The canvas. | |
buffer | The canvas buffer where to draw. | |
angle | The angle to draw a rotated image. | |
matrix | The transformation matrix that will be applied to the drawing. | |
refreshTheme | Whether the canvas should be refreshed after each theme is drawn. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawView | ( | TeView & | view, | |
TdkImageRGB & | image, | |||
TeBox & | world, | |||
TeColor & | backgroundColor | |||
) | [virtual] |
Draws a view in a RGB image. Creates a canvas with the given rgb image and configures this canvas with the view projection, the back color and the world area. Finally it draws in the canvas the view themes that are visible, filling the rgb buffers.
view | View to draw. | |
image | The image to draw to. | |
world | The area to draw in world coordinates. | |
backgroundColor | The back color of the output image. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawViewTree | ( | TeViewTree * | viewTree, | |
TdkCanvas * | canvas, | |||
int | buffer = TdkCanvas::cbrBack , |
|||
double | angle = 0. , |
|||
TdkMathMatrix * | matrix = NULL , |
|||
bool | refreshTheme = true | |||
) | [virtual] |
< Draws a view tree in a canvas.
Draws the view tree nodes that were setting as visible.
vtree | The view tree to draw. | |
cv | The output canvas. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawTheme | ( | TdkTheme & | theme, | |
TdkCanvas & | canvas, | |||
TeProjection & | projection, | |||
double | angle, | |||
TdkMathMatrix * | matrix | |||
) | [virtual] |
Draws the theme in a canvas.
theme | Theme to draw. | |
canvas | The canvas. | |
projection | The view projection. | |
angle | The angle to draw a rotated image. | |
matrix | The transformation matrix that will be applied to the drawing. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawTheme | ( | TdkTheme & | theme, | |
TdkImageRGB & | image, | |||
TeProjection & | projection, | |||
TeBox & | world, | |||
TeColor & | backgroundColor | |||
) | [virtual] |
Draws a theme in a RGB image. Creates a canvas with the given rgb image and configures this canvas with the given projection, the back color and the world area. Finally it draws in the canvas the theme, filling the image.
theme | Theme to draw. | |
image | The image to draw to. | |
projection | The view projection. | |
world | The area to draw in world coordinates. | |
backgroundColor | The back color of the output image. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawThemeObjects | ( | TdkThemeObjects & | tobjs, | |
int | color_red, | |||
int | color_green, | |||
int | color_blue, | |||
double | world_x1, | |||
double | world_y1, | |||
double | world_x2, | |||
double | world_y2, | |||
TeProjection & | projection, | |||
int | image_width, | |||
int | image_height, | |||
int | backcolor_red, | |||
int | backcolor_green, | |||
int | backcolor_blue, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue | |||
) | [virtual] |
Draws the theme objects in RGB buffers. Creates a canvas with the given rgb buffers and configures this canvas with the projection, the back color and the world area. Finally it draws in the canvas the theme objects, filling the rgb buffers.
tobjs | The theme objects to draw | |
color_red,color_green,color_blue | The color to draw the theme objects. | |
world_x1,world_y1,world_x2,world_y2 | The area to draw in world coordinates. | |
projection | The view projection. | |
image_width,image_height | The width and height of the output image. | |
backcolor_red,backcolor_green,backcolor_blue | The back color of the output image. | |
red,green,blue | The output RGB buffers. |
Implements TdkAbstractGraphicalService.
TeDecoderMemory * TdkDefaultGraphicalService::TdkGetLayerRaster | ( | TdkLayer * | layer, | |
const TeBox & | box, | |||
double | scale | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
long int * TdkDefaultGraphicalService::createCanvasPalette | ( | TeRasterParams & | par | ) | [virtual] |
Returns a palette at the TdkCanvas format for a raster with the given raster parameters.
Implements TdkAbstractGraphicalService.
TdkImageRepType TdkDefaultGraphicalService::getRasterColorModel | ( | TeRasterParams & | par | ) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawRasterFile | ( | TeRaster * | raster, | |
TdkCanvas * | canvas, | |||
double | angle, | |||
TdkMathMatrix * | matrix, | |||
bool | useMask, | |||
unsigned char | maskRed, | |||
unsigned char | maskGreen, | |||
unsigned char | maskBlue | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
TdkImageFormatted * TdkDefaultGraphicalService::createImage | ( | TdkCanvas * | canvas, | |
TdkImageFormat | format | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::wc2pixel | ( | double & | pX, | |
double & | pY, | |||
double | wcX, | |||
double | wcY, | |||
int | width, | |||
int | height, | |||
double | wcXmin, | |||
double | wcYmin, | |||
double | wcXmax, | |||
double | wcYmax | |||
) | [virtual] |
Transform the point coordinates from world coordinates to pixel. Given a world canvas point coordinate, the function returns the same point in pixel coordinate.
Reference | to X pixel coordinate. | |
Reference | to Y pixel coordinate. | |
Value | of X world coordinate. | |
Value | of Y world coordinate. | |
Value | of width. | |
Value | of height. | |
Value | of x min world coordinate bounding box. | |
Value | of y min world coordinate bounding box. | |
Value | of x max world coordinate bounding box. | |
Value | of y max world coordinate bounding box. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::pixel2wc | ( | double & | wcX, | |
double & | wcY, | |||
double | pX, | |||
double | pY, | |||
int | width, | |||
int | height, | |||
double | wcXmin, | |||
double | wcYmin, | |||
double | wcXmax, | |||
double | wcYmax | |||
) | [virtual] |
Transform the point coordinates from pixel to world coordinates. Given a pixel point coordinate, the function returns the same point in world canvas coordinate.
Reference | to X world coordinate. | |
Reference | to Y world coordinate. | |
Value | of X pixel coordinate. | |
Value | of Y pixel coordinate. | |
Value | of width. | |
Value | of height. | |
Value | of x min world coordinate bounding box. | |
Value | of y min world coordinate bounding box. | |
Value | of x max world coordinate bounding box. | |
Value | of y max world coordinate bounding box. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::pickBox | ( | double | pixelX, | |
double | pixelY, | |||
int | width, | |||
int | height, | |||
double | wcXmin, | |||
double | wcYmin, | |||
double | wcXmax, | |||
double | wcYmax, | |||
double & | xmin, | |||
double & | ymin, | |||
double & | xmax, | |||
double & | ymax, | |||
int | tollerance = 2 | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
double TdkDefaultGraphicalService::getPixelSize | ( | TdkCanvas * | canvas, | |
double | scale | |||
) | [virtual] |
TODO: Complete method documentation Returns the pixel size for a given scale in the projection units (using as error level in multiresolution)
Implements TdkAbstractGraphicalService.
double TdkDefaultGraphicalService::getScale | ( | TdkCanvas * | canvas, | |
double | pixelSize | |||
) | [virtual] |
TODO: Complete mehtod documentation Returns the canvas scale to a given pixel size
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawPoint | ( | TdkPointStyle & | style, | |
TdkCanvas & | canvas, | |||
TePoint & | point, | |||
TeColor & | externColor, | |||
double | externSizeFactor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawPointSample | ( | TdkPointStyle & | style, | |
TdkCanvas & | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externColor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawPolygonContour | ( | TdkPolygonStyle & | style, | |
TdkCanvas & | canvas, | |||
TePolygon & | polygon, | |||
TeColor & | externContournColor, | |||
double | externSizeFactor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawPolygonContourSample | ( | TdkPolygonStyle & | style, | |
TdkCanvas & | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externContournColor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawPolygon | ( | TdkPolygonStyle & | style, | |
TdkCanvas & | canvas, | |||
TePolygon & | polygon, | |||
TeColor & | externColor, | |||
TeColor & | externContourColor, | |||
double | externSizeFactor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawPolygonSample | ( | TdkPolygonStyle & | style, | |
TdkCanvas & | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externColor, | |||
TeColor & | externContourColor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawLineVertex | ( | TdkLineStyle & | style, | |
TdkCanvas * | canvas, | |||
TeLine2D & | line, | |||
TeColor & | externVertexColor, | |||
double | externSizeFactor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawLine | ( | TdkLineStyle & | style, | |
TdkCanvas * | canvas, | |||
TeLine2D & | line, | |||
TeColor & | externColor, | |||
double | externWidthFactor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawLineSample | ( | TdkLineStyle & | style, | |
TdkCanvas * | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externColor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawLineSampleContour | ( | TdkLineStyle & | style, | |
TdkCanvas * | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externColor | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawText | ( | TdkTextStyle & | style, | |
TdkCanvas & | canvas, | |||
TeText & | text, | |||
TeColor & | externColor, | |||
double | externWidthFactor | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawTextSample | ( | TdkTextStyle & | style, | |
TdkCanvas & | canvas, | |||
int | x, | |||
int | y, | |||
TeColor & | externColor | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometry | ( | TePoint & | geom, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometry | ( | TeLine2D & | geom, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometry | ( | TePolygon & | geom, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometry | ( | TeText & | geom, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometrySet | ( | TePointSet & | geomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometrySet | ( | TeLineSet & | geomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometrySet | ( | TePolygonSet & | geomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometrySet | ( | TeTextSet & | geomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawGeometryVector | ( | std::vector< TePolygon * > & | geoms, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Draws geometries in a given canvas.
geoms | The geometries set in data projection. | |
canvas | The output canvas. | |
size_factor | The size factor. | |
legendEntry | The objects styles. | |
drawArea | The draw area in data projection. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometryVector | ( | std::vector< TePoint * > & | geoms, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometryVector | ( | std::vector< TeLine2D * > & | geoms, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometryVector | ( | std::vector< TeText * > & | geoms, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
void TdkDefaultGraphicalService::drawMultiGeometry | ( | TeMultiGeometry & | geometries, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TdkMathMatrix * | matrix, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Draws geometries in a given canvas.
Draws geometries in a given canvas.
geometries | The geometries in data projection. | |
canvas | The output canvas. | |
size_factor | The size factor. | |
matrix | The transformation matrix. | |
legendEntry | The style to draw all geometries. | |
drawArea | The draw area in data projection. |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawMultiGeometry | ( | TeMultiGeometry & | geometries, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TdkMathMatrix * | matrix, | |||
TdkTheme * | theme, | |||
const TeBox & | drawArea | |||
) | [virtual] |
Draws geometries in a given canvas.
geometries | The geometries in data projection. | |
canvas | The output canvas. | |
size_factor | The size factor. | |
matrix | The transformation matrix. | |
theme | The theme to get the objects styles. | |
drawArea | The draw area in data projection. |
Implements TdkAbstractGraphicalService.
Implements TdkAbstractGraphicalService.
Implements TdkAbstractGraphicalService.
Implements TdkAbstractGraphicalService.
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawObjectsIdentification | ( | TeViewTree * | viewtree, | |
TdkCanvas * | canvas | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawObjectIdentification | ( | TeCoord2D | c, | |
string | text, | |||
TdkCanvas * | canvas | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawSelectedObjects | ( | TeViewTree * | viewtree, | |
TdkCanvas * | canvas | |||
) | [virtual] |
Implements TdkAbstractGraphicalService.
void TdkDefaultGraphicalService::drawGeometrySet | ( | T & | sourceGeomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TdkMathMatrix * | matrix, | |||
TeLegendEntry & | legendEntry, | |||
const TeBox & | drawArea | |||
) | [inline, protected] |
void TdkDefaultGraphicalService::drawGeometrySet | ( | T & | sourceGeomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TdkMathMatrix * | matrix, | |||
TdkTheme * | theme, | |||
TeBox | box | |||
) | [inline, protected] |
void TdkDefaultGraphicalService::drawGeometrySet | ( | T & | geomSet, | |
TdkCanvas * | canvas, | |||
double | size_factor, | |||
TdkTheme * | theme, | |||
TeBox | box | |||
) | [inline, protected] |
void TdkDefaultGraphicalService::drawSelectedObjects | ( | TdkObjectIdentifierList & | tobjs, | |
TdkTheme & | drawTheme, | |||
TdkCanvas * | canvas, | |||
double & | size_factor | |||
) | [protected] |
Draws the theme objects in a canvas.
void TdkDefaultGraphicalService::drawThemeObjects | ( | TdkThemeObjects & | tobjs, | |
const TeColor & | color, | |||
TdkCanvas * | cv | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawEntryTitle | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
string | title, | |||
bool | bold = false | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawPointSymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
TdkVisual * | style | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawLineSymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
TdkVisual * | style | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawPolySymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
TdkVisual * | style | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawTextSymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
TdkVisual * | style | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawGroupSymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawThemeSymb | ( | TdkCanvas * | canvas, | |
double | wx, | |||
double | wy, | |||
double | scale, | |||
TeGeomRepVisualMap & | style, | |||
int | type | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawTreeLegend | ( | double & | baseX, | |
double | dx, | |||
double & | y, | |||
double | minY, | |||
double | maxY, | |||
TeViewTree * | viewTree, | |||
TdkCanvas * | canvas, | |||
bool | multipleColumns, | |||
double | scale, | |||
TdkViewNodeMap * | nodeMap = NULL | |||
) | [protected, virtual] |
void TdkDefaultGraphicalService::drawTreeLegend | ( | double & | baseX, | |
double | dx, | |||
double & | y, | |||
double | minY, | |||
double | maxY, | |||
TdkViewNodeMap & | nodeMap, | |||
TdkCanvas * | canvas, | |||
bool | multipleColumns, | |||
double | scale | |||
) | [protected, virtual] |
TdkAbstractPointStyleRenderer * TdkDefaultGraphicalService::getPointStyleRenderer | ( | int | subtype | ) | [protected, virtual] |
TdkAbstractPolygonStyleRenderer * TdkDefaultGraphicalService::getPolygonStyleRenderer | ( | int | subtype | ) | [protected, virtual] |
TdkAbstractLineStyleRenderer * TdkDefaultGraphicalService::getLineStyleRenderer | ( | int | subtype | ) | [protected, virtual] |
void TdkDefaultGraphicalService::registerStyleRenderers | ( | ) | [protected, virtual] |
Register the style renderers to be used in draw mthods.
void TdkDefaultGraphicalService::registerPointStyleRenderers | ( | ) | [protected, virtual] |
void TdkDefaultGraphicalService::registerPolygonStyleRenderers | ( | ) | [protected, virtual] |
void TdkDefaultGraphicalService::registerLineStyleRenderers | ( | ) | [protected, virtual] |
void TdkDefaultGraphicalService::registerTextStyleRenderers | ( | ) | [protected, virtual] |
void TdkDefaultGraphicalService::unregisterStyleRenderers | ( | ) | [protected, virtual] |
void TdkDefaultGraphicalService::unregisterStyleRenderer | ( | std::map< K, V * > & | styleRendererMap | ) | [inline, protected] |
std::map<int,TdkAbstractPointStyleRenderer*> TdkDefaultGraphicalService::pointStyleRendererMap [protected] |
std::map<int,TdkAbstractPolygonStyleRenderer*> TdkDefaultGraphicalService::polygonStyleRendererMap [protected] |
std::map<int,TdkAbstractLineStyleRenderer*> TdkDefaultGraphicalService::lineStyleRendererMap [protected] |
std::map<int,TdkAbstractTextStyleRenderer*> TdkDefaultGraphicalService::textStyleRendererMap [protected] |