An NDoc Documented Class Library

ActiveCtrl Class

The ActiveCtrl inherits from an entity. It holds properties and methods to implement interactive manipulations of graphical datas.
It is bouded to a Device and is located as child of Work With the Mouse- and Keyevents you have an instrument to handle actions of an user. The methods ctrlMarker, ctrlLine,ctrlCurve and ctrlPoly are nice drawmethods. They change the Color ( HoverColor if the mouse lays over it. By a click you get information about the tag, which is setted as parameter to these methods.

...
protected override void draw(MNDevice device)
    { 
    ...
        ctrlMarker(new xyz(4, 4, 0), 2006);
        // draws a marker at position (4 / 4/ 0)
        // if the mouse moves over this marker then it will be highlighted with 
        //hovercolor
        ctrlMarker(new xyz(0, 4, 0), 2007);
        ctrlMarker(new xyz(0, 0, 0), 2008);
        
    ...
        
    }

protected override void MouseMove( System.Windows.Forms.MouseEventArgs e)
    {
    if (CurrentHit!=null)
     switch ((int)CurrentHit.Tag)
     {
        case 2006 :// Mouse is at Marker  4/ 4/ 0 
                    break;
        case 2007 :// Mouse is at Marker  0/ 4/ 0 
                    break;
        case 2008 :// Mouse is at Marker  0/ 0/ 0 
                    break;
     }
    }
...

For a list of all members of this type, see ActiveCtrl Members.

System.Object
   Minais.Drawing3d.MNComponent
      Minais.Drawing3d.Entity
         Minais.Drawing3d.DrawCtrl
            Minais.Drawing3d.ActiveCtrl
               Minais.Drawing3d.HelpGeometry2D
               Minais.Drawing3d.RectCtrl
               Minais.Drawing3d.TaskCtrl

public class ActiveCtrl : DrawCtrl, IEvents

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Minais.Drawing3d

Assembly: Drawing3d (in Drawing3d.dll)

See Also

ActiveCtrl Members | Minais.Drawing3d Namespace