Class VirgisFeature
Inheritance
VirgisFeature
Assembly: cs.temp.dll.dll
Syntax
public abstract class VirgisFeature : MonoBehaviour, IVirgisFeature, IVirgisEntity
Fields
gisId
Declaration
Field Value
gisProperties
Declaration
public Dictionary<string, object> gisProperties
Field Value
label
Declaration
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
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
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
GetId()
Declaration
Returns
Declaration
public RecordSet GetMetadata()
Returns
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(SelectionTypes)
Use to tell the Component that it is selected
Declaration
public virtual void Selected(SelectionTypes 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
|
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
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