Search Results for

    Show / Hide Table of Contents

    Class VirgisFeature

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

    Fields

    feature

    Declaration
    public Feature feature
    Field Value
    Type Description
    Feature

    label

    Declaration
    public Transform label
    Field Value
    Type Description
    Transform

    lastHit

    Declaration
    public Vector3 lastHit
    Field Value
    Type Description
    Vector3

    mainMat

    Declaration
    protected Material mainMat
    Field Value
    Type Description
    Material

    mr

    Declaration
    protected MeshRenderer mr
    Field Value
    Type Description
    MeshRenderer

    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

    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

    GetLayer()

    Declaration
    public VirgisLayer GetLayer()
    Returns
    Type Description
    VirgisLayer

    GetMetadata()

    Declaration
    public abstract Dictionary<string, object> GetMetadata()
    Returns
    Type Description
    Dictionary<String, Object>

    Hover(Vector3)

    Called whnen the pointer hovers on this feature

    Declaration
    public void Hover(Vector3 hit)
    Parameters
    Type Name Description
    Vector3 hit

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

    Use to tell the Component that it is selected

    Declaration
    public virtual void Selected(SelectionType button)
    Parameters
    Type Name Description
    SelectionType 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

    SetMetadata(Dictionary<String, Object>)

    Declaration
    public abstract void SetMetadata(Dictionary<string, object> meta)
    Parameters
    Type Name Description
    Dictionary<String, Object> meta

    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

    UnHover()

    called when the pointer stops hoveringon this feature

    Declaration
    public void UnHover()

    UnSelected(SelectionType)

    Use to tell the Component that it is un selected

    Declaration
    public virtual void UnSelected(SelectionType button)
    Parameters
    Type Name Description
    SelectionType 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