All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::ScatterStyle Class Reference

#include <ScatterStyle.h>

Public Member Functions

ScatterStyleclone ()
 Returns a pointer to a clone of this ScatterStyle. More...
 
te::se::FillgetFill ()
 Returns a copy of the pointer to the scatter point's fill. More...
 
te::se::GraphicgetGraphic ()
 Returns a pointer to the scatter's graphic. More...
 
te::se::MarkgetMark ()
 Returns a copy of the pointer to the scatter's Mark. More...
 
te::se::StrokegetStroke ()
 Returns a copy of thepointer to the scatter point's stroke. More...
 
QwtSymbol * getSymbol ()
 Returns a pointer to a QwtSymbol representing the current scatter's point style. More...
 
 ScatterStyle ()
 Constructor. More...
 
 ScatterStyle (te::se::Graphic *graphic)
 Constructor. More...
 
void setFill (te::se::Fill *newFill)
 It sets the scatter point's fill. More...
 
void setGraphic (te::se::Graphic *newGraphic)
 It sets the he scatter's graphic. More...
 
void setMark (te::se::Mark *newMark)
 It sets the he scatter's mark. More...
 
void setStroke (te::se::Stroke *newStroke)
 It sets the scatter point's stroke. More...
 
 ~ScatterStyle ()
 Destructor. More...
 

Private Attributes

te::se::Graphicm_graphic
 The graphic used to edit the symbol's style. More...
 

Detailed Description

Definition at line 49 of file ScatterStyle.h.

Constructor & Destructor Documentation

te::qt::widgets::ScatterStyle::ScatterStyle ( )
te::qt::widgets::ScatterStyle::ScatterStyle ( te::se::Graphic graphic)

Constructor.

Parameters
graphicThe scatter's point graphic.

Definition at line 52 of file ScatterStyle.cpp.

te::qt::widgets::ScatterStyle::~ScatterStyle ( )

Destructor.

Definition at line 57 of file ScatterStyle.cpp.

Member Function Documentation

te::qt::widgets::ScatterStyle * te::qt::widgets::ScatterStyle::clone ( )

Returns a pointer to a clone of this ScatterStyle.

Returns
A ScatterStyle type clone of this ScatterStyle.
Note
The caller will take ownership of the returned pointer.

Definition at line 62 of file ScatterStyle.cpp.

References setGraphic().

Referenced by te::qt::widgets::ScatterStyleWidget::getScatterStyle(), and te::qt::widgets::ScatterChart::getScatterStyle().

te::se::Fill * te::qt::widgets::ScatterStyle::getFill ( )

Returns a copy of the pointer to the scatter point's fill.

Returns
A Fill type pointer to the scatter point's fill.
Note
The caller will take ownership of the returned pointer.
Will return a null pointer if the scatter's point does not have a Fill (f.e. if it's using an external graphic)

Definition at line 80 of file ScatterStyle.cpp.

References te::se::Fill::clone().

te::se::Graphic * te::qt::widgets::ScatterStyle::getGraphic ( )

Returns a pointer to the scatter's graphic.

Returns
A graphic type pointer to the scatter's point style.
Note
The caller will not take ownership of the returned pointer.

Definition at line 69 of file ScatterStyle.cpp.

te::se::Mark * te::qt::widgets::ScatterStyle::getMark ( )

Returns a copy of the pointer to the scatter's Mark.

Returns
A Mark type pointer to the scatter's point style.
Note
The caller will not take ownership of the returned pointer.

Definition at line 128 of file ScatterStyle.cpp.

References te::se::Mark::clone().

te::se::Stroke * te::qt::widgets::ScatterStyle::getStroke ( )

Returns a copy of thepointer to the scatter point's stroke.

Returns
A Fill type pointer to the scatter point's stroke.
Note
The caller will take ownership of the returned pointer.
Will return a null pointer if the scatter's point does not have a stroke (f.e. if it's using an external graphic)

Definition at line 104 of file ScatterStyle.cpp.

References te::se::Stroke::clone().

QwtSymbol * te::qt::widgets::ScatterStyle::getSymbol ( )

Returns a pointer to a QwtSymbol representing the current scatter's point style.

Returns
A QwtSymbol type pointer based on the current point's style.
Note
The caller will take ownership of the returned pointer.

Definition at line 138 of file ScatterStyle.cpp.

References te::qt::widgets::Terralib2Qwt().

Referenced by te::qt::widgets::ScatterChart::ScatterChart().

void te::qt::widgets::ScatterStyle::setFill ( te::se::Fill newFill)

It sets the scatter point's fill.

Parameters
newFillThe new fill.
Note
It will take ownership of the given pointer
The given pointer will not be used if the scatter's point is not currently represented by a Mark. The given pointer will simply be deleted.

Definition at line 92 of file ScatterStyle.cpp.

Referenced by te::qt::widgets::ChartConfigurer::config().

void te::qt::widgets::ScatterStyle::setGraphic ( te::se::Graphic newGraphic)

It sets the he scatter's graphic.

Parameters
newGraphicThe new graphic.
Note
It will take ownership of the given pointer

Definition at line 74 of file ScatterStyle.cpp.

Referenced by clone(), and te::qt::widgets::ChartConfigurer::config().

void te::qt::widgets::ScatterStyle::setMark ( te::se::Mark newMark)

It sets the he scatter's mark.

Parameters
newmarkThe new mark.
Note
It will take ownership of the given pointer

Definition at line 133 of file ScatterStyle.cpp.

void te::qt::widgets::ScatterStyle::setStroke ( te::se::Stroke newStroke)

It sets the scatter point's stroke.

Parameters
newFillThe new stroke.
Note
It will take ownership of the given pointer
The given pointer will not be used if the scatter's point is not currently represented by a Mark. The given pointer will simply be deleted.

Definition at line 116 of file ScatterStyle.cpp.

Referenced by te::qt::widgets::ChartConfigurer::config().

Member Data Documentation

te::se::Graphic* te::qt::widgets::ScatterStyle::m_graphic
private

The graphic used to edit the symbol's style.

Definition at line 157 of file ScatterStyle.h.

Referenced by ScatterStyle().


The documentation for this class was generated from the following files: