#include <rs_hatch.h>
Inheritance diagram for RS_Hatch:

Public Member Functions | |
| RS_Hatch (RS_EntityContainer *parent, const RS_HatchData &d) | |
| Constructor. | |
| virtual RS_Entity * | clone () |
| virtual RS2::EntityType | rtti () const |
| virtual bool | isContainer () const |
| RS_HatchData | getData () const |
| bool | validate () |
| Validates the hatch. | |
| int | countLoops () |
| bool | isSolid () const |
| void | setSolid (bool solid) |
| RS_String | getPattern () |
| void | setPattern (const RS_String &pattern) |
| double | getScale () |
| void | setScale (double scale) |
| double | getAngle () |
| void | setAngle (double angle) |
| virtual void | calculateBorders () |
| Recalculates the borders of this hatch. | |
| void | update () |
| Updates the Hatch. | |
| void | activateContour (bool on) |
| Activates of deactivates the hatch boundary. | |
| virtual void | draw (RS_Painter *painter, RS_GraphicView *view, double patternOffset=0.0) |
| Overrides drawing of subentities. | |
| virtual double | getLength () |
| virtual double | getDistanceToPoint (const RS_Vector &coord, RS_Entity **entity=NULL, RS2::ResolveLevel level=RS2::ResolveNone, double solidDist=RS_MAXDOUBLE) |
| Must be overwritten to get the shortest distance between this entity and a coordinate. | |
| virtual void | move (const RS_Vector &offset) |
| Implementations must move the entity by the given vector. | |
| virtual void | rotate (const RS_Vector ¢er, double angle) |
| Implementations must rotate the entity by the given angle around the given center. | |
| virtual void | scale (const RS_Vector ¢er, const RS_Vector &factor) |
| Implementations must scale the entity by the given factors. | |
| virtual void | mirror (const RS_Vector &axisPoint1, const RS_Vector &axisPoint2) |
| Implementations must mirror the entity by the given axis. | |
| virtual void | stretch (const RS_Vector &firstCorner, const RS_Vector &secondCorner, const RS_Vector &offset) |
| Implementations must stretch the given range of the entity by the given offset. | |
Protected Attributes | |
| RS_HatchData | data |
| RS_EntityContainer * | hatch |
| bool | updateRunning |
| bool | needOptimization |
|
|
|
|
|
|
|
||||||||||||||||||||
|
Must be overwritten to get the shortest distance between this entity and a coordinate.
Reimplemented from RS_EntityContainer. |
|
|
Reimplemented from RS_EntityContainer. |
|
|
Reimplemented from RS_EntityContainer. |
|
|
|
|
|
Reimplemented from RS_EntityContainer. |
|
||||||||||||||||
|
Implementations must stretch the given range of the entity by the given offset. This default implementation moves the whole entity if it is completely inside the given range. Reimplemented from RS_EntityContainer. |
|
|
Updates the Hatch. Called when the hatch or it's data, position, alignment, .. changes. Reimplemented from RS_EntityContainer. |
1.4.4