Table of Contents

Class GeoPointHotSpot

Namespace
CADability.UserInterface
Assembly
CADability.dll

A simple hotspot (IHotSpot) at a fixed position that is not bound to a property entry: it has no tooltip and no context menu and is never hidden. Dragging it raises StartDragHotspotEvent, so the owner can start an action that modifies its object, e.g. the handle at the corner of a rectangle that changes its size. The owner creates the hotspot with its position and updates Position when the object changes. A GeoPointProperty is itself a hotspot, so this class is only needed where there is no point property behind the handle.

public class GeoPointHotSpot : IHotSpot
Inheritance
GeoPointHotSpot
Implements
Inherited Members

Constructors

GeoPointHotSpot(GeoPoint)

Creates a hotspot at the given position; it is initially not selected.

public GeoPointHotSpot(GeoPoint position)

Parameters

position GeoPoint

The position of the hotspot in world coordinates

Properties

Position

The position of the hotspot in world coordinates. The owner updates it when the object changes; setting it only stores the value, it does not repaint the hotspot.

public GeoPoint Position { get; set; }

Property Value

GeoPoint

ResourceId

Always null: this hotspot has no resource id and no label text.

public string ResourceId { get; }

Property Value

string

Methods

GetHotspotPosition()

Gets the position of the HotSpot

public virtual GeoPoint GetHotspotPosition()

Returns

GeoPoint

The position in the world coordinate system

Events

StartDragHotspotEvent

Raised when the user starts dragging the hotspot (left mouse button pressed on the hotspot and the mouse moved away). The handler typically starts an action that follows the mouse and modifies the object.

public event GeoPointHotSpot.StartDragHotspotDelegate StartDragHotspotEvent

Event Type

GeoPointHotSpot.StartDragHotspotDelegate