Drawing3d documented Class Library

HitItemList.Primitives Enumeration

Enumerates the primitives, which are supported by a device. It is the type of KindOfPrimitiv in HitItem

[Visual Basic]
Public Enum Primitives
[C#]
public enum Primitives

Example

// code snippet
HitItem h = Device.HititemList[0];
switch (h.KindOfPrimitiv)
{
    case HitItemList.Primitives.Line:{drawLineInfo L = (drawLineInfo)h.Info;
                            // this typecast works
                            // now you have the LineInformations L.A, L.B, L.param
                            return;
                            }
    case HitItemList.Primitives.Surface:{drawSurfaceInfo S = (drawSurfaceInfo)h.Info;
                            // this typecast works
                            // now you have the SurfaceInformations
                            // S.UIndex and S.VIndex
                            return;
                            }

}

Members

Member Name Description
Line Hit is invoked by the primitive drawLine
PolyLine Hit is invoked by the primitive drawPolyLine
PolyPolyLine Hit is invoked by the primitive drawPolyPolyLine
Curve Hit is invoked by the primitive drawCurve
PolyCurve Hit is invoked by the primitive drawPolyCurve
PolyPolyCurve Hit is invoked by the primitive drawPolyPolyCurve
Point Hit is invoked by the primitive drawPoint
Text Hit is invoked by the primitive drawText
Bitmap Hit is invoked by the primitive drawImage
Surface Hit is invoked by the primitive drawSurface
Mesh Hit is invoked by the primitive drawMesh

Requirements

Namespace: Drawing3d

Assembly: Drawing3d (in Drawing3d.dll)

See Also

Drawing3d Namespace