Class VirgisFeature
Inheritance
VirgisFeature
Assembly: cs.temp.dll.dll
Syntax
public abstract class VirgisFeature : MonoBehaviour, IVirgisFeature, IVirgisEntity
Fields
feature
Declaration
Field Value
label
Declaration
Field Value
Type |
Description |
Transform |
|
lastHit
Declaration
Field Value
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
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(VirgisFeature)
Declaration
public bool Equals(VirgisFeature other)
Parameters
Returns
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
GetId()
Declaration
Returns
GetLayer()
Declaration
public VirgisLayer GetLayer()
Returns
Declaration
public abstract Dictionary<string, object> GetMetadata()
Returns
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
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
Selected(SelectionType)
Use to tell the Component that it is selected
Declaration
public virtual void Selected(SelectionType button)
Parameters
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
|
Declaration
public abstract void SetMetadata(Dictionary<string, object> meta)
Parameters
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
UnSelected(SelectionType)
Use to tell the Component that it is un selected
Declaration
public virtual void UnSelected(SelectionType button)
Parameters
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
Implements