NShape Reference
CircularArcBase Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
CircularArcBase Class

Previous pageReturn to chapter overviewNext page

A line shape shaped like a circular arc.

Syntax

public abstract class CircularArcBase : LineShapeBase

Description

A line shape shaped like a circular arc.

Public Properties

Name

Description

MaxVertexCount

The maximum number of vertices the shape can contain.

MinVertexCount

The minimum number of vertices the shape must consist of.

X

X coordinate of the shape.

Y

Y coordinate of the shape.

Public Methods

Name

Description

AddVertex

Adds a vertex to the shape at the given position.

CalcNormalVector

Calculates the normal vector for the given coordinates.

CalculateAbsolutePosition

Transforms a relative position to absolute coordinates.

CalculateConnectionFoot

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

CalculateRelativePosition

Transforms absolute coordinates to a relative position.

CopyFrom

Copies as many properties as possible from the source shape.

Draw

Draws the shape.

DrawOutline

Draws the shape's outline.

DrawThumbnail

Draws a thumbnail picture of the shape.

Fit

Resizes and moves the shape to fit into the given rectangle.

FollowConnectionPointWithGluePoint

Moves a connected glue point when the connection point has moved.

GetMenuItemDefs

Returns a list of menu items used for creating context menus, toolbar buttons, etc.

HitTest

Tests whether the shape has a control point near the given coordinates.

InsertVertex

Inserts a new vertex before the indicated control point at the given position.

Invalidate

Invalidates the shape.

RemoveVertex

Removes the indicated vertex.

Protected Methods

Name

Description

CalculateCells

Calculates the cells occupied by this shape in the diagram's spatial index.

CalcCapAngle

Calculates the angle of the indicated line cap.

CalcGluePoint

Calculates the position of a connected glue point on the connected shape's outline.

Constructors

 

CalculateBoundingRectangle

Calculates the axis aligned bounding rectangle of the shape.

ContainsPointCore

Implementation of Shape.ContainsPoint

InitializeToDefault

Initializes a shape with default values.

IntersectsWithCore

Implementation of Shape.IntersectsWith.

InvalidateDrawCache

Clears all objects and buffers needed for drawing the shape so that they will be recalculated the next time.

MoveByCore

Moves the shape by the given offset.

MovePointByCore

Implementation of Shape.MovePointBy.

RecalcDrawCache

Clears and deletes all objects and buffers of the draw cache.

TransformDrawCache

Transforms all objects and buffers needed for drawing the shape.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape