Search Results for

    Show / Hide Table of Contents

    Class Dataline

    Controls and Instance of a Line Component

    Inheritance
    Object
    VirgisFeature
    Dataline
    Implements
    IVirgisFeature
    IVirgisEntity
    Inherited Members
    VirgisFeature.mainMat
    VirgisFeature.selectedMat
    VirgisFeature.gisId
    VirgisFeature.gisProperties
    VirgisFeature.label
    VirgisFeature.SetMaterial(Material, Material)
    VirgisFeature.StartEditSession()
    VirgisFeature.ExitEditSession(Boolean)
    VirgisFeature.GetClosest(Vector3, Guid[])
    VirgisFeature.GetGeometry<T>()
    VirgisFeature.GetId()
    VirgisFeature.GetMetadata()
    VirgisFeature.Equals(Object)
    VirgisFeature.GetHashCode()
    VirgisFeature.Equals(VirgisFeature)
    Namespace: Virgis
    Assembly: cs.temp.dll.dll
    Syntax
    public class Dataline : VirgisFeature, IVirgisFeature, IVirgisEntity

    Fields

    CylinderObject

    Declaration
    public GameObject CylinderObject
    Field Value
    Type Description
    GameObject

    VertexTable

    Declaration
    public List<VertexLookup> VertexTable
    Field Value
    Type Description
    List<VertexLookup>

    Methods

    AddVertex(Vector3)

    Declaration
    public override VirgisFeature AddVertex(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Returns
    Type Description
    VirgisFeature
    Overrides
    VirgisFeature.AddVertex(Vector3)

    AddVertex(LineSegment, Vector3)

    Add a vertx to the Line when you know the segment to add the vertex to

    Declaration
    public VirgisFeature AddVertex(LineSegment segment, Vector3 position)
    Parameters
    Type Name Description
    LineSegment segment

    Linesegement to add the vertex to

    Vector3 position

    Vertex Position in Wordl Space coordinates

    Returns
    Type Description
    VirgisFeature

    Draw(Vector3[], Boolean, Dictionary<String, Unit>, GameObject, GameObject, GameObject, Material, Material, Material, Material)

    Called to draw the line

    Declaration
    public void Draw(Vector3[] line, bool Lr, Dictionary<string, Unit> symbology, GameObject LinePrefab, GameObject HandlePrefab, GameObject LabelPrefab, Material mainMat, Material selectedMat, Material lineMain, Material lineSelected)
    Parameters
    Type Name Description
    Vector3[] line
    Boolean Lr
    Dictionary<String, Unit> symbology

    The symbo,logy to be applied to the loine

    GameObject LinePrefab

    The prefab to be used for the line

    GameObject HandlePrefab

    The prefab to be used for the handle

    GameObject LabelPrefab

    the prefab to used for the label

    Material mainMat
    Material selectedMat
    Material lineMain
    Material lineSelected

    GetVertexes()

    Declaration
    public Datapoint[] GetVertexes()
    Returns
    Type Description
    Datapoint[]

    GetVertexPositions()

    called to get the verteces of the LineString

    Declaration
    public Vector3[] GetVertexPositions()
    Returns
    Type Description
    Vector3[]

    Vector3[] of verteces

    GetWkt()

    Declaration
    public string GetWkt()
    Returns
    Type Description
    String

    GetWktCoords()

    Declaration
    public string GetWktCoords()
    Returns
    Type Description
    String

    MakeLinearRing()

    Make the Line into a Linear Ring by setting the Lr flag and creating a LineSegment form the last vertex to the first. If the last vertex is in the same (exact) position as the first vertex, the last vertex is deleted.

    Declaration
    public void MakeLinearRing()

    MoveAxis(MoveArgs)

    Declaration
    public override void MoveAxis(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args
    Overrides
    VirgisFeature.MoveAxis(MoveArgs)

    MoveTo(MoveArgs)

    Declaration
    public override void MoveTo(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args
    Overrides
    VirgisFeature.MoveTo(MoveArgs)

    RemoveVertex(VirgisFeature)

    Declaration
    public override void RemoveVertex(VirgisFeature vertex)
    Parameters
    Type Name Description
    VirgisFeature vertex
    Overrides
    VirgisFeature.RemoveVertex(VirgisFeature)

    Selected(SelectionTypes)

    Declaration
    public override void Selected(SelectionTypes button)
    Parameters
    Type Name Description
    SelectionTypes button
    Overrides
    VirgisFeature.Selected(SelectionTypes)

    Translate(MoveArgs)

    Declaration
    public override void Translate(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args
    Overrides
    VirgisFeature.Translate(MoveArgs)

    UnSelected(SelectionTypes)

    Declaration
    public override void UnSelected(SelectionTypes button)
    Parameters
    Type Name Description
    SelectionTypes button
    Overrides
    VirgisFeature.UnSelected(SelectionTypes)

    VertexMove(MoveArgs)

    Declaration
    public override void VertexMove(MoveArgs data)
    Parameters
    Type Name Description
    MoveArgs data
    Overrides
    VirgisFeature.VertexMove(MoveArgs)

    Implements

    IVirgisFeature
    IVirgisEntity
    In This Article
    Back to top ViRGIS VR GIS