TeVisual Class Reference

#include <TeVisual.h>


Detailed Description

Examples:

createTheme.cpp, rasterSlicing.cpp, and themeGrouping.cpp.

Definition at line 169 of file TeVisual.h.


Public Member Functions

virtual double alignmentHoriz ()
 Retuns the horizontal alignment of texts.
virtual void alignmentHoriz (double a)
 Sets the horizontal alignment of texts.
virtual double alignmentVert ()
 Retuns the vertical alignment of texts.
virtual void alignmentVert (double a)
 Sets the vertical alignment of texts.
virtual bool bold ()
 Returns the bold style used in the texts.
virtual void bold (bool b)
 Sets the bold style for texts.
virtual void clear ()
 Returns visual to the default parameters.
virtual TeColorcolor ()
 Returns the color used for geometry filling and line, point and text color.
virtual void color (const TeColor &color)
 Sets the color used for geometry filling and line, point and text color.
virtual TeColorcontourColor ()
 Returns the color used in the polygons and cells outlines.
virtual void contourColor (const TeColor &color)
 Sets the color for the polygons and cells outlines.
virtual int contourStyle ()
 Returns the contour style used in the polygons and cells outlines.
virtual void contourStyle (int s)
 Sets the contour style for the polygons and cells outlines.
virtual int contourTransparency ()
 Returns the color used in the polygons and cells outlines.
virtual void contourTransparency (int t)
 Sets the percentage of transparency for the polygon ans cells outlines.
virtual int contourWidth ()
 Returns the contour width used in the polygons and cells outlines.
virtual void contourWidth (int w)
 Sets the contour width for the polygons and cells outlines.
virtual TeVisualcopy ()
 Creates another visual pointer and copies its content.
virtual string family ()
 Returns fontīs family.
virtual void family (string f)
 Sets the text family for fonts.
virtual bool fixedSize ()
 Retuns a flag indicating if an text have a fixed size.
virtual void fixedSize (bool i)
 Sets a flag indicating if the text will have a fixed size.
virtual bool italic ()
 Returns the italic style used in the texts.
virtual void italic (bool i)
 Sets the italic style for texts.
virtual int lineSpace ()
 Returns the spacing between lines.
virtual void lineSpace (int s)
 Sets the spacing between lines.
virtual TeVisualoperator= (const TeVisual &vis)
 Assignment operator.
virtual bool operator== (const TeVisual &vis)
 Returns TRUE if param1 is equal to param2 or FALSE if they are different.
virtual void ptAngle (int p)
 Sets the angle of points and symbols.
virtual int ptAngle ()
 Returns the angle of points and symbols.
virtual void setBasic (TeVisual &vis)
 Copies only the basic visual parameters from another visual.
virtual int size ()
 Returns the point size.
virtual void size (int s)
 Sets the point size.
virtual int style ()
 Returns the style for the filling of geometries.
virtual void style (int s)
 Sets the style for the filling of geometries.
virtual int tabSize ()
 Returns the number of spaces defined in a tab character.
virtual void tabSize (int s)
 Sets the number of spaces defined in a tab character.
 TeVisual (const TeVisual &other)
 Copy constructor.
 TeVisual (TeGeomRep rep=TePOLYGONS)
 Empty constructor.
virtual int transparency ()
 Returns the percentage of transparency used in polygons and cells.
virtual void transparency (int t)
 Sets the percentage of transparency for polygons and cells.
virtual int width ()
 Returns the width.
virtual void width (int w)
 Sets the width.
virtual ~TeVisual ()
 Destructor.

Static Public Member Functions

static TeVisualDefaultObject ()
 Returns a default visual object.

Protected Attributes

TeBaseVisualParams params_

Constructor & Destructor Documentation

TeVisual::TeVisual ( TeGeomRep  rep = TePOLYGONS  ) 

Definition at line 217 of file TeVisual.cpp.

00217                                 : 
00218                 params_ (TeBaseVisualParams(rep, "tevisual"))
00219 {
00220 }

virtual TeVisual::~TeVisual (  )  [inline, virtual]

Definition at line 177 of file TeVisual.h.

00177 {}

TeVisual::TeVisual ( const TeVisual other  ) 

Definition at line 223 of file TeVisual.cpp.

References params_.

00224 {       
00225         params_ = other.params_;
00226 }


Member Function Documentation

virtual double TeVisual::alignmentHoriz (  )  [inline, virtual]

Definition at line 311 of file TeVisual.h.

00312         { return params_.alignmentHoriz_; }

virtual void TeVisual::alignmentHoriz ( double  a  )  [inline, virtual]

Definition at line 307 of file TeVisual.h.

Referenced by TeDatabasePortal::getVisual(), and TeDatabase::updateVisual().

00308         { params_.alignmentHoriz_ = a; }

virtual double TeVisual::alignmentVert (  )  [inline, virtual]

Definition at line 303 of file TeVisual.h.

00304         { return params_.alignmentVert_; }

virtual void TeVisual::alignmentVert ( double  a  )  [inline, virtual]

Definition at line 299 of file TeVisual.h.

Referenced by TeDatabasePortal::getVisual(), and TeDatabase::updateVisual().

00300         { params_.alignmentVert_ = a; }

virtual bool TeVisual::bold (  )  [inline, virtual]

Definition at line 279 of file TeVisual.h.

00280         { return params_.bold_; }

virtual void TeVisual::bold ( bool  b  )  [inline, virtual]

Definition at line 275 of file TeVisual.h.

Referenced by TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), TeQtCanvas::plotGraphicScale(), TeQtCanvas::plotLegend(), plotTextWV(), and TeDatabase::updateVisual().

00276         { params_.bold_ = b; }

void TeVisual::clear ( void   )  [virtual]

Definition at line 246 of file TeVisual.cpp.

References TeBaseVisualParams::clear(), and params_.

00247 {
00248         params_.clear();
00249 }

virtual TeColor& TeVisual::color (  )  [inline, virtual]

Definition at line 199 of file TeVisual.h.

00200         { return params_.color_; }

virtual void TeVisual::color ( const TeColor color  )  [inline, virtual]

Examples:
createTheme.cpp, rasterSlicing.cpp, and themeGrouping.cpp.

Definition at line 195 of file TeVisual.h.

Referenced by TeLegendEntry::color(), TeTheme::createRasterVisual(), TeExternalTheme::createRasterVisual(), TeAbstractTheme::createRasterVisual(), TeQtLegendItem::drawLineRep(), TeQtCanvas::drawLineRep(), TeQtLegendItem::drawPointRep(), TeQtCanvas::drawPointRep(), TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), generateCountLegends(), TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), getVisual(), getVisualRemote(), main(), TeGraphPlot::pieLegends(), TeGraphPlot::plotCurves(), TeQtCanvas::plotGraphicScale(), TeQtCanvas::plotLegend(), TeQtLegendSource::putColorOnLegend(), TeAbstractTheme::TeAbstractTheme(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00196         {       params_.color_ = color;}

virtual TeColor& TeVisual::contourColor (  )  [inline, virtual]

Definition at line 223 of file TeVisual.h.

00224         { return params_.contourColor_; }

virtual void TeVisual::contourColor ( const TeColor color  )  [inline, virtual]

Examples:
rasterSlicing.cpp.

Definition at line 219 of file TeVisual.h.

Referenced by TeLegendEntry::color(), TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), TeDatabasePortal::getVisual(), main(), TeQtCanvas::plotLegend(), TeAbstractTheme::TeAbstractTheme(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00220         { params_.contourColor_ = color;}

virtual int TeVisual::contourStyle (  )  [inline, virtual]

Definition at line 247 of file TeVisual.h.

00248         { return params_.contourSymbId_; }

virtual void TeVisual::contourStyle ( int  s  )  [inline, virtual]

Examples:
rasterSlicing.cpp.

Definition at line 243 of file TeVisual.h.

Referenced by TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), TeDatabasePortal::getVisual(), main(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00244         { params_.contourSymbId_ = s; }

virtual int TeVisual::contourTransparency (  )  [inline, virtual]

Definition at line 231 of file TeVisual.h.

00232         { return params_.contourTransparency_; }

virtual void TeVisual::contourTransparency ( int  t  )  [inline, virtual]

Definition at line 227 of file TeVisual.h.

Referenced by TeDatabasePortal::getVisual(), and TeDatabase::updateVisual().

virtual int TeVisual::contourWidth (  )  [inline, virtual]

Definition at line 239 of file TeVisual.h.

00240         { return params_.contourWidth_; }

virtual void TeVisual::contourWidth ( int  w  )  [inline, virtual]

Examples:
rasterSlicing.cpp.

Definition at line 235 of file TeVisual.h.

Referenced by TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), TeDatabasePortal::getVisual(), main(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00236         { params_.contourWidth_ = w; }

virtual TeVisual* TeVisual::copy (  )  [inline, virtual]

Definition at line 339 of file TeVisual.h.

Referenced by generateCountLegends(), TeLegendEntry::operator=(), TeQtLegendSource::putColorOnLegend(), TeAbstractTheme::setGroupingVisual(), TeLegendEntry::setVisual(), and TeAbstractTheme::TeAbstractTheme().

00340         {
00341                 TeVisual* retval = new TeVisual();
00342                 *retval = *this;
00343                 return retval;
00344         }

static TeVisual* TeVisual::DefaultObject (  )  [inline, static]

Definition at line 347 of file TeVisual.h.

00348         { return new TeVisual(); }

virtual string TeVisual::family (  )  [inline, virtual]

Definition at line 271 of file TeVisual.h.

00272         { return params_.family_ ; }

virtual void TeVisual::family ( string  f  )  [inline, virtual]

Definition at line 267 of file TeVisual.h.

Referenced by TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), TeQtCanvas::plotGraphicScale(), TeQtCanvas::plotLegend(), plotTextWV(), setTextAttributes(), TeQtCanvas::textRect(), and TeDatabase::updateVisual().

00268         { params_.family_ = f; }

virtual bool TeVisual::fixedSize (  )  [inline, virtual]

Definition at line 295 of file TeVisual.h.

00296         { return params_.fixedSize_; }

virtual void TeVisual::fixedSize ( bool  i  )  [inline, virtual]

Definition at line 291 of file TeVisual.h.

Referenced by TeQtTextEdit::change(), TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), TeQtCanvas::plotLegend(), plotTextWV(), TeQtCanvas::textRect(), and TeDatabase::updateVisual().

00292         { params_.fixedSize_ = i; }

virtual bool TeVisual::italic (  )  [inline, virtual]

Definition at line 287 of file TeVisual.h.

00288         { return params_.italic_; }

virtual void TeVisual::italic ( bool  i  )  [inline, virtual]

Definition at line 283 of file TeVisual.h.

Referenced by TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), TeQtCanvas::plotGraphicScale(), TeQtCanvas::plotLegend(), plotTextWV(), and TeDatabase::updateVisual().

00284         { params_.italic_ = i; }

virtual int TeVisual::lineSpace (  )  [inline, virtual]

Definition at line 327 of file TeVisual.h.

00328         { return params_.lineSpace_; }

virtual void TeVisual::lineSpace ( int  s  )  [inline, virtual]

Definition at line 323 of file TeVisual.h.

Referenced by TeDatabasePortal::getVisual(), and TeDatabase::updateVisual().

00324         { params_.lineSpace_ = s; }

TeVisual & TeVisual::operator= ( const TeVisual vis  )  [virtual]

Definition at line 230 of file TeVisual.cpp.

References params_.

00231 {
00232         if ( this != &vis )
00233                 params_ = vis.params_;
00234         return *this;
00235 }

bool TeVisual::operator== ( const TeVisual vis  )  [virtual]

Definition at line 239 of file TeVisual.cpp.

References params_.

00240 {
00241         return ( params_ == vis.params_);
00242 }

virtual void TeVisual::ptAngle ( int  p  )  [inline, virtual]

Definition at line 335 of file TeVisual.h.

00336         {params_.ptAngle_ = p;}

virtual int TeVisual::ptAngle (  )  [inline, virtual]

Definition at line 331 of file TeVisual.h.

Referenced by plotTextWV(), and TeDatabase::updateVisual().

00332         {return params_.ptAngle_; }

void TeVisual::setBasic ( TeVisual vis  )  [virtual]

Definition at line 253 of file TeVisual.cpp.

References params_, and TeBaseVisualParams::setBasic().

00254 {
00255         params_.setBasic(vis.params_);
00256 }

virtual int TeVisual::size ( void   )  [inline, virtual]

Definition at line 263 of file TeVisual.h.

00264         { return params_.sizeValue_; }

virtual void TeVisual::size ( int  s  )  [inline, virtual]

Definition at line 259 of file TeVisual.h.

Referenced by TeQtLegendItem::drawPointRep(), TeQtCanvas::drawPointRep(), TeQtCanvas::getLegendRect(), TeAppTheme::getTextVisual(), TeDatabasePortal::getVisual(), TeQtCanvas::plotGraphicScale(), TeQtCanvas::plotLegend(), plotTextWV(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), TeQtCanvas::textRect(), and TeDatabase::updateVisual().

00260         { params_.sizeValue_ = s; }

virtual int TeVisual::style (  )  [inline, virtual]

Definition at line 207 of file TeVisual.h.

00208         { return params_.symbId_; }

virtual void TeVisual::style ( int  s  )  [inline, virtual]

Examples:
createTheme.cpp.

Definition at line 203 of file TeVisual.h.

Referenced by TeLegendEntry::color(), TeQtLegendItem::drawLineRep(), TeQtCanvas::drawLineRep(), TeQtLegendItem::drawPointRep(), TeQtCanvas::drawPointRep(), TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), getVisual(), TeDatabasePortal::getVisual(), main(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00204         { params_.symbId_ = s; }

virtual int TeVisual::tabSize (  )  [inline, virtual]

Definition at line 319 of file TeVisual.h.

00320         { return params_.tabSize_; }

virtual void TeVisual::tabSize ( int  s  )  [inline, virtual]

Definition at line 315 of file TeVisual.h.

Referenced by TeDatabasePortal::getVisual(), and TeDatabase::updateVisual().

00316         { params_.tabSize_ = s; }

virtual int TeVisual::transparency (  )  [inline, virtual]

Definition at line 215 of file TeVisual.h.

00216         { return params_.transparency_; }

virtual void TeVisual::transparency ( int  t  )  [inline, virtual]

Examples:
rasterSlicing.cpp.

Definition at line 211 of file TeVisual.h.

Referenced by TeQtLegendItem::drawPolygonRep(), TeQtCanvas::drawPolygonRep(), getVisual(), TeDatabasePortal::getVisual(), main(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00212         { params_.transparency_ = t; }

virtual int TeVisual::width (  )  [inline, virtual]

Definition at line 255 of file TeVisual.h.

00256         { return params_.width_; }

virtual void TeVisual::width ( int  w  )  [inline, virtual]

Definition at line 251 of file TeVisual.h.

Referenced by TeQtLegendItem::drawLineRep(), TeQtCanvas::drawLineRep(), TeDatabasePortal::getVisual(), TePlotFrame(), TePlotObjects(), TePlotSelectedObjects(), and TeDatabase::updateVisual().

00252         { params_.width_ = w; }


Field Documentation

TeBaseVisualParams TeVisual::params_ [protected]

Definition at line 351 of file TeVisual.h.

Referenced by clear(), operator=(), operator==(), setBasic(), and TeVisual().


The documentation for this class was generated from the following files:
Generated on Sun Jul 29 04:11:37 2012 for TerraLib - Development Source by  doxygen 1.5.3