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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oVertex IVertex

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

public AssertValid ( ) : void
Résultat void

GetBoundingSquare() protected méthode

protected GetBoundingSquare ( Double dHalfWidth ) : Rect
dHalfWidth Double
Résultat System.Windows.Rect

GetEdgeEndpoint() public abstract méthode

public abstract GetEdgeEndpoint ( Point otherEndpoint, Point &edgeEndpoint ) : void
otherEndpoint Point
edgeEndpoint Point
Résultat void

GetEdgeEndpointOnCircle() protected méthode

protected GetEdgeEndpointOnCircle ( Point oVertexALocation, Double dVertexARadius, Point oVertexBLocation, Point &oEdgeEndpoint ) : void
oVertexALocation Point
dVertexARadius Double
oVertexBLocation Point
oEdgeEndpoint Point
Résultat void

GetEdgeEndpointOnRectangle() protected méthode

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

GetLabelLocation() public abstract méthode

public abstract GetLabelLocation ( VertexLabelPosition labelPosition ) : Point
labelPosition VertexLabelPosition
Résultat Point

GetLabelLocationOnDiamond() protected méthode

protected GetLabelLocationOnDiamond ( VertexLabelPosition eLabelPosition, Double dHalfWidth ) : Point
eLabelPosition VertexLabelPosition
dHalfWidth Double
Résultat Point

GetSelfLoopEndpoint() public abstract méthode

public abstract GetSelfLoopEndpoint ( RectangleEdge farthestGraphRectangleEdge ) : Point
farthestGraphRectangleEdge RectangleEdge
Résultat Point

GetSelfLoopEndpointOnRectangle() protected méthode

protected GetSelfLoopEndpointOnRectangle ( Rect oVertexRectangle, RectangleEdge eFarthestGraphRectangleEdge ) : Point
oVertexRectangle System.Windows.Rect
eFarthestGraphRectangleEdge RectangleEdge
Résultat Point

VertexDrawingHistory() public méthode

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. ///
Résultat System

Property Details

m_oVertex protected_oe property

protected IVertex m_oVertex
Résultat IVertex