NShape Reference
IsoscelesTriangleBase Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
IsoscelesTriangleBase Class

Previous pageReturn to chapter overviewNext page

Base class for isosceles triangle shapes.

Syntax

public abstract class IsoscelesTriangleBase

Description

IsoscelesTriangleBase can but need not be used as a base class for isosceles triangle shapes. It provides support for the following areas:

Hit- and intersection testing

(Re-)Calculating, transforming and resizing

Public Methods

Name

Description

CalculateConnectionFoot

Implementation of calculating the foot of a point-to-shape connection.

Fit

Fits the shape into the given bounds.

HasControlPointCapability

Tests, whether a control point has at least one of a set of given capabilities.

Protected Properties and Fields

Name

Description

ControlPointCount

The number of control points.

shapePoints

Point array used as buffer for calculating the shape's graphics path.

Protected Methods

Name

Description

CalcControlPoints

Calculates the (translated) position of the shape's control points.

CalculateBoundingRectangle

Calculates the axis aligned bounding rectangle of the shape.

CalculatePath

Calculates the GraphicsPath for the shape at the point of origin.

CalculateShapePoints

Calculates a point array representing the untransformed shape outline.

CalculateTranslatedShapePoints

Calculates a point array representing the transformed shape outline.

Constructors

Constructs a new shape instance.

ContainsPointCore

Implementation of Shape.ContainsPoint.

InitializeToDefault

Initializes the shape with default values.

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape