Class LineSegment
Controls an instance of a line segment
Assembly: cs.temp.dll.dll
Syntax
public class LineSegment : VirgisFeature, IVirgisFeature, IVirgisEntity
Fields
vEnd
Declaration
Field Value
vStart
Declaration
Field Value
Methods
AddVertex(Vector3)
Declaration
public override VirgisFeature AddVertex(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Overrides
Delete()
Declaration
Draw(Vector3, Vector3, Int32, Int32, Single)
Called to draw the line Segment
Declaration
public void Draw(Vector3 from, Vector3 to, int vertStart, int vertEnd, float dia)
Parameters
Type |
Name |
Description |
Vector3 |
from |
starting point of the line segment in worldspace coords
|
Vector3 |
to |
end point for the line segment in worldspace coordinates
|
Int32 |
vertStart |
vertex ID for the vertex at the start of the line segment
|
Int32 |
vertEnd |
vertex ID for the vertex at the end of the line segment
|
Single |
dia |
Diamtere of the line segement in Map.local units
|
MoveAxis(MoveArgs)
Declaration
public override void MoveAxis(MoveArgs args)
Parameters
Overrides
MoveEnd(Vector3)
Declaration
public void MoveEnd(Vector3 newEnd)
Parameters
Type |
Name |
Description |
Vector3 |
newEnd |
|
MoveStart(Vector3)
Declaration
public void MoveStart(Vector3 newStart)
Parameters
Type |
Name |
Description |
Vector3 |
newStart |
|
MoveTo(MoveArgs)
Declaration
public override void MoveTo(MoveArgs args)
Parameters
Overrides
Selected(SelectionTypes)
Declaration
public override void Selected(SelectionTypes button)
Parameters
Overrides
SetMaterial(Material, Material)
Declaration
public override void SetMaterial(Material mainMat, Material selectedMat)
Parameters
Type |
Name |
Description |
Material |
mainMat |
|
Material |
selectedMat |
|
Overrides
UnSelected(SelectionTypes)
Declaration
public override void UnSelected(SelectionTypes button)
Parameters
Overrides
Implements