Drawing3d documented Class Library

DrawCtrl Methods

The methods of the DrawCtrl class are listed below. For a complete list of DrawCtrl class members, see the DrawCtrl Members topic.

Public Instance Methods

activateColor Activates a color in the device, depending on the PolygonMode. If PolygonMode has the value Fill, the ambient part of Material will be set. Otherwise PenColor
Add (inherited from Entity) Adds a Entity E as child.
addChild (inherited from MNComponent) Adds an elment in the list.
checkuniquename (inherited from MNComponent) If the parent is setted, this method returns a name, consisting of value and a number, so that it is unique in his parent.
ChildByName (inherited from MNComponent) Retrieves the index of child by a name.
ChildByPathName (inherited from MNComponent) You can get a MNComponent by setting a fullpath relative to the given MNComponent. The names are seperated by "/".
MNComponent root = new MNComponent();
MNComponent a = new MNComponent();
MNComponent b = new MNComponent();
MNComponent c = new MNComponent();
a.Name = "Frank";
b.Name = "Joe";
c.Name = "Sam";
c.Parent = b;
b.Parent = a;
a.Parent = root;
MNComponent d = root.ChildByPathName("Frank/Joe/Sam");
// d is then the component c

ctrlCircleOverloaded. Draws a controlled circle.
ctrlCurve Draws an active Curve C, which will be highlighted by the HoverColor if the mouse moves over it. With the parameter Tag you can set informations to identify the curve in an other context.
CtrlDisplaylist Draws a controlled display list
ctrlLineOverloaded. Draws an active line from A to B, which will be highlighted by the HoverColor if the coursor crosses it. With the parameter Tag you can set informations to identify the line in an other context.
ctrlMarkerOverloaded. Draws an active marker, which will be highlighted by the HoverColor if the mousepcursor passes it. With the parameter Tag you can set informations to identify the marker in an other context.
ctrlPolyOverloaded. Draws an active polygon a, which will be highlighted by the HoverColor if the cursor moves over it. With the parameter Tag you can set informations to identify the polygon in an other context.
CtrlRectOverloaded. Draws a rectangle given by two points A and B. Additionally it draws 9 marker at the edgepoints, the midpoints of the lines and the center of the rectangle. For each marker a DrawCtrl.CtrlPointKind is set as Tag. So you can identify the marker with CurrentHit.Tag
CtrlRectMarker Draws a rectangle given by two points A and B. It draws marker dependig on "MarkerCount". For each marker a DrawCtrl.CtrlPointKind is set as Tag. So you can identify the marker with CurrentHit.Tag
Equals (inherited from Object) 
fullPath (inherited from MNComponent) Gives the full path of the component over all ancestors until a null-parent occurs. This parent is often called the root. To separate the names "/" is used.
GetEnumerator (inherited from MNComponent) Returns the Enumerator of an intern ArrayList
GetHashCode (inherited from Object) 
getName (inherited from MNComponent) Returns the name
getPath (inherited from MNComponent) Returns a path, whose member are separated by "/" beginning with "/"
getRoot (inherited from MNComponent) Implements the ISerializePath interface. If parent is null then it returns the object itself.
GetType (inherited from Object) 
InsertChild (inherited from MNComponent) Insert a MNComponentobject at position index.
MoveTO (inherited from MNComponent) Moves a children-component to a position
Paint Overrides the Paint-method and sets Penwidth, PenStyle and PenColor.
RemoveChild (inherited from MNComponent) Removes a component.
ToString (inherited from Object) 
Transform (inherited from Entity) Implements ITransform: the transformation will be multiplied by the Matrix T.
UpDate (inherited from Entity) Overrides the UpDate- method and informs the MNDevice, that the contents have changed.
UpDated (inherited from Entity) Overrides the UpDated-method and informs all devices in which the entity is visible. So a change of an entity arouses changings in all devices.
UpDating (inherited from Entity) Overrides the UpDating-method and informs all devices in which the entity will be drawn by a call of their Updating-method.

Protected Instance Methods

Disposed (inherited from MNComponent) Setzt den Parent auf null.
draw (inherited from Entity) From the Paint-method a 'draw' is called. It is better to override drawmetod than the Paintmethod, because in the Paintmethod some calls enclose the drawmethod ( for example the transformation will be setted ).
DrawFloat Call the drawingmethods of those parts of a sketch, which should be fast changed (For example in a mouse move ). .
Finalize (inherited from Object) 
GetColor Virutal getmethod of the Color-property
GetTransformation (inherited from Entity) GetMethod of the property Transformation
MemberwiseClone (inherited from Object) 
SetColor Virutal setmethod of the Color-property
setDevice Setmethod of the property Device.
setParent (inherited from Entity) Overrides the setParentmethod, because in that case the visibility has changed.
SetTransformation (inherited from Entity) Setmethod of the property Transformation
SetVisible (inherited from Entity) Virtual setmethod of the Visible-property.

See Also

DrawCtrl Class | Drawing3d Namespace