Class Dataline
Controls and Instance of a Line Component
Assembly: cs.temp.dll.dll
Syntax
public class Dataline : VirgisFeature, IVirgisFeature, IVirgisEntity
Fields
curve
Declaration
Field Value
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(Geometry, Dictionary<String, Unit>, GameObject, GameObject, GameObject, Material, Material, Material, Material, Boolean)
Declaration
public void Draw(Geometry geom, Dictionary<string, Unit> symbology, GameObject LinePrefab, GameObject HandlePrefab, GameObject LabelPrefab, Material mainMat, Material selectedMat, Material lineMain, Material lineSelected, bool isring = false)
Parameters
Type |
Name |
Description |
Geometry |
geom |
|
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 |
|
Boolean |
isring |
|
Declaration
public override Dictionary<string, object> GetMetadata()
Returns
Overrides
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
|
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
MoveAxisAction(MoveArgs)
This is called by the parent to action the move
Declaration
public void MoveAxisAction(MoveArgs args)
Parameters
MoveTo(MoveArgs)
Declaration
public override void MoveTo(MoveArgs args)
Parameters
Overrides
RemoveVertex(VirgisFeature)
Declaration
public override void RemoveVertex(VirgisFeature vertex)
Parameters
Overrides
Selected(SelectionType)
Declaration
public override void Selected(SelectionType button)
Parameters
Overrides
Declaration
public override void SetMetadata(Dictionary<string, object> meta)
Parameters
Overrides
Translate(MoveArgs)
Declaration
public override void Translate(MoveArgs args)
Parameters
Overrides
UnSelected(SelectionType)
Declaration
public override void UnSelected(SelectionType button)
Parameters
Overrides
VertexMove(MoveArgs)
Declaration
public override void VertexMove(MoveArgs data)
Parameters
Overrides
Implements