A canvas built on top of Qt. More...
#include <Canvas.h>
Public Member Functions | |
| QPainter * | getPainter () |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| Canvas (int w, int h, int devType=QInternal::Pixmap) | |
| It initializes a new Canvas and associates a pixmap as the default device. More... | |
| Canvas (QPaintDevice *device) | |
| It initializes a new Canvas associated with the given paint device. More... | |
| Canvas (QPainter *painter) | |
| It initializes a new Canvas associated with the given painter. More... | |
| ~Canvas () | |
| Destructor. More... | |
Methods Inherited From Abstract Canvas | |
These methods are re-implementations from abstract canvas. | |
| void | setWindow (const double &llx, const double &lly, const double &urx, const double &ury) |
| It sets the world (or window) coordinates area (supposing a cartesian reference system). More... | |
| void | calcAspectRatio (double &llx, double &lly, double &urx, double &ury, const te::map::AlignType hAlign=te::map::Center, const te::map::AlignType vAlign=te::map::Center) |
| It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system). More... | |
| void | calcAspectRatio (te::gm::Envelope *envelope, const te::map::AlignType hAlign=te::map::Center, const te::map::AlignType vAlign=te::map::Center) |
| It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system). More... | |
| void | setBackgroundColor (const te::color::RGBAColor &color) |
| It sets the canvas background color. More... | |
| te::color::RGBAColor | getBackgroundColor () const |
| It returns the canvas background color. More... | |
| void | clear () |
| It clears the canvas content and fills with the background color. More... | |
| void | resize (int w, int h) |
| It adjusts the canvas size (width and height). More... | |
| int | getWidth () const |
| It returns the canvas width. More... | |
| int | getHeight () const |
| It returns the canvas height. More... | |
| void | draw (const te::gm::Geometry *geom) |
| It draws the geometry on canvas. More... | |
| void | draw (const te::gm::Point *point) |
| It draws the point on canvas. More... | |
| void | draw (const te::gm::MultiPoint *mpoint) |
| It draws the MultiPoint on canvas. More... | |
| void | draw (const te::gm::LineString *line) |
| It draws the LineString on canvas. More... | |
| void | draw (const te::gm::MultiLineString *mline) |
| It draws the MultiLineString on canvas. More... | |
| void | draw (const te::gm::Polygon *poly) |
| It draws the polygon on canvas. More... | |
| void | draw (const te::gm::MultiPolygon *mpoly) |
| It draws the MultiPolygon on canvas. More... | |
| void | draw (const te::gm::GeometryCollection *g) |
| It draws the GeometryCollection on canvas. More... | |
| void | draw (const te::gm::MultiSurface *g) |
| It draws the MultiSurface on canvas. More... | |
| void | save (const char *fileName, te::map::ImageType t, int quality=75, int fg=0) const |
| It saves the canvas content to a file image in the specified format type. More... | |
| char * | getImage (te::map::ImageType t, std::size_t &size, int quality=75, int fg=0) const |
| It returns the internal content as an image in a specific format (PNG, JPEG, ...). More... | |
| te::color::RGBAColor ** | getImage (const int x=0, const int y=0, const int w=0, const int h=0) const |
| It gets a RGBA color array from internal canvas buffer. More... | |
| void | freeImage (char *img) const |
| This is the method that you should use to release an image generated by the canvas. More... | |
| void | drawImage (char *src, std::size_t size, te::map::ImageType t) |
| It draws the src image over the canvas. More... | |
| void | drawImage (te::color::RGBAColor **src, int w, int h) |
| It draws the src image over the canvas. More... | |
| void | drawImage (int x, int y, char *src, std::size_t size, te::map::ImageType t) |
| It draws the src image over the canvas at the specified position (x, y). More... | |
| void | drawImage (int x, int y, te::color::RGBAColor **src, int w, int h) |
| It draws the src image over the canvas at the specified position (x, y). More... | |
| void | drawImage (int x, int y, int w, int h, char *src, std::size_t size, te::map::ImageType t) |
| It draws the source image into the rectangle at position (x, y) with the given width and height. More... | |
| void | drawImage (int x, int y, int w, int h, te::color::RGBAColor **src, int srcw, int srch) |
| It draws the source image into the rectangle at position (x, y) with the given width and height. More... | |
| void | drawImage (int x, int y, int w, int h, char *src, std::size_t size, te::map::ImageType t, int sx, int sy, int sw, int sh) |
| It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
| void | drawImage (int x, int y, int w, int h, te::color::RGBAColor **src, int sx, int sy, int sw, int sh) |
| It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
| void | drawImage (int x, int y, te::rst::Raster *src, int opacity=TE_OPAQUE) |
| It draws a raster over the canvas at the specified position (x, y). The raster must be with three 8-bit bands (1R, 2G, 3B),. More... | |
| void | drawImage (int x, int y, int w, int h, te::rst::Raster *src, int sx, int sy, int sw, int sh, int opacity=TE_OPAQUE) |
| It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source raster, starting at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
| void | drawPixel (int x, int y) |
| It sets a pixel using the point pen. More... | |
| void | drawPixel (int x, int y, const te::color::RGBAColor &color) |
| It sets a pixel to a particular color. More... | |
| void | drawText (int x, int y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It draws a text. More... | |
| void | drawText (const te::gm::Point *p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It draws a text. More... | |
| void | drawText (const double &x, const double &y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It draws a text. More... | |
| te::gm::Polygon * | getTextBoundary (int x, int y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It returns the text boundary (its enclose rectangle). More... | |
| te::gm::Polygon * | getTextBoundary (const te::gm::Point *p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It returns the text boundary (its enclose rectangle). More... | |
| te::gm::Polygon * | getTextBoundary (const double &x, const double &y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It returns the text boundary (its enclose rectangle). More... | |
| void | setTextColor (const te::color::RGBAColor &color) |
| It sets the text drawing color. More... | |
| void | setTextOpacity (int opacity) |
| It sets the text opacity. More... | |
| void | setFontFamily (const std::string &family) |
| It sets the text font family. More... | |
| void | setTextPointSize (double psize) |
| It sets the text point Size. More... | |
| void | setTextStyle (te::se::Font::FontStyleType style) |
| It sets the text style. More... | |
| void | setTextWeight (te::se::Font::FontWeightType weight) |
| It sets the text weight. More... | |
| void | setTextStretch (std::size_t stretch) |
| It sets the text stretch. More... | |
| void | setTextUnderline (bool b) |
| It sets the text underline flag. More... | |
| void | setTextOverline (bool b) |
| It sets the text overline flag. More... | |
| void | setTextStrikeOut (bool b) |
| It sets the text strike out flag. More... | |
| void | setTextDecorationColor (const te::color::RGBAColor &color) |
| It sets the text color for drawing text decoration. More... | |
| void | setTextDecorationWidth (int width) |
| It sets the width for drawing text decoration. More... | |
| void | setTextContourColor (const te::color::RGBAColor &color) |
| It sets the text contour (outline) drawing color. More... | |
| void | setTextContourEnabled (bool b) |
| It controls the display of the text outline. More... | |
| void | setTextContourOpacity (int opacity) |
| It sets the text contour opacity. More... | |
| void | setTextContourWidth (int width) |
| It sets the text contour width. More... | |
| void | setTextJustification (int justType) |
| It sets the text justification for multi line text. More... | |
| void | setTextMultiLineSpacing (int spacing) |
| It sets the multi line text spacing. More... | |
| void | setPointColor (const te::color::RGBAColor &color) |
| It sets the point drawing color. More... | |
| void | setPointWidth (int w) |
| It sets the point width. If point has a patterns, this pattern is scaled to width. More... | |
| void | setPointPattern (te::color::RGBAColor **pattern, int ncols, int nrows) |
| It sets the point pattern. More... | |
| void | setPointPattern (char *pattern, std::size_t size, te::map::ImageType t) |
| It sets the point pattern using a buffered image. More... | |
| void | setPointPatternRotation (const double &angle) |
| It sets the point pattern rotation. Rotation is made from the center of the pattern. More... | |
| void | setPointPatternOpacity (int opacity) |
| It sets the point pattern opacity. More... | |
| void | setLineColor (const te::color::RGBAColor &color) |
| It sets the pen color used to draw line geometries. More... | |
| void | setLinePattern (te::color::RGBAColor **pattern, int ncols, int nrows) |
| It sets the line pattern. More... | |
| void | setLinePattern (char *pattern, std::size_t size, te::map::ImageType t) |
| It sets the line pattern using a buffered image. More... | |
| void | setLinePatternRotation (const double &angle) |
| It sets the line pattern rotation. Rotation is made from the center of the pattern. More... | |
| void | setLinePatternOpacity (int opacity) |
| It sets the line pattern opacity. More... | |
| void | setLineDashStyle (te::map::LineDashStyle style) |
| It sets the line dash style. More... | |
| void | setLineDashStyle (const std::vector< double > &style) |
| It sets the line dash style to the given pattern. More... | |
| void | setLineCapStyle (te::map::LineCapStyle style) |
| It sets the line cap style. More... | |
| void | setLineJoinStyle (te::map::LineJoinStyle style) |
| It sets the line join style. More... | |
| void | setLineWidth (int w) |
| It sets the line width. More... | |
| void | setPolygonFillColor (const te::color::RGBAColor &color) |
| It sets the color used to fill the draw of polygon geometries. More... | |
| void | setPolygonFillColor (const QBrush &color) |
| void | setPolygonContourColor (const te::color::RGBAColor &color) |
| It sets the pen color used to draw the boundary of polygon geometries. More... | |
| void | setPolygonFillPattern (te::color::RGBAColor **pattern, int ncols, int nrows) |
| It sets the polygon fill pattern. More... | |
| void | setPolygonFillPattern (char *pattern, std::size_t size, te::map::ImageType t) |
| It sets the polygon fill pattern using a buffered image. More... | |
| void | setPolygonPatternWidth (int w) |
| It sets the polygon pattern width. More... | |
| void | setPolygonPatternRotation (const double &angle) |
| It sets the polygon pattern rotation. More... | |
| void | setPolygonPatternOpacity (int opacity) |
| It sets the polygon pattern opacity. More... | |
| void | setPolygonContourPattern (te::color::RGBAColor **pattern, int ncols, int nrows) |
| It sets the pen pattern used to draw the boundary of polygon geometries. More... | |
| void | setPolygonContourPattern (char *pattern, std::size_t size, te::map::ImageType t) |
| It sets the pen pattern used to draw the boundary of polygon geometries using a buffered image. More... | |
| void | setPolygonContourWidth (int w) |
| It sets the polygon contour width. More... | |
| void | setPolygonContourPatternRotation (const double &angle) |
| It sets the polygon contour pattern rotation. More... | |
| void | setPolygonContourPatternOpacity (int opacity) |
| It sets the polygon contour pattern opacity. More... | |
| void | setPolygonContourDashStyle (te::map::LineDashStyle style) |
| It sets the polygon contour dash style. More... | |
| void | setPolygonContourDashStyle (const std::vector< double > &style) |
| It sets the polygon contour dash style to the given pattern. More... | |
| void | setPolygonContourCapStyle (te::map::LineCapStyle style) |
| It sets the polygon contour cap style. More... | |
| void | setPolygonContourJoinStyle (te::map::LineJoinStyle style) |
| It sets the polygon contour join style. More... | |
| void | setEraseMode () |
| It sets the painter to erase mode. More... | |
| void | setNormalMode () |
| It sets the painter to normal copy source to destination mode. More... | |
Qt Canvas Specific Methos | |
Methods that belongs only to Qt Canvas. | |
| void | drawText (const QPoint &p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It draws a text. More... | |
| te::gm::Polygon * | getTextBoundary (const QPoint &p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0) |
| It returns text boundary. Color and font family should be defined in advance. More... | |
| QPixmap * | getPixmap () const |
| It returns the internal pixmap used to draw geographical objects. More... | |
| QImage * | getImage () const |
| It returns the internal image used to draw geographical objects. More... | |
| QPaintDevice * | getDevice () const |
| It returns the internal device used to draw geographical objects. More... | |
| void | setDevice (QPaintDevice *device, bool takeOwnerShip) |
| It sets new device as QPrinter. More... | |
| int | getResolution () |
| It returns the device resolution. More... | |
| QMatrix | getMatrix () |
| It returns the matrix. More... | |
| void | setMatrix (const QMatrix &matrix) |
| void | setRenderHint (QPainter::RenderHint hint, bool on=true) |
| Sets the given render hint on the canvas painter if on is true; otherwise clears the render hint. More... | |
Private Member Functions | |
Copy Constructor and Assignment Operator | |
Copy constructor and assignment operator not allowed. | |
| Canvas (const Canvas &rhs) | |
| Copy constructor not allowed. More... | |
| Canvas & | operator= (const Canvas &rhs) |
| Assignment operator not allowed. More... | |
Auxiliary Methods | |
Auxiliary methods. | |
| void | setLineDashStyle (QPen &pen, const std::vector< double > &style) |
| It adjusts the given pen to use the given pattern. More... | |
| void | updateAlpha (QImage &img, const int &opacity) |
| It updates the alpha channel of the given image using the given opacity value. More... | |
| void | createPointPatterns () |
| It creates two patterns. A pattern used to draw selected objects and the other used to erase this pattern. More... | |
| void | drawContour (const te::gm::LineString *line) |
| It draw the polygon contour. More... | |
Private Attributes | |
| QColor | m_bgColor |
| Canvas background color. Defaults: white fully transparent. More... | |
| bool | m_erase |
| used for erase operation. More... | |
| QFont | m_font |
| The text font. More... | |
| bool | m_isDeviceOwner |
| Tells if canvas is the owner of the paint device. More... | |
| bool | m_isPainterOwner |
| Tells if canvas is the owner of the painter. More... | |
| QColor | m_lnColor |
| The color used to draw lines. More... | |
| QPen | m_lnPen |
| The pen used to draw lines. More... | |
| QMatrix | m_matrix |
| Matrix that transforms the world coordinate to device coordinate. More... | |
| QPainter * | m_painter |
| The painter used to draw geometric objects. More... | |
| QTransform | m_painterTransform |
| This transform holds the original transform of the painter. It is stored to be combined to the canvas matrix every time setWindow is called. More... | |
| std::map< std::string, QPixmap * > | m_patterns |
| The pixmap styles used to draw patterns. More... | |
| QBrush | m_polyBrush |
| The brush used to fill polygon. More... | |
| QColor | m_polyColor |
| The color used to fill polygon (solid, marker or pattern). More... | |
| QColor | m_polyContourColor |
| The color used to draw polygon contour. More... | |
| QPen | m_polyContourPen |
| The pen used to draw contour polygon. More... | |
| QBrush | m_polyDefaultBrush |
| The brush used to fill polygon. More... | |
| QImage * | m_polyImage |
| The pattern image used to fill polygon. More... | |
| int | m_polyPatternWidth |
| The width used to draw marker or pattern. More... | |
| QImage * | m_polyRotatedImage |
| The pattern rotated image used to fill polygon. More... | |
| QPointF | m_pt |
| Point buffer to avoid creating another point instance. More... | |
| QImage * | m_ptClearPatternImg |
| The marker or pattern used to clear (erase point). More... | |
| QColor | m_ptColor |
| The color used to draw point (pixel) or marker. More... | |
| QColor | m_ptColorFrom |
| Indicates the color that originated the pattern that shows the status of selection. Used for optmization. More... | |
| int | m_ptHOffset |
| Horizontal offset in pixels (in device coordinate) applied to point pattern or marker. More... | |
| QImage * | m_ptImg |
| The marker or pattern used to point. More... | |
| QImage * | m_ptImgRotated |
| The marker or pattern already with rotation used to draw points. More... | |
| QPen | m_ptPen |
| The pen used to draw points. More... | |
| double | m_ptRotation |
| The point pattern rotation. More... | |
| QImage * | m_ptSelectionPatternImg |
| The marker or pattern used to show selection status. The color is mixed with point pattern. More... | |
| int | m_ptVOffset |
| Vertical offset in pixels (in device coordinate) applied to point pattern or marker. More... | |
| int | m_ptWidth |
| The width for point markers and point pattern. More... | |
| QBrush | m_txtBrush |
| The brush used to draw texts. More... | |
| bool | m_txtContourEnabled |
| The flag indicates whether the outline of the text should be drawn. More... | |
| QPen | m_txtContourPen |
| The pen used to draw the text contour. More... | |
| int | m_txtLetterSpacing |
| Text letter spacing. More... | |
| int | m_txtLineSpacing |
| Text multi line spacing. More... | |
| int | m_txtWordSpacing |
| Text word spacing. More... | |
A canvas built on top of Qt.
Definition at line 54 of file src/terralib/qt/widgets/canvas/Canvas.h.
It initializes a new Canvas and associates a pixmap as the default device.
| w | The internal pixmap width in pixels. |
| h | The internal pixmap height in pixels. |
| devType | The internal device. It can be Pixmap or Image. |
Definition at line 48 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
| te::qt::widgets::Canvas::Canvas | ( | QPaintDevice * | device | ) |
It initializes a new Canvas associated with the given paint device.
| device | The paint device that will be associated to this canvas. |
Definition at line 98 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
| te::qt::widgets::Canvas::Canvas | ( | QPainter * | painter | ) |
It initializes a new Canvas associated with the given painter.
| device | The painter that will be associated to this canvas. |
Definition at line 135 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter, and m_painterTransform.
|
virtual |
Destructor.
Reimplemented from te::map::Canvas.
Definition at line 173 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_isDeviceOwner, m_isPainterOwner, m_painter, m_ptClearPatternImg, m_ptImg, m_ptImgRotated, and m_ptSelectionPatternImg.
|
private |
Copy constructor not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
|
virtual |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system).
| llx | Lower left x-coordinate of the World. |
| lly | Lower left y-coordinate of the World. |
| urx | Upper right x-coordinate of the World. |
| ury | Upper right y-coordinate of the World. |
| hAlign | Horizontal Alignment. It can be left, center or right. |
| vAlign | Vertical Alignment. It can be top, center or bottom. |
Implements te::map::Canvas.
Definition at line 217 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::map::Bottom, getHeight(), getWidth(), te::map::Left, te::map::Right, and te::map::Top.
Referenced by calcAspectRatio(), CreateCanvas(), te::qt::widgets::TrajectoryItem::draw(), DrawingRasterObject(), DrawPNG(), te::qt::widgets::MapDisplay::getCanvas(), te::qt::widgets::AnimationView::setMatrix(), and TsCanvas::tcPerformance().
|
virtual |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system).
| envelope | A rectangle with world coordinates that will be adjusted. |
| hAlign | Horizontal Alignment. It can be left, center or right. |
| vAlign | Vertical Alignment. It can be top, center or bottom. |
Implements te::map::Canvas.
Definition at line 259 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References calcAspectRatio(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
virtual |
It clears the canvas content and fills with the background color.
Implements te::map::Canvas.
Definition at line 279 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_bgColor, m_matrix, m_painter, m_ptColor, m_ptPen, and m_ptWidth.
Referenced by te::qt::widgets::ROIManagerWidget::clearCanvas(), te::qt::widgets::ClippingWizardPage::clearCanvas(), te::qt::widgets::ContrastDialogForm::clearCanvas(), te::qt::widgets::FilterDialogForm::clearCanvas(), te::qt::plugins::wtss::WtssDialog::clearCanvas(), te::qt::widgets::CloudDetectionDialog::clearCanvas(), te::qt::widgets::RasterSlicingWizardPage::clearCanvas(), te::qt::widgets::ColorTransformDialog::clearCanvas(), te::qt::widgets::MixtureModelWizardPage::clearCanvas(), te::qt::widgets::MapDisplay::getCanvas(), paint(), te::mnt::ImageGenerationDialog::resetDraw(), and te::qt::widgets::DrawThread::run().
|
private |
It creates two patterns. A pattern used to draw selected objects and the other used to erase this pattern.
Definition at line 2050 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References b, m_ptClearPatternImg, m_ptColor, m_ptColorFrom, m_ptImg, m_ptImgRotated, m_ptRotation, and m_ptSelectionPatternImg.
Referenced by setPointColor(), setPointPattern(), setPointPatternOpacity(), setPointPatternRotation(), and setPointWidth().
|
virtual |
It draws the geometry on canvas.
| geom | Any geometry (point, line, polygon, ...). |
Implements te::map::Canvas.
Definition at line 348 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::Geometry::getGeomTypeId(), te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::MultiSurfaceMType, te::gm::MultiSurfaceType, te::gm::MultiSurfaceZMType, te::gm::MultiSurfaceZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, and te::gm::PolygonZType.
Referenced by te::qt::widgets::CloudDetectionDialog::applyPreview(), te::edit::Renderer::draw(), draw(), te::qt::af::MapDisplay::drawDataSet(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawingGeometricObjects(), te::qt::widgets::PolygonAcquire::drawLine(), te::qt::widgets::Measure::drawLine(), te::vp::CheckGeomValidityDialog::drawMark(), DrawPNG(), te::qt::widgets::PolygonAcquire::drawPolygon(), te::qt::widgets::Measure::drawPolygon(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::edit::Renderer::drawVertexes(), GetIcon(), GetRuleIcon(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
|
virtual |
It draws the point on canvas.
| point | The point. |
Implements te::map::Canvas.
Definition at line 414 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), m_erase, m_matrix, m_painter, m_pt, m_ptClearPatternImg, m_ptHOffset, m_ptImg, m_ptPen, m_ptSelectionPatternImg, m_ptVOffset, and p.
|
virtual |
It draws the MultiPoint on canvas.
| mpoint | The MultiPoint. |
Implements te::map::Canvas.
Definition at line 448 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References draw(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
|
virtual |
It draws the LineString on canvas.
| line | The LineString. |
Implements te::map::Canvas.
Definition at line 456 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References dx, te::gm::LineString::getCoordinates(), te::gm::LineString::getNPoints(), m_erase, m_lnColor, m_lnPen, m_matrix, and m_painter.
|
virtual |
It draws the MultiLineString on canvas.
| mline | The MultiLineString. |
Implements te::map::Canvas.
Definition at line 656 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References draw(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
|
virtual |
It draws the polygon on canvas.
| poly | The polygon. |
Implements te::map::Canvas.
Definition at line 664 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References drawContour(), te::gm::LineString::getCoordinates(), te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), getMatrix(), te::gm::Geometry::getMBR(), te::gm::LineString::getNPoints(), te::gm::CurvePolygon::getNumRings(), te::gm::CurvePolygon::getRingN(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::getWidth(), m_erase, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_matrix, m_painter, m_polyBrush, m_polyColor, m_polyContourPen, m_polyDefaultBrush, m_polyImage, m_polyPatternWidth, and m_polyRotatedImage.
|
virtual |
It draws the MultiPolygon on canvas.
| mpoly | The MultiPolygon. |
Implements te::map::Canvas.
Definition at line 1003 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References draw(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
|
virtual |
It draws the GeometryCollection on canvas.
| g | The GeometryCollection. |
Implements te::map::Canvas.
Definition at line 1010 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References draw(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
|
virtual |
It draws the MultiSurface on canvas.
| g | The MultiSurface. |
Implements te::map::Canvas.
Definition at line 1017 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References draw(), te::gm::GeometryCollection::getGeometryN(), and te::gm::GeometryCollection::getNumGeometries().
|
private |
It draw the polygon contour.
Definition at line 810 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References dx, te::gm::LineString::getCoordinates(), te::gm::LineString::getNPoints(), m_matrix, m_painter, m_polyContourColor, and m_polyContourPen.
Referenced by draw().
|
virtual |
It draws the src image over the canvas.
| src | A source image of any type (PNG, JPEG, GIF, ...). |
| size | The image size in bytes. |
| t | The image format type (see ImageType enum). |
Implements te::map::Canvas.
Definition at line 1150 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
Referenced by drawImage(), and DrawingRasterObject().
|
virtual |
It draws the src image over the canvas.
| src | The source image. |
| w | The image width (number of columns). |
| h | The image height (number of rows). |
Implements te::map::Canvas.
Definition at line 1155 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References drawImage().
|
virtual |
It draws the src image over the canvas at the specified position (x, y).
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| src | A source image of any type (PNG, JPEG, GIF, ...). |
| size | The image size in bytes. |
| t | The image format type (see ImageType enum). |
Implements te::map::Canvas.
Definition at line 1160 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_painter.
|
virtual |
It draws the src image over the canvas at the specified position (x, y).
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| src | The source image. |
| w | The image width (number of columns). |
| h | The image height (number of rows). |
Implements te::map::Canvas.
Definition at line 1172 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
|
virtual |
It draws the source image into the rectangle at position (x, y) with the given width and height.
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| w | The rectangle width. |
| h | The rectangle height. |
| src | A source image of any type (PNG, JPEG, GIF, ...). |
| size | The image size in bytes. |
| t | The image format type (see ImageType enum). |
Implements te::map::Canvas.
Definition at line 1191 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_painter.
|
virtual |
It draws the source image into the rectangle at position (x, y) with the given width and height.
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| w | The rectangle width. |
| h | The rectangle height. |
| src | The source image. |
| srcw | The source image width (number of columns). |
| srch | The source image height (number of rows). |
Implements te::map::Canvas.
Definition at line 1203 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), and m_painter.
|
virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| w | The rectangle width. |
| h | The rectangle height. |
| src | A source image of any type (PNG, JPEG, GIF, ...). |
| size | The image size in bytes. |
| t | The image format type (see ImageType enum). |
| sx | The source image position. |
| sy | The source image position. |
| sw | The source image rectangle width. |
| sh | The source image rectangle height. |
Implements te::map::Canvas.
Definition at line 1216 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_painter.
|
virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| w | The rectangle width. |
| h | The rectangle height. |
| src | The source image. |
| sx | The source image start position. |
| sy | The source image start position. |
| sw | The source image rectangle width. |
| sh | The source image rectangle height. |
Implements te::map::Canvas.
Definition at line 1228 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), and m_painter.
|
virtual |
It draws a raster over the canvas at the specified position (x, y). The raster must be with three 8-bit bands (1R, 2G, 3B),.
| x | The canvas start position in x where the raster image will be drawn. |
| y | The canvas start position in y where the raster image will be drawn. |
| src | The source raster. |
| opacity | The opacity value used to draw the image |
Implements te::map::Canvas.
Definition at line 1244 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References drawImage(), te::rst::Raster::getNumberOfColumns(), and te::rst::Raster::getNumberOfRows().
|
virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source raster, starting at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
| x | The canvas start position where the src image will be drawn. |
| y | The canvas start position where the src image will be drawn. |
| w | The rectangle width. |
| h | The rectangle height. |
| src | The source raster. |
| sx | The source image start position. |
| sy | The source image start position. |
| sw | The source image rectangle width. |
| sh | The source image rectangle height. |
| opacity | The opacity value used to draw the image |
Implements te::map::Canvas.
Definition at line 1252 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getAlpha(), te::color::RGBAColor::getBlue(), te::color::RGBAColor::getGreen(), te::color::RGBAColor::getRed(), te::rst::Raster::getValue(), and m_painter.
It sets a pixel using the point pen.
| x | Column. |
| y | Row. |
Implements te::map::Canvas.
Definition at line 1293 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
|
virtual |
It sets a pixel to a particular color.
The color must be an RGBA value. With the following range:
A: 0-255.
| x | Column. |
| y | Row. |
| color | Pixel color. |
Implements te::map::Canvas.
Definition at line 1300 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), and m_painter.
|
virtual |
It draws a text.
Color and font family should be defined in advance.
| x | The text entry point x in device coordinate. |
| y | The text entry point y in device coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1312 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References p.
Referenced by te::edit::Renderer::drawText(), te::qt::widgets::Measure::drawText(), and drawText().
|
virtual |
It draws a text.
Color and font family should be defined in advance.
| p | The text entry point in world coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1322 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References drawText(), te::gm::Point::getX(), and te::gm::Point::getY().
|
virtual |
It draws a text.
Color and font family should be defined in advance.
| x | The text entry point x in world coordinate. |
| y | The text entry point y in world coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1331 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References drawText(), m_matrix, and p.
| void te::qt::widgets::Canvas::drawText | ( | const QPoint & | p, |
| const std::string & | txt, | ||
| float | angle = 0.0, |
||
| double | anchorX = 0.5, |
||
| double | anchorY = 0.5, |
||
| int | displacementX = 0, |
||
| int | displacementY = 0 |
||
| ) |
It draws a text.
Color and font family should be defined in advance.
| p | The text entry point i device coordinate. |
| txt | The text to be drawed. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Definition at line 1866 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font, m_matrix, m_painter, m_txtBrush, m_txtContourEnabled, and m_txtContourPen.
|
virtual |
This is the method that you should use to release an image generated by the canvas.
| img | A pointer to an image previously created by the canvas. |
Implements te::map::Canvas.
Definition at line 1145 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It returns the canvas background color.
Implements te::map::Canvas.
Definition at line 274 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_bgColor.
| QPaintDevice * te::qt::widgets::Canvas::getDevice | ( | ) | const |
It returns the internal device used to draw geographical objects.
Definition at line 1985 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by te::qt::widgets::MapDisplay::draw().
|
virtual |
It returns the canvas height.
Implements te::map::Canvas.
Definition at line 343 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by calcAspectRatio(), DrawingRasterObject(), and setWindow().
|
virtual |
It returns the internal content as an image in a specific format (PNG, JPEG, ...).
| t | The image format type (see ImageType enum). |
| size | The image size in bytes. |
| quality | JPEG quality, generally a value between 0 and 95. |
| fg | Foreground color for WBMP images. |
Implements te::map::Canvas.
Definition at line 1034 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::map::BMP, te::map::GIF, te::map::JPEG, m_painter, te::map::PNG, save(), te::qt::widgets::Globals::sm_bmpFmt, te::qt::widgets::Globals::sm_gifFmt, te::qt::widgets::Globals::sm_jpegFmt, te::qt::widgets::Globals::sm_pngFmt, te::qt::widgets::Globals::sm_xbmFmt, te::qt::widgets::Globals::sm_xpmFmt, te::map::XBM, and te::map::XPM.
|
virtual |
It gets a RGBA color array from internal canvas buffer.
Implements te::map::Canvas.
Definition at line 1086 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
| QImage * te::qt::widgets::Canvas::getImage | ( | ) | const |
It returns the internal image used to draw geographical objects.
Definition at line 1977 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
| QMatrix te::qt::widgets::Canvas::getMatrix | ( | ) |
It returns the matrix.
Definition at line 2009 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_matrix.
Referenced by te::qt::widgets::TrajectoryItem::draw(), draw(), te::vp::CheckGeomValidityDialog::drawMark(), and te::qt::widgets::AnimationView::setMatrix().
| QPainter * te::qt::widgets::Canvas::getPainter | ( | ) |
Definition at line 2019 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
| QPixmap * te::qt::widgets::Canvas::getPixmap | ( | ) | const |
It returns the internal pixmap used to draw geographical objects.
Definition at line 1969 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by GetIcon(), GetRuleIcon(), and showPixmap().
| int te::qt::widgets::Canvas::getResolution | ( | ) |
It returns the device resolution.
Definition at line 2001 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by TsCanvas::tcPerformance().
|
virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
| x | The text entry point x in device coordinate. |
| y | The text entry point y in device coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1343 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References p.
Referenced by getTextBoundary().
|
virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
| p | The text entry point in world coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1349 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References getTextBoundary(), te::gm::Point::getX(), and te::gm::Point::getY().
|
virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
| x | The text entry point x in world coordinate. |
| y | The text entry point y in world coordinate. |
| txt | The text to be drawn. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Implements te::map::Canvas.
Definition at line 1354 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References getTextBoundary(), m_matrix, and p.
| te::gm::Polygon * te::qt::widgets::Canvas::getTextBoundary | ( | const QPoint & | p, |
| const std::string & | txt, | ||
| float | angle = 0.0, |
||
| double | anchorX = 0.5, |
||
| double | anchorY = 0.5, |
||
| int | displacementX = 0, |
||
| int | displacementY = 0 |
||
| ) |
It returns text boundary. Color and font family should be defined in advance.
| p | The text entry point in device coordinate. |
| tx | The text to be drawed. |
| angle | The text rotation. |
| anchorX | The horizontal text anchor. |
| anchorY | The vertical text anchor. |
| displacementX | The horizontal text displacement. |
| displacementY | The vertical text displacement. |
Definition at line 1923 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::gm::LineStringType, m_font, m_matrix, te::gm::PolygonType, and te::gm::CurvePolygon::setRingN().
|
virtual |
It returns the canvas width.
Implements te::map::Canvas.
Definition at line 338 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by calcAspectRatio(), DrawingRasterObject(), and setWindow().
Assignment operator not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
It adjusts the canvas size (width and height).
| w | The new canvas width. |
| h | The new canvas height. |
Implements te::map::Canvas.
Definition at line 308 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_bgColor, m_isDeviceOwner, and m_painter.
|
virtual |
It saves the canvas content to a file image in the specified format type.
| fileName | The file name and path where the image will be saved. |
| t | The image format type (see ImageType enum). |
| quality | JPEG quality, generally a value between 0 and 95. |
| fg | Foreground color for WBMP images. |
Implements te::map::Canvas.
Definition at line 1024 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_painter.
Referenced by DrawingGeometricObjects(), DrawingRasterObject(), DrawPNG(), getImage(), paint(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
|
virtual |
It sets the canvas background color.
The default is totally transparent (255, 255, 255, 0).
| color | The background color. |
Implements te::map::Canvas.
Definition at line 264 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), m_bgColor, and m_painter.
Referenced by CreateCanvas().
| void te::qt::widgets::Canvas::setDevice | ( | QPaintDevice * | device, |
| bool | takeOwnerShip | ||
| ) |
It sets new device as QPrinter.
| device | The new paint device. |
| takeOwnerShip | If true the canvas will take the ownership of the given device otherwise it is the caller responsability to release the device. |
Definition at line 1990 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_isDeviceOwner, and m_painter.
Referenced by te::qt::widgets::CloudDetectionDialog::applyPreview(), te::edit::Renderer::begin(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::PolygonAcquire::drawGeometry(), te::qt::widgets::Measure::drawGeometry(), te::vp::CheckGeomValidityDialog::drawMark(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::OverlayWidget::onApplyToolButtonClicked(), te::qt::widgets::OverlayWidget::onMapDisplayExtentChanged(), and te::mnt::ImageGenerationDialog::setMapDisplay().
|
virtual |
It sets the painter to erase mode.
Implements te::map::Canvas.
Definition at line 2101 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the text font family.
| family | The new font family for drawing a text. |
Implements te::map::Canvas.
Definition at line 1375 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
Referenced by te::edit::Renderer::drawText(), and te::qt::widgets::Measure::drawText().
|
virtual |
It sets the line cap style.
| style | The line cap style. |
Implements te::map::Canvas.
Definition at line 1643 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen.
|
virtual |
It sets the pen color used to draw line geometries.
This method will drop any pattern or line style previously set.
| color | The color to be used by the pen. |
Implements te::map::Canvas.
Definition at line 1554 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), and m_lnColor.
Referenced by te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawingGeometricObjects(), te::qt::widgets::PolygonAcquire::drawLine(), te::qt::widgets::Measure::drawLine(), DrawPNG(), te::edit::Renderer::prepare(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
|
virtual |
It sets the line dash style.
| style | The line dash style. |
Implements te::map::Canvas.
Definition at line 1633 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen.
Referenced by te::edit::Renderer::prepare(), setLineDashStyle(), and setPolygonContourDashStyle().
|
virtual |
It sets the line dash style to the given pattern.
| style | The line custom dash style. |
Implements te::map::Canvas.
Definition at line 1638 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen, and setLineDashStyle().
|
private |
It adjusts the given pen to use the given pattern.
| pen | The pen that will be adjusted. |
| style | The line custom dash style. |
Definition at line 2024 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the line join style.
| style | The line join style. |
Implements te::map::Canvas.
Definition at line 1648 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen.
|
virtual |
It sets the line pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
| pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
| ncols | Number of columns in the matrix. |
| nrows | Number of rows in the matrix. |
Implements te::map::Canvas.
Definition at line 1562 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetImage(), and m_lnPen.
|
virtual |
It sets the line pattern using a buffered image.
| pattern | The buffered image. |
| size | The buffer image size. |
| t | The image type used by the style. |
Implements te::map::Canvas.
Definition at line 1581 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_lnPen.
|
virtual |
It sets the line pattern opacity.
| opacity | The pattern opacity. |
Implements te::map::Canvas.
Definition at line 1619 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen, and updateAlpha().
|
virtual |
It sets the line pattern rotation. Rotation is made from the center of the pattern.
| angle | The rotation angle in degress. |
Implements te::map::Canvas.
Definition at line 1603 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen.
|
virtual |
It sets the line width.
| w | The line width. |
Implements te::map::Canvas.
Definition at line 1653 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_lnPen, and m_matrix.
Referenced by te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::qt::widgets::PolygonAcquire::drawLine(), and te::qt::widgets::Measure::drawLine().
| void te::qt::widgets::Canvas::setMatrix | ( | const QMatrix & | matrix | ) |
Definition at line 2113 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the painter to normal copy source to destination mode.
Implements te::map::Canvas.
Definition at line 2107 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the point drawing color.
This method will instruct the canvas to draw points like pixels. Any pattern previously set will be released.
| color | The new color for drawing a point. |
Implements te::map::Canvas.
Definition at line 1464 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), te::color::RGBAColor::getRgba(), m_ptColor, m_ptColorFrom, m_ptImg, and m_ptPen.
Referenced by te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawPNG(), te::edit::Renderer::prepare(), and TsCanvas::tcPerformance().
|
virtual |
It sets the point pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
| pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
| ncols | Number of columns in the matrix. |
| nrows | Number of rows in the matrix. |
Implements te::map::Canvas.
Definition at line 1499 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), te::qt::widgets::GetImage(), m_ptImg, and m_ptWidth.
Referenced by te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), and te::edit::Renderer::prepare().
|
virtual |
It sets the point pattern using a buffered image.
| pattern | The buffered image. |
| size | The buffer image size. |
| t | The image type used by the style. |
Implements te::map::Canvas.
Definition at line 1514 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), te::qt::widgets::GetFormat(), m_ptImg, and m_ptWidth.
|
virtual |
It sets the point pattern opacity.
| opacity | The pattern opacity. |
Implements te::map::Canvas.
Definition at line 1545 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), m_ptImg, and updateAlpha().
|
virtual |
It sets the point pattern rotation. Rotation is made from the center of the pattern.
| angle | The rotation angle in degress. |
Implements te::map::Canvas.
Definition at line 1539 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), and m_ptRotation.
|
virtual |
It sets the point width. If point has a patterns, this pattern is scaled to width.
| w | The width used to draw point. |
Implements te::map::Canvas.
Definition at line 1478 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References createPointPatterns(), m_matrix, m_ptImg, m_ptPen, and m_ptWidth.
|
virtual |
It sets the polygon contour cap style.
| style | The polygon contour cap style. |
Implements te::map::Canvas.
Definition at line 1856 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen.
|
virtual |
It sets the pen color used to draw the boundary of polygon geometries.
| color | The color to be used to outline a polygon. |
Implements te::map::Canvas.
Definition at line 1759 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), m_polyContourColor, and m_polyContourPen.
Referenced by te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawingGeometricObjects(), DrawPNG(), te::qt::widgets::PolygonAcquire::drawPolygon(), te::qt::widgets::Measure::drawPolygon(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::edit::Renderer::prepare(), te::mnt::ImageGenerationDialog::setMapDisplay(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
|
virtual |
It sets the polygon contour dash style.
| style | The polygon contour dash style. |
Implements te::map::Canvas.
Definition at line 1846 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen.
Referenced by te::edit::Renderer::prepare().
|
virtual |
It sets the polygon contour dash style to the given pattern.
| style | The polygon contour custom dash style. |
Implements te::map::Canvas.
Definition at line 1851 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen, and setLineDashStyle().
|
virtual |
It sets the polygon contour join style.
| style | The polygon contour join style. |
Implements te::map::Canvas.
Definition at line 1861 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen.
|
virtual |
It sets the pen pattern used to draw the boundary of polygon geometries.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
| pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
| ncols | Number of columns in the matrix. |
| nrows | Number of rows in the matrix. |
Implements te::map::Canvas.
Definition at line 1768 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetImage(), and m_polyContourPen.
|
virtual |
It sets the pen pattern used to draw the boundary of polygon geometries using a buffered image.
| pattern | The buffered image. |
| size | The buffer image size. |
| t | The image type used by the style. |
Implements te::map::Canvas.
Definition at line 1787 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), and m_polyContourPen.
|
virtual |
It sets the polygon contour pattern opacity.
| opacity | The pattern opacity. |
Implements te::map::Canvas.
Definition at line 1832 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen, and updateAlpha().
|
virtual |
It sets the polygon contour pattern rotation.
| angle | The rotation angle in degress. |
Implements te::map::Canvas.
Definition at line 1816 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyContourPen.
|
virtual |
It sets the polygon contour width.
| w | The contour width. |
Implements te::map::Canvas.
Definition at line 1809 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_matrix, and m_polyContourPen.
Referenced by te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::qt::widgets::PolygonAcquire::drawPolygon(), te::qt::widgets::Measure::drawPolygon(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), and te::mnt::ImageGenerationDialog::setMapDisplay().
|
virtual |
It sets the color used to fill the draw of polygon geometries.
| color | The color to be used when filling a polygon. |
Implements te::map::Canvas.
Definition at line 1660 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References b, and te::color::RGBAColor::getRgba().
Referenced by te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawingGeometricObjects(), DrawPNG(), te::qt::widgets::PolygonAcquire::drawPolygon(), te::qt::widgets::Measure::drawPolygon(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::edit::Renderer::prepare(), te::mnt::ImageGenerationDialog::setMapDisplay(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
| void te::qt::widgets::Canvas::setPolygonFillColor | ( | const QBrush & | color | ) |
Definition at line 1670 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyColor, and m_polyDefaultBrush.
|
virtual |
It sets the polygon fill pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
| pattern | The style matrix: a square matrix of int's where each position corresponds to a RGBA color. |
| ncols | Number of columns in the matrix. |
| nrows | Number of rows in the matrix. |
Implements te::map::Canvas.
Definition at line 1677 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetImage(), m_polyBrush, m_polyImage, m_polyPatternWidth, and m_polyRotatedImage.
|
virtual |
It sets the polygon fill pattern using a buffered image.
| pattern | The buffered image. |
| size | The buffer image size. |
| t | The image type used by the style. |
Implements te::map::Canvas.
Definition at line 1701 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::qt::widgets::GetFormat(), m_polyBrush, m_polyImage, and m_polyRotatedImage.
|
virtual |
It sets the polygon pattern opacity.
| opacity | The pattern opacity. |
Implements te::map::Canvas.
Definition at line 1746 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyBrush, m_polyImage, m_polyRotatedImage, and updateAlpha().
|
virtual |
It sets the polygon pattern rotation.
| angle | The rotation angle in degress. |
Implements te::map::Canvas.
Definition at line 1732 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyImage, and m_polyRotatedImage.
|
virtual |
It sets the polygon pattern width.
| w | The pattern width. |
Implements te::map::Canvas.
Definition at line 1724 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_polyPatternWidth.
| void te::qt::widgets::Canvas::setRenderHint | ( | QPainter::RenderHint | hint, |
| bool | on = true |
||
| ) |
Sets the given render hint on the canvas painter if on is true; otherwise clears the render hint.
Definition at line 2014 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_painter.
Referenced by te::edit::Renderer::begin(), and te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry().
|
virtual |
It sets the text drawing color.
| color | The new color for drawing a text. |
Implements te::map::Canvas.
Definition at line 1362 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getAlpha(), te::color::RGBAColor::getBlue(), te::color::RGBAColor::getGreen(), te::color::RGBAColor::getRed(), and m_txtBrush.
Referenced by te::edit::Renderer::drawText(), and te::qt::widgets::Measure::drawText().
|
virtual |
It sets the text contour (outline) drawing color.
| color | The new color for drawing the contour of texts. |
Implements te::map::Canvas.
Definition at line 1432 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References te::color::RGBAColor::getRgba(), and m_txtContourPen.
Referenced by te::qt::widgets::Measure::drawText().
|
virtual |
It controls the display of the text outline.
| b | True to display and false to not display. |
Implements te::map::Canvas.
Definition at line 1439 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References b, and m_txtContourEnabled.
Referenced by te::qt::widgets::Measure::drawText().
|
virtual |
It sets the text contour opacity.
| opacity | The new opacity for drawing the text contour. |
Implements te::map::Canvas.
Definition at line 1444 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_txtContourPen.
|
virtual |
It sets the text contour width.
| width | The new width for drawing the text contour. |
Implements te::map::Canvas.
Definition at line 1450 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_txtContourPen.
Referenced by te::qt::widgets::Measure::drawText().
|
virtual |
It sets the text color for drawing text decoration.
| color | The new color for drawing text decoration. |
Implements te::map::Canvas.
Definition at line 1424 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the width for drawing text decoration.
| width | The new width for drawing text decoration. |
Implements te::map::Canvas.
Definition at line 1428 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the text justification for multi line text.
| just | The new justification for drawing a multi line text. |
Implements te::map::Canvas.
Definition at line 1455 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
|
virtual |
It sets the multi line text spacing.
| spacing | The new spacing for drawing a multi line text. |
Implements te::map::Canvas.
Definition at line 1459 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_txtLineSpacing.
|
virtual |
It sets the text opacity.
| opacity | The new opacity for drawing a text. |
Implements te::map::Canvas.
Definition at line 1369 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_txtBrush.
|
virtual |
It sets the text overline flag.
| b | True: for overline. False otherwise. |
Implements te::map::Canvas.
Definition at line 1414 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
|
virtual |
It sets the text point Size.
| size | The new point size for drawing a text. |
Implements te::map::Canvas.
Definition at line 1380 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font, and m_painter.
Referenced by te::edit::Renderer::drawText(), and te::qt::widgets::Measure::drawText().
|
virtual |
It sets the text stretch.
| stretch | The new stretch for drawing a text. |
Implements te::map::Canvas.
Definition at line 1404 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
|
virtual |
It sets the text strike out flag.
| b | True: for strike out. False otherwise. |
Implements te::map::Canvas.
Definition at line 1419 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
|
virtual |
It sets the text style.
| style | The new style for drawing a text. |
Implements te::map::Canvas.
Definition at line 1394 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
|
virtual |
It sets the text underline flag.
| b | True: for underline. False otherwise. |
Implements te::map::Canvas.
Definition at line 1409 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
|
virtual |
It sets the text weight.
| weight | The new weight for drawing a text. |
Implements te::map::Canvas.
Definition at line 1399 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References m_font.
Referenced by te::edit::Renderer::drawText(), and te::qt::widgets::Measure::drawText().
|
virtual |
It sets the world (or window) coordinates area (supposing a cartesian reference system).
| llx | Lower left x-coordinate of the World. |
| lly | Lower left y-coordinate of the World. |
| urx | Upper right x-coordinate of the World. |
| ury | Upper right y-coordinate of the World. |
Implements te::map::Canvas.
Definition at line 194 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
References getHeight(), getWidth(), m_isPainterOwner, m_matrix, m_painter, and m_painterTransform.
Referenced by te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::edit::Renderer::begin(), te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::SymbologyPreview::buildText(), CreateCanvas(), te::qt::widgets::TrajectoryItem::draw(), te::qt::widgets::ZoomInMapDisplayWidget::drawCursorPosition(), te::qt::af::MapDisplay::drawDataSet(), te::qt::widgets::ContrastDialogForm::drawGeom(), te::qt::widgets::ClippingWizardPage::drawGeom(), te::qt::widgets::FilterDialogForm::drawGeom(), te::qt::widgets::CloudDetectionDialog::drawGeom(), te::qt::widgets::RasterSlicingWizardPage::drawGeom(), te::qt::widgets::ColorTransformDialog::drawGeom(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), DrawingGeometricObjects(), DrawingRasterObject(), te::vp::CheckGeomValidityDialog::drawMark(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), DrawPNG(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::ROIManagerWidget::drawROISet(), te::mnt::ProfileDialog::DrawSelected(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::qt::widgets::MapDisplay::getCanvas(), te::mnt::ProfileTools::mouseReleaseEvent(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::widgets::ROIManagerWidget::onROITreItemClicked(), te::qt::widgets::ClippingWizardPage::onSelectRoiItem(), te::mnt::ImageGenerationDialog::setMapDisplay(), te::qt::widgets::AnimationView::setMatrix(), TsCanvas::tcPerformance(), and TsCanvas::tcTransformation().
|
private |
It updates the alpha channel of the given image using the given opacity value.
| img | The image that will be updated. |
| opacity | The opacity value that will be used. |
Definition at line 2033 of file src/terralib/qt/widgets/canvas/Canvas.cpp.
Referenced by setLinePatternOpacity(), setPointPatternOpacity(), setPolygonContourPatternOpacity(), and setPolygonPatternOpacity().
|
private |
Canvas background color. Defaults: white fully transparent.
Definition at line 497 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by Canvas(), clear(), getBackgroundColor(), resize(), and setBackgroundColor().
|
private |
used for erase operation.
Definition at line 499 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setEraseMode(), and setNormalMode().
|
private |
The text font.
Definition at line 529 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by drawText(), getTextBoundary(), setFontFamily(), setTextOverline(), setTextPointSize(), setTextStretch(), setTextStrikeOut(), setTextStyle(), setTextUnderline(), and setTextWeight().
|
private |
Tells if canvas is the owner of the paint device.
Definition at line 495 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by resize(), setDevice(), and ~Canvas().
|
private |
Tells if canvas is the owner of the painter.
Definition at line 493 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by setWindow(), and ~Canvas().
|
private |
The color used to draw lines.
Definition at line 513 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), and setLineColor().
|
private |
The pen used to draw lines.
Definition at line 514 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setLineCapStyle(), setLineDashStyle(), setLineJoinStyle(), setLinePattern(), setLinePatternOpacity(), setLinePatternRotation(), and setLineWidth().
|
private |
Matrix that transforms the world coordinate to device coordinate.
Definition at line 489 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by clear(), draw(), drawContour(), drawText(), getMatrix(), getTextBoundary(), setLineWidth(), setMatrix(), setPointWidth(), setPolygonContourWidth(), and setWindow().
|
private |
The painter used to draw geometric objects.
Definition at line 491 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by Canvas(), clear(), draw(), drawContour(), drawImage(), drawPixel(), drawText(), getDevice(), getHeight(), getImage(), getPainter(), getPixmap(), getResolution(), getWidth(), resize(), save(), setBackgroundColor(), setDevice(), setEraseMode(), setMatrix(), setNormalMode(), setRenderHint(), setTextPointSize(), setWindow(), and ~Canvas().
|
private |
This transform holds the original transform of the painter. It is stored to be combined to the canvas matrix every time setWindow is called.
Definition at line 492 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by Canvas(), and setWindow().
|
private |
The pixmap styles used to draw patterns.
Definition at line 535 of file src/terralib/qt/widgets/canvas/Canvas.h.
|
private |
The brush used to fill polygon.
Definition at line 520 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setPolygonFillPattern(), and setPolygonPatternOpacity().
|
private |
The color used to fill polygon (solid, marker or pattern).
Definition at line 519 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), and setPolygonFillColor().
|
private |
The color used to draw polygon contour.
Definition at line 516 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by drawContour(), and setPolygonContourColor().
|
private |
The pen used to draw contour polygon.
Definition at line 517 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), drawContour(), setPolygonContourCapStyle(), setPolygonContourColor(), setPolygonContourDashStyle(), setPolygonContourJoinStyle(), setPolygonContourPattern(), setPolygonContourPatternOpacity(), setPolygonContourPatternRotation(), and setPolygonContourWidth().
|
private |
The brush used to fill polygon.
Definition at line 521 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), and setPolygonFillColor().
|
private |
The pattern image used to fill polygon.
Definition at line 522 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setPolygonFillPattern(), setPolygonPatternOpacity(), and setPolygonPatternRotation().
|
private |
The width used to draw marker or pattern.
Definition at line 524 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setPolygonFillPattern(), and setPolygonPatternWidth().
|
private |
The pattern rotated image used to fill polygon.
Definition at line 523 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw(), setPolygonFillPattern(), setPolygonPatternOpacity(), and setPolygonPatternRotation().
|
private |
Point buffer to avoid creating another point instance.
Definition at line 501 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw().
|
private |
The marker or pattern used to clear (erase point).
Definition at line 508 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), draw(), and ~Canvas().
|
private |
The color used to draw point (pixel) or marker.
Definition at line 503 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by Canvas(), clear(), createPointPatterns(), and setPointColor().
|
private |
Indicates the color that originated the pattern that shows the status of selection. Used for optmization.
Definition at line 504 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), and setPointColor().
|
private |
Horizontal offset in pixels (in device coordinate) applied to point pattern or marker.
Definition at line 511 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw().
|
private |
The marker or pattern used to point.
Definition at line 505 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), draw(), setPointColor(), setPointPattern(), setPointPatternOpacity(), setPointWidth(), and ~Canvas().
|
private |
The marker or pattern already with rotation used to draw points.
Definition at line 506 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), and ~Canvas().
|
private |
The pen used to draw points.
Definition at line 500 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by Canvas(), clear(), draw(), setPointColor(), and setPointWidth().
|
private |
The point pattern rotation.
Definition at line 509 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), and setPointPatternRotation().
|
private |
The marker or pattern used to show selection status. The color is mixed with point pattern.
Definition at line 507 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by createPointPatterns(), draw(), and ~Canvas().
|
private |
Vertical offset in pixels (in device coordinate) applied to point pattern or marker.
Definition at line 510 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by draw().
|
private |
The width for point markers and point pattern.
Definition at line 502 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by clear(), setPointPattern(), and setPointWidth().
|
private |
The brush used to draw texts.
Definition at line 528 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by drawText(), setTextColor(), and setTextOpacity().
|
private |
The flag indicates whether the outline of the text should be drawn.
Definition at line 527 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by drawText(), and setTextContourEnabled().
|
private |
The pen used to draw the text contour.
Definition at line 526 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by drawText(), setTextContourColor(), setTextContourOpacity(), and setTextContourWidth().
|
private |
Text letter spacing.
Definition at line 530 of file src/terralib/qt/widgets/canvas/Canvas.h.
|
private |
Text multi line spacing.
Definition at line 533 of file src/terralib/qt/widgets/canvas/Canvas.h.
Referenced by setTextMultiLineSpacing().
|
private |
Text word spacing.
Definition at line 531 of file src/terralib/qt/widgets/canvas/Canvas.h.