|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiGraphicsPattern.h>
Inheritance diagram for lti::linePattern:


Public Member Functions | |
| linePattern () | |
| linePattern (const ivector &d, int o) | |
| linePattern (const linePattern &o) | |
| virtual | ~linePattern () |
| virtual rectangle | getBoundingBox () const |
| bool | isSet (int i) const |
| void | getDash (ivector &d, int &o) const |
| linePattern & | copy (const linePattern &other) |
| linePattern & | operator= (const linePattern &other) |
| virtual object * | clone () const |
| virtual void | clear () |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Static Public Member Functions | |
| static linePattern * | createDashed (int d) |
A line pattern is simply an array of T, encoding "on" and "off", and an offset, which determines the start. Example:
int p1[4]={2,3,1,2}; ivector p(4,p1); int offset=0; linePattern<int> pat(p,offset);
** * ** * ** * ** ...
|
|
Default constructor. Creates a pattern for a continous line. |
|
||||||||||||
|
Constructor. Constructs a line pattern with the given dash intervals and the given offset.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Resets this pattern to its default state.
Implements lti::graphicsPattern. |
|
|
create a clone of this pointList
Implements lti::graphicsPattern. |
|
|
assigment operator.
copy the contents of
|
|
|
This method returns a line pattern suitable for dashed lines.
|
|
|
Returns the bounding box of this pattern. This is not really useful except that the returned rectangle's width gives the length of one pattern. Implements lti::graphicsPattern. |
|
||||||||||||
|
Vector-oriented draw functors can use this method to obtain the dash definition.
|
|
|
This is the main application function for pixel-base draw functors. The method should be called with an argument denoting the number of pixel that is supposed to be drawn. The method then returns true if the pixel is permitted by the pattern, or not.
|
|
|
assigment operator (alias for copy(other)).
|
|
||||||||||||
|
read the pattern from the given ioHandler
Reimplemented from lti::graphicsPattern. |
|
||||||||||||
|
write the pattern to the given ioHandler
Reimplemented from lti::graphicsPattern. |