Search Results for

    Show / Hide Table of Contents

    Class VirgisFeature

    Inheritance
    Object
    VirgisFeature
    Dataline
    Datapoint
    Datapolygon
    LineSegment
    Implements
    IVirgisFeature
    IVirgisEntity
    Namespace: Virgis
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class VirgisFeature : MonoBehaviour, IVirgisFeature, IVirgisEntity

    Fields

    gisId

    Declaration
    public string gisId
    Field Value
    Type Description
    String

    gisProperties

    Declaration
    public Dictionary<string, object> gisProperties
    Field Value
    Type Description
    Dictionary<String, Object>

    label

    Declaration
    public Transform label
    Field Value
    Type Description
    Transform

    mainMat

    Declaration
    protected Material mainMat
    Field Value
    Type Description
    Material

    selectedMat

    Declaration
    protected Material selectedMat
    Field Value
    Type Description
    Material

    Methods

    AddVertex(Vector3)

    call this to add a vertex to a feature.

    Declaration
    public virtual VirgisFeature AddVertex(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position

    Vector3

    Returns
    Type Description
    VirgisFeature

    VirgisComponent The new vertex

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean

    Equals(VirgisFeature)

    Declaration
    public bool Equals(VirgisFeature other)
    Parameters
    Type Name Description
    VirgisFeature other
    Returns
    Type Description
    Boolean

    ExitEditSession(Boolean)

    Called when an edit session ends

    Declaration
    public virtual void ExitEditSession(bool saved)
    Parameters
    Type Name Description
    Boolean saved

    GetClosest(Vector3, Guid[])

    Gets the closest point of the faeture geometry to the coordinates

    Declaration
    public virtual VirgisFeature GetClosest(Vector3 coords, Guid[] exclude)
    Parameters
    Type Name Description
    Vector3 coords

    Vector3 Target Coordinates

    Guid[] exclude
    Returns
    Type Description
    VirgisFeature

    Vector3 in world space coordinates

    GetGeometry<T>()

    Get Geometry from the Feature

    Declaration
    public virtual T GetGeometry<T>()
    Returns
    Type Description
    T

    Gemoetry of type T

    Type Parameters
    Name Description
    T

    The Type of the geometry

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    GetId()

    Declaration
    public Guid GetId()
    Returns
    Type Description
    Guid

    GetMetadata()

    Declaration
    public RecordSet GetMetadata()
    Returns
    Type Description
    RecordSet

    MoveAxis(MoveArgs)

    received when a Move Axis request is made by the user

    Declaration
    public virtual void MoveAxis(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args

    MoveTo(MoveArgs)

    Sent by the UI to request this component to move.

    Declaration
    public virtual void MoveTo(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args

    MoveArgs : Either a trabslate vectir OR a Vector position to move to, both in World space coordinates

    RemoveVertex(VirgisFeature)

    call this to remove a vertxe from a feature

    Declaration
    public virtual void RemoveVertex(VirgisFeature vertex)
    Parameters
    Type Name Description
    VirgisFeature vertex

    Vertex to remove

    Selected(SelectionTypes)

    Use to tell the Component that it is selected

    Declaration
    public virtual void Selected(SelectionTypes button)
    Parameters
    Type Name Description
    SelectionTypes button

    SelectionType

    SetMaterial(Material, Material)

    Use to set the material of the feature

    Declaration
    public virtual void SetMaterial(Material mainMat, Material selectedMat)
    Parameters
    Type Name Description
    Material mainMat

    Usual material

    Material selectedMat

    Material to be used when feature is selected

    StartEditSession()

    Called when an edit session starts

    Declaration
    public virtual void StartEditSession()

    Translate(MoveArgs)

    Called when a child component is translated by User action

    Declaration
    public virtual void Translate(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args

    MoveArgs

    UnSelected(SelectionTypes)

    Use to tell the Component that it is un selected

    Declaration
    public virtual void UnSelected(SelectionTypes button)
    Parameters
    Type Name Description
    SelectionTypes button

    SelectionType

    VertexMove(MoveArgs)

    Called when a child Vertex moves to the point in the MoveArgs - which is in World Coordinates

    Declaration
    public virtual void VertexMove(MoveArgs args)
    Parameters
    Type Name Description
    MoveArgs args

    Implements

    IVirgisFeature
    IVirgisEntity
    In This Article
    Back to top ViRGIS VR GIS