C# Class Smrf.NodeXL.Visualization.Wpf.VertexDrawingHistory

Retains information about how one vertex was drawn.
This is an abstract base class. There is one concrete derived class for each type of vertex that can be drawn. The derived classes must implement the GetEdgeEndpoint, GetSelfLoopEndpoint, and GetLabelLocation methods.
Inheritance: DrawingHistory
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_oVertex IVertex

Public Methods

Method Description
AssertValid ( ) : void
GetEdgeEndpoint ( Point otherEndpoint, Point &edgeEndpoint ) : void
GetLabelLocation ( VertexLabelPosition labelPosition ) : Point
GetSelfLoopEndpoint ( RectangleEdge farthestGraphRectangleEdge ) : Point
VertexDrawingHistory ( IVertex vertex, System.Windows.Media.DrawingVisual drawingVisual, System.Boolean drawnAsSelected ) : System

Initializes a new instance of the VertexDrawingHistory class.

Protected Methods

Method Description
GetBoundingSquare ( Double dHalfWidth ) : Rect
GetEdgeEndpointOnCircle ( Point oVertexALocation, Double dVertexARadius, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
GetEdgeEndpointOnRectangle ( Point oVertexALocation, Rect oVertexARectangle, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
GetLabelLocationOnDiamond ( VertexLabelPosition eLabelPosition, Double dHalfWidth ) : Point
GetSelfLoopEndpointOnRectangle ( Rect oVertexRectangle, RectangleEdge eFarthestGraphRectangleEdge ) : Point

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

GetBoundingSquare() protected method

protected GetBoundingSquare ( Double dHalfWidth ) : Rect
dHalfWidth Double
return System.Windows.Rect

GetEdgeEndpoint() public abstract method

public abstract GetEdgeEndpoint ( Point otherEndpoint, Point &edgeEndpoint ) : void
otherEndpoint Point
edgeEndpoint Point
return void

GetEdgeEndpointOnCircle() protected method

protected GetEdgeEndpointOnCircle ( Point oVertexALocation, Double dVertexARadius, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
oVertexALocation Point
dVertexARadius Double
oVertexBLocation Point
oEdgeEndpoint Point
return void

GetEdgeEndpointOnRectangle() protected method

protected GetEdgeEndpointOnRectangle ( Point oVertexALocation, Rect oVertexARectangle, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
oVertexALocation Point
oVertexARectangle System.Windows.Rect
oVertexBLocation Point
oEdgeEndpoint Point
return void

GetLabelLocation() public abstract method

public abstract GetLabelLocation ( VertexLabelPosition labelPosition ) : Point
labelPosition VertexLabelPosition
return Point

GetLabelLocationOnDiamond() protected method

protected GetLabelLocationOnDiamond ( VertexLabelPosition eLabelPosition, Double dHalfWidth ) : Point
eLabelPosition VertexLabelPosition
dHalfWidth Double
return Point

GetSelfLoopEndpoint() public abstract method

public abstract GetSelfLoopEndpoint ( RectangleEdge farthestGraphRectangleEdge ) : Point
farthestGraphRectangleEdge RectangleEdge
return Point

GetSelfLoopEndpointOnRectangle() protected method

protected GetSelfLoopEndpointOnRectangle ( Rect oVertexRectangle, RectangleEdge eFarthestGraphRectangleEdge ) : Point
oVertexRectangle System.Windows.Rect
eFarthestGraphRectangleEdge RectangleEdge
return Point

VertexDrawingHistory() public method

Initializes a new instance of the VertexDrawingHistory class.
public VertexDrawingHistory ( IVertex vertex, System.Windows.Media.DrawingVisual drawingVisual, System.Boolean drawnAsSelected ) : System
vertex IVertex /// The vertex that was drawn. ///
drawingVisual System.Windows.Media.DrawingVisual /// The DrawingVisual object that was used to draw the vertex. ///
drawnAsSelected System.Boolean /// true if the vertex was drawn as selected. ///
return System

Property Details

m_oVertex protected_oe property

protected IVertex m_oVertex
return IVertex