Compass plugin, indicating text and optionally an angle.
More...
Inherits ExtendedOverlayPluginBase< PluginData.CompassPlugInData >.
|
| CompassOverlay (string text, bool canDrag, System.Drawing.Color color, bool xorPaint, Point location, int length, Angle angle, int baseRadius, int circleRadius, int penWidth, int fontSize, bool opaqueLabel, NeedleMode mode, bool showAngle, object tag) |
| Standard Constructor for Compass overlays. More...
|
|
| CompassOverlay (string text, bool canDrag, System.Drawing.Color color, bool xorPaint, Point location, int length, Angle angle, int baseRadius, int circleRadius, int penWidth, int fontSize, bool opaqueLabel, NeedleMode mode, bool showAngle) |
| Standard Constructor for Compass overlays. More...
|
|
override OverlayPluginBase | Clone () |
| Virtual copy Constructor. More...
|
|
|
override PluginData.CompassPlugInData | CreatePluginData () |
| Create the plugin data structure for later use. More...
|
|
| ExtendedOverlayPluginBase (string text, bool canDrag, System.Drawing.Color color, bool xorPaint, bool filled, Point[] vertices, OverlayPluginInfo info, object tag) |
| Standard constructor for overlays with a plugin data structure. More...
|
|
override OverlayPluginWrapper | CreateOverlayWrapper () |
| overrideable creation function for overlay wrapper objects More...
|
|
abstract TData | CreatePluginData () |
| Inheritors must override this and in the override prepare the plugin data reflecting the OPI's current state (depending usually on the current values of the Overlay object's properties) More...
|
|
virtual void | OpiDataPropertyChanged () |
| A property that is relevant for the opi data structure has been changed; as a consequence, the opi may potentially need to be re-generated in order to reflect the changes.
|
|
virtual void | OpiDataPropertyChanged (bool skipDestroyAndCreate) |
| A property that is relevant for the opi data structure has been changed; as a consequence, the opi may potentially need to be re-generated in order to reflect the changes. More...
|
|
|
bool | ShowAngle [get, set] |
| Indicates whether or not the overlay should display the current angle.
|
|
NeedleMode | NeedleMode [get, set] |
| Gets or sets the compass needle behavior.
|
|
bool | OpaqueLabel [get, set] |
| true: a white rectangle will be painted under the label text in order to improve visibility of the text label; false: the text background will be transparent.
|
|
int | FontSize [get, set] |
| Font size for the compass label. More...
|
|
int | PenWidth [get, set] |
| Width of the pen to be used for painting. More...
|
|
int | CircleRadius [get, set] |
| Radius of the additional circle around the base.
|
|
int | BaseRadius [get, set] |
| Radius of the compass needle's base.
|
|
Angle | Angle [get, set] |
| Direction of the compass needle (in radians).
|
|
new bool | Filled [get, set] |
| Filled property is always true.
|
|
new string | Text [get, set] |
| Text to be displayed on the compass label.
|
|
int | Length [get, set] |
| Length of the compass needle.
|
|
Point | Location [get, set] |
| Location of the Compass.
|
|
|
TData | opiData_ |
| The plugin-specific data structure
|
|
Compass plugin, indicating text and optionally an angle.
◆ CompassOverlay() [1/2]
CompassOverlay |
( |
string |
text, |
|
|
bool |
canDrag, |
|
|
System.Drawing.Color |
color, |
|
|
bool |
xorPaint, |
|
|
Point |
location, |
|
|
int |
length, |
|
|
Angle |
angle, |
|
|
int |
baseRadius, |
|
|
int |
circleRadius, |
|
|
int |
penWidth, |
|
|
int |
fontSize, |
|
|
bool |
opaqueLabel, |
|
|
NeedleMode |
mode, |
|
|
bool |
showAngle, |
|
|
object |
tag |
|
) |
| |
Standard Constructor for Compass overlays.
- Parameters
-
text | status line string |
canDrag | dragable or not |
color | color |
xorPaint | paint mode |
location | location of the compass |
length | length of the compass needle |
angle | orientation of the compass needle |
baseRadius | Radius of the circle at the compass base. |
circleRadius | Radius of the outer circle around the compass base. |
penWidth | pen width with which to paint the compass circle |
fontSize | size of the compass label text |
opaqueLabel | opacity of the compass label |
mode | needle mode |
showAngle | set to true to display the angle |
tag | object to be associated witht his overlay |
◆ CompassOverlay() [2/2]
CompassOverlay |
( |
string |
text, |
|
|
bool |
canDrag, |
|
|
System.Drawing.Color |
color, |
|
|
bool |
xorPaint, |
|
|
Point |
location, |
|
|
int |
length, |
|
|
Angle |
angle, |
|
|
int |
baseRadius, |
|
|
int |
circleRadius, |
|
|
int |
penWidth, |
|
|
int |
fontSize, |
|
|
bool |
opaqueLabel, |
|
|
NeedleMode |
mode, |
|
|
bool |
showAngle |
|
) |
| |
Standard Constructor for Compass overlays.
- Parameters
-
text | status line string |
canDrag | dragable or not |
color | color |
xorPaint | paint mode |
location | location of the compass |
length | length of the compass needle |
angle | orientation of the compass needle |
baseRadius | Radius of the circle at the compass base. |
circleRadius | Radius of the outer circle around the compass base. |
penWidth | pen width with which to paint the compass circle |
fontSize | size of the compass label text |
opaqueLabel | opacity of the compass label |
mode | needle mode |
showAngle | set to true to display the angle |
◆ Clone()
◆ CreatePluginData()
◆ FontSize
Font size for the compass label.
- Exceptions
-
ArgumentException | when trying to set a font size smaller than 1 |
◆ PenWidth
Width of the pen to be used for painting.
- Exceptions
-
ArgumentException | If the pen width is 0 or less |