Drawing3d documented Class Library

SolidBox Members

SolidBox overview

Public Instance Constructors

SolidBox Overloaded. Initializes a new instance of the SolidBox class.

Public Instance Fields

Catchenabled (inherited from Entity) If Catchenabled is false, you cannot hit the entity, otherwise it is a candidate to catch them with the mousepointer. Default is true; Select
Children (inherited from MNComponent)
EdgeCurveList (inherited from Solid) Liste von 3D-Curven, die die Kanten des Körpers bescheiben. Im Shellmodell ist der Count = 0.
GenerateNames (inherited from MNComponent) If GenerateNames is true, a Name will be generated, if the parent is set to a component which has no name. With GenerateNames is guaranteed, that every member of a tree (except the root) has a unique name and there is a fullpath, with which the element can be identified.
Model (inherited from Solid) Enthält das Modell thes Körpers: Model
UpDateCount (inherited from MNComponent) Sets or gets a counter. It will be incremented by the method UpDating and deremented by UpDated. If it is 0 then UpDate is called.

Public Instance Properties

Base (inherited from Entity) Base is an other aspect of Transformation. She is given from Transformation by the conversion with toBase For some it is easier to work with a base as with a transformation. It is also easier to imagine it as a base. All coordinates, used in the drawmethod of the entity are taken relative to this base.
Count (inherited from MNComponent) Returns the count of children
EdgeList (inherited from Solid) Enthält die Kanten des Solids. Kanten sind vom Typ Edge. Es gibt zu jeder "physikalischen" Kante eines Soldis zwei Kanten vom Typ Edge. Für zwei Punkte A und B gibt es eine Kante von A nach B und eine von B nach A
FaceList (inherited from Solid) Besteht aus Oberflächen, die das Solid begrenzen: Faces. Diese Faces bestimmen die Geometrie und die Topologie ( im Fall Model = Solid) des Körpers.
Global (inherited from Entity) Get a transformation to global coordinates. The transformation of all ancestors of an entity will be multiplyed and returned.
Item (inherited from MNComponent) The default indexer retrieves and sets MNComponents
Name (inherited from MNComponent) Name of the component.
PaintChildren (inherited from Entity) If PaintChildren is true, all children will be drawn. The default value is true.
Parent (inherited from MNComponent) Sets or gets the parent of the component and looks for the correct and unique name.
See also GenerateNames, setParent
Size Größe des Quaders in x, y, z.
SmoothAngle (inherited from Solid) Wenn zwei oberflächen aneinanderstoßen, so kann es sein, dass an den Kanten ein kleiner ( ungewollter) Unterschied der Oberflächen normalen ist. Bei der Ausgabe in einer Device ergeben sich dann "harte" Kanten. Um dies zu verhindern kann man einen Smoothangle setzen. Ist der Unterschied der Normalenrichtungen kleiner als der Smoothangle, so werden die die Normalen bei der Ausgabe so angepasst, dass der Übergang weich ist. Standard ist 0.01.
Tag (inherited from MNComponent) A free programmable property, which is not stored in a file.
Transformation (inherited from Entity) Every Entity has a transformation which is called in the Paint-method. This transformation is also valid for a child and a child's child and so on.
VertexList (inherited from Solid) Enthält alle Eckpunkte eines Körpers. Die Koordinaten zweier verschiedener Punkte sind im Allgemeinen gleich, aber es kann durchaus vorkommen, dass sie übereinstimmen.
Die Punkte sind Klassen vom Typ Vertex3d.
Visible (inherited from Entity) If Visible = true the the entity will be drawn. Default is true

Public Instance Methods

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

Clear (inherited from Solid) Leert alle Listen.
Copy (inherited from Solid) Erstellt eine Kopie des Körpers durch den Aufruf eines NicerXMLFormatters.
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.
GetSurfaceEdge (inherited from Solid) Sucht eine Kante, die zu den zwei Vertices A und B gehört.
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
NewParamCurves (inherited from Solid) Erstellt neue ParamCurves durch Aufruf von der Methode To2dCurve für jede EdgeCurve der Begrenzungen aller Flächen. Abschließend wird RefreshParamCurves
Paint (inherited from Entity) This method is called by Paint. She sets the Transformation
Refresh Berechnet den Quader neu und setzt eine neue Vertexliste.
RefreshParamCurves (inherited from Solid) Erneuert die ParamCurves durch Übernahme der ParamCurve
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.

Public Instance Events

OnDisposed (inherited from MNComponent)
OnDraw (inherited from Entity) From draw a OnDraw-event is fired. You can use them. So you don`t have to derive a component.
OnPaint (inherited from Entity) Event called by Paint
OnUpdate (inherited from MNComponent) This event is called by UpDate
OnUpdating (inherited from MNComponent) This event is called by UpDating

Protected Instance Methods

Disposed (inherited from MNComponent) Setzt den Parent auf null.
draw (inherited from Solid) Überschreibt die draw-Method und ruft die Drawmethoden draw von jedem Face auf.
Finalize (inherited from Object) 
GetFaceList (inherited from Solid) Virtuelle Get-Methode für die Property FaceList
GetTransformation (inherited from Entity) GetMethod of the property Transformation
MemberwiseClone (inherited from Object) 
SetFaceList (inherited from Solid) Virtuelle Set-Methode der Property FaceList
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

SolidBox Class | Drawing3d.Solids Namespace