A GraphicStroke defines a repeated-linear graphic pattern to be used for stroking a line. More...
#include <GraphicStroke.h>
  
 Public Member Functions | |
| GraphicStroke * | clone () const | 
| It creates a new copy of this object.  More... | |
Initializer Methods  | |
Methods related to instantiation and destruction.  | |
| GraphicStroke () | |
| It initializes a new GraphicStroke.  More... | |
| ~GraphicStroke () | |
| Destructor.  More... | |
Accessor methods  | |
Methods used to get or set properties.  | |
| void | setGraphic (Graphic *g) | 
| It specifies the linear graphic.  More... | |
| const Graphic * | getGraphic () const | 
| void | removeGraphic () | 
| void | setInitialGap (ParameterValue *initialGap) | 
| It specifies how far away the first graphic will be drawn relative to the start of the rendering line.  More... | |
| const ParameterValue * | getInitialGap () const | 
| void | setGap (ParameterValue *gap) | 
| It sets the distance between two graphics.  More... | |
| const ParameterValue * | getGap () const | 
Private Attributes | |
| ParameterValue * | m_gap | 
| It defines the empty space between two Graphics or Labels. (Optional)  More... | |
| Graphic * | m_graphic | 
| It specifies the linear graphic. (Mandatory)  More... | |
| ParameterValue * | m_initialGap | 
| It defines the initial empty space, before the first Graphic or Label should be rendered. (Optional)  More... | |
A GraphicStroke defines a repeated-linear graphic pattern to be used for stroking a line.
Definition at line 50 of file GraphicStroke.h.
| te::se::GraphicStroke::GraphicStroke | ( | ) | 
It initializes a new GraphicStroke.
Definition at line 31 of file GraphicStroke.cpp.
| te::se::GraphicStroke::~GraphicStroke | ( | ) | 
Destructor.
Definition at line 38 of file GraphicStroke.cpp.
| te::se::GraphicStroke * te::se::GraphicStroke::clone | ( | ) | const | 
It creates a new copy of this object.
Definition at line 78 of file GraphicStroke.cpp.
References setGap(), setGraphic(), and setInitialGap().
Referenced by te::se::Stroke::clone().
| const te::se::ParameterValue * te::se::GraphicStroke::getGap | ( | ) | const | 
Definition at line 73 of file GraphicStroke.cpp.
Referenced by te::serialize::Save().
| const te::se::Graphic * te::se::GraphicStroke::getGraphic | ( | ) | const | 
Definition at line 51 of file GraphicStroke.cpp.
Referenced by te::serialize::Save().
| const te::se::ParameterValue * te::se::GraphicStroke::getInitialGap | ( | ) | const | 
Definition at line 62 of file GraphicStroke.cpp.
Referenced by te::serialize::Save().
| void te::se::GraphicStroke::removeGraphic | ( | ) | 
| void te::se::GraphicStroke::setGap | ( | ParameterValue * | gap | ) | 
It sets the distance between two graphics.
| gap | The initial gap. | 
Definition at line 67 of file GraphicStroke.cpp.
Referenced by clone().
| void te::se::GraphicStroke::setGraphic | ( | Graphic * | g | ) | 
It specifies the linear graphic.
Proper stroking with a linear graphic requires two "hot-spot" points within the space of the graphic to indicate where the rendering line starts and stops. In the case of raster images with no special mark-up, this line will be assumed to be middle pixel row of the image, starting from the first pixel column and ending at the last pixel column.
| g | The linear graphic. | 
Definition at line 45 of file GraphicStroke.cpp.
Referenced by clone().
| void te::se::GraphicStroke::setInitialGap | ( | ParameterValue * | initialGap | ) | 
It specifies how far away the first graphic will be drawn relative to the start of the rendering line.
| initialGap | The initial gap. | 
Definition at line 56 of file GraphicStroke.cpp.
Referenced by clone().
      
  | 
  private | 
It defines the empty space between two Graphics or Labels. (Optional)
Definition at line 122 of file GraphicStroke.h.
      
  | 
  private | 
It specifies the linear graphic. (Mandatory)
Definition at line 120 of file GraphicStroke.h.
      
  | 
  private | 
It defines the initial empty space, before the first Graphic or Label should be rendered. (Optional)
Definition at line 121 of file GraphicStroke.h.