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.mr
    VirgisFeature.label
    VirgisFeature.feature
    VirgisFeature.lastHit
    VirgisFeature.SetMaterial(Material, Material)
    VirgisFeature.GetClosest(Vector3, Guid[])
    VirgisFeature.GetGeometry<T>()
    VirgisFeature.GetId()
    VirgisFeature.Equals(Object)
    VirgisFeature.GetHashCode()
    VirgisFeature.Equals(VirgisFeature)
    VirgisFeature.Hover(Vector3)
    VirgisFeature.UnHover()
    VirgisFeature.GetLayer()
    Namespace: Virgis
    Assembly: cs.temp.dll.dll
    Syntax
    public class Dataline : VirgisFeature, IVirgisFeature, IVirgisEntity

    Fields

    curve

    Declaration
    public DCurve3 curve
    Field Value
    Type Description
    DCurve3

    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(Geometry, Dictionary<String, Unit>, GameObject, GameObject, GameObject, Material, Material, Material, Material, Boolean)

    Called to draw the line

    Declaration
    public void Draw(Geometry geom, Dictionary<string, Unit> symbology, GameObject LinePrefab, GameObject HandlePrefab, GameObject LabelPrefab, Material mainMat, Material selectedMat, Material lineMain, Material lineSelected, bool isring = false)
    Parameters
    Type Name Description
    Geometry geom
    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
    Boolean isring

    GetMetadata()

    Declaration
    public override Dictionary<string, object> GetMetadata()
    Returns
    Type Description
    Dictionary<String, Object>
    Overrides
    VirgisFeature.GetMetadata()

    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

    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)

    MoveAxisAction(MoveArgs)

    This is called by the parent to action the move

    Declaration
    public void MoveAxisAction(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args

    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(SelectionType)

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

    SetMetadata(Dictionary<String, Object>)

    Declaration
    public override void SetMetadata(Dictionary<string, object> meta)
    Parameters
    Type Name Description
    Dictionary<String, Object> meta
    Overrides
    VirgisFeature.SetMetadata(Dictionary<String, Object>)

    Translate(MoveArgs)

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

    UnSelected(SelectionType)

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

    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