Class Dataline
Controls and Instance of a Line Component
Assembly: cs.temp.dll.dll
Syntax
public class Dataline : VirgisFeature, IVirgisFeature, IVirgisEntity
Fields
CylinderObject
Declaration
public GameObject CylinderObject
Field Value
Type |
Description |
GameObject |
|
VertexTable
Declaration
public List<VertexLookup> VertexTable
Field Value
Methods
AddVertex(Vector3)
Declaration
public override VirgisFeature AddVertex(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Overrides
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
Draw(Vector3[], Boolean, Dictionary<String, Unit>, GameObject, GameObject, GameObject, Material, Material, Material, Material)
Declaration
public void Draw(Vector3[] line, bool Lr, Dictionary<string, Unit> symbology, GameObject LinePrefab, GameObject HandlePrefab, GameObject LabelPrefab, Material mainMat, Material selectedMat, Material lineMain, Material lineSelected)
Parameters
Type |
Name |
Description |
Vector3[] |
line |
|
Boolean |
Lr |
|
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 |
|
GetVertexes()
Declaration
public Datapoint[] GetVertexes()
Returns
GetVertexPositions()
called to get the verteces of the LineString
Declaration
public Vector3[] GetVertexPositions()
Returns
Type |
Description |
Vector3[] |
Vector3[] of verteces
|
GetWkt()
Declaration
Returns
GetWktCoords()
Declaration
public string GetWktCoords()
Returns
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
Overrides
MoveTo(MoveArgs)
Declaration
public override void MoveTo(MoveArgs args)
Parameters
Overrides
RemoveVertex(VirgisFeature)
Declaration
public override void RemoveVertex(VirgisFeature vertex)
Parameters
Overrides
Selected(SelectionTypes)
Declaration
public override void Selected(SelectionTypes button)
Parameters
Overrides
Translate(MoveArgs)
Declaration
public override void Translate(MoveArgs args)
Parameters
Overrides
UnSelected(SelectionTypes)
Declaration
public override void UnSelected(SelectionTypes button)
Parameters
Overrides
VertexMove(MoveArgs)
Declaration
public override void VertexMove(MoveArgs data)
Parameters
Overrides
Implements