Class TopoLine3StockHfr
Stock (pool) of topological lines with deduplication based on endpoint identity.
Corresponds to C++ topo_line3_stock_t.
public class TopoLine3StockHfr
- Inheritance
-
TopoLine3StockHfr
- Inherited Members
- Extension Methods
Constructors
TopoLine3StockHfr(int)
Initializes a new line stock with the specified capacity.
public TopoLine3StockHfr(int capacity)
Parameters
capacityint
Properties
Count
Gets the number of lines.
public int Count { get; }
Property Value
Lines
Gets all lines in the stock.
public IEnumerable<TopoLine3Hfr> Lines { get; }
Property Value
Methods
BuildAdjacentLineIfExisted(TopoLine3Hfr)
Builds the reversed line link for a single line if the reverse exists.
public void BuildAdjacentLineIfExisted(TopoLine3Hfr tl)
Parameters
tlTopoLine3Hfr
BuildAdjacentLinesIfExisted()
Builds reversed line links for all lines in the stock.
Corresponds to C++ build_adjacent_lines_if_existed.
public void BuildAdjacentLinesIfExisted()
Call(TopoPoint3Hfr, TopoPoint3Hfr)
Gets or creates a topological line from p0 to p1. Thread-safe. If a line with the same endpoints already exists, returns the existing one.
public TopoLine3Hfr Call(TopoPoint3Hfr p0, TopoPoint3Hfr p1)
Parameters
p0TopoPoint3Hfrp1TopoPoint3Hfr
Returns
CallIfExisted(TopoPoint3Hfr, TopoPoint3Hfr)
Gets an existing topological line from p0 to p1, or null if not found. Thread-safe.
public TopoLine3Hfr CallIfExisted(TopoPoint3Hfr p0, TopoPoint3Hfr p1)
Parameters
p0TopoPoint3Hfrp1TopoPoint3Hfr
Returns
Del(TopoLine3Hfr)
Removes a line from the stock and cleans up connectivity. Thread-safe.
public void Del(TopoLine3Hfr line)
Parameters
lineTopoLine3Hfr