Click or drag to resize

ShapeDrawingManagerAddArrow Method (ListVertex3DItemCollection, Int32, Color, Color, Single, Single, Boolean)

화살표 추가

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public int AddArrow(
	List<Vertex3DItemCollection> vertex,
	int groupId,
	Color color,
	Color arrowColor,
	float thickness,
	float arrowSize,
	bool visible
)

Parameters

vertex
Type: System.Collections.GenericListVertex3DItemCollection
Vertex List Collection
groupId
Type: SystemInt32
Group Id
color
Type: System.DrawingColor
라인 색상
arrowColor
Type: System.DrawingColor
화살표 색상
thickness
Type: SystemSingle
라인 두께
arrowSize
Type: SystemSingle
화살표 크기
visible
Type: SystemBoolean
보이기/숨기기 상태

Return Value

Type: Int32
등록된 개체 ID
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    int groupId = 1;
    float thickness = 1.0f;
    float arrowSize = 3.0f;

    vizcore3d.BeginUpdate();

    int shapeId = vizcore3d.ShapeDrawing.AddArrow(
            GetVertexList()
            , groupId
            , System.Drawing.Color.White
            , System.Drawing.Color.Red
            , thickness
            , arrowSize
            , true
            );

    vizcore3d.EndUpdate();
}

private List<VIZCore3D.NET.Data.Vertex3DItemCollection> GetVertexList()
{
    List<VIZCore3D.NET.Data.Vertex3DItemCollection> vertex =
        new List<VIZCore3D.NET.Data.Vertex3DItemCollection>();

    VIZCore3D.NET.Data.BoundBox3D boundbox =
        vizcore3d.Object3D.GeometryProperty.FromSelectedObject3D(false).GetBoundBox();

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));

        vertex.Add(item);
    }

    {
        VIZCore3D.NET.Data.Vertex3DItemCollection item =
            new VIZCore3D.NET.Data.Vertex3DItemCollection();

        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));
        item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));

        vertex.Add(item);
    }

    return vertex;
}
See Also