Show / Hide Table of Contents

Struct ClipRect

Mit dieser Klasse werden primitive Clip-Funktionen abgehandelt.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CADability
Assembly: CADability.dll
Syntax
public struct ClipRect

Constructors

| Improve this Doc View Source

ClipRect(BoundingRect)

Declaration
public ClipRect(BoundingRect r)
Parameters
Type Name Description
BoundingRect r
| Improve this Doc View Source

ClipRect(ref BoundingRect)

Declaration
public ClipRect(ref BoundingRect r)
Parameters
Type Name Description
BoundingRect r
| Improve this Doc View Source

ClipRect(Double, Double, Double, Double)

Declaration
public ClipRect(double Left, double Right, double Bottom, double Top)
Parameters
Type Name Description
System.Double Left
System.Double Right
System.Double Bottom
System.Double Top

Fields

| Improve this Doc View Source

Bottom

Declaration
public double Bottom
Field Value
Type Description
System.Double
| Improve this Doc View Source

Left

Declaration
public double Left
Field Value
Type Description
System.Double
| Improve this Doc View Source

Right

Declaration
public double Right
Field Value
Type Description
System.Double
| Improve this Doc View Source

Top

Declaration
public double Top
Field Value
Type Description
System.Double

Properties

| Improve this Doc View Source

Center

Declaration
public GeoPoint2D Center { get; }
Property Value
Type Description
GeoPoint2D
| Improve this Doc View Source

Size

Declaration
public double Size { get; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

ArcHitTest(GeoPoint2D, Double, Int32, GeoPoint2D, GeoPoint2D)

Declaration
public bool ArcHitTest(GeoPoint2D c, double r, int q, GeoPoint2D ps, GeoPoint2D pe)
Parameters
Type Name Description
GeoPoint2D c
System.Double r
System.Int32 q
GeoPoint2D ps
GeoPoint2D pe
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ClipCode(ref GeoPoint2D, ref BoundingRect)

Declaration
public static int ClipCode(ref GeoPoint2D p, ref BoundingRect rect)
Parameters
Type Name Description
GeoPoint2D p
BoundingRect rect
Returns
Type Description
System.Int32
| Improve this Doc View Source

ClipLine(ref GeoPoint2D, ref GeoPoint2D)

Verändert die durch die beiden gegebenen Punkte gegebene Linie so, dass sie vom Clip-Rechteck geklippt wird.

Declaration
public bool ClipLine(ref GeoPoint2D p1, ref GeoPoint2D p2)
Parameters
Type Name Description
GeoPoint2D p1

Startpunkt der Linie

GeoPoint2D p2

Endpunkt der Linie

Returns
Type Description
System.Boolean

true, wenn etwas von der Linie sichtbar bleibt

| Improve this Doc View Source

Contains(GeoPoint2D)

Declaration
public bool Contains(GeoPoint2D p)
Parameters
Type Name Description
GeoPoint2D p
Returns
Type Description
System.Boolean
| Improve this Doc View Source

EllipseArcHitTest(GeoPoint2D, Double, Double, Angle, Int32, GeoPoint2D, GeoPoint2D)

Declaration
public bool EllipseArcHitTest(GeoPoint2D cnt, double rx, double ry, Angle a, int q, GeoPoint2D ps, GeoPoint2D pe)
Parameters
Type Name Description
GeoPoint2D cnt
System.Double rx
System.Double ry
Angle a
System.Int32 q
GeoPoint2D ps
GeoPoint2D pe
Returns
Type Description
System.Boolean
| Improve this Doc View Source

LineHitTest(GeoPoint2D, GeoPoint2D)

Testet, ob die durch die beiden Punkte gegebene Linie von dem Rechteck berührt wird.

Declaration
public bool LineHitTest(GeoPoint2D p1, GeoPoint2D p2)
Parameters
Type Name Description
GeoPoint2D p1

Startpunkt der Linie

GeoPoint2D p2

Endpunkt der Linie

Returns
Type Description
System.Boolean

true, wenn die Linie berührt wird

| Improve this Doc View Source

LineHitTest(GeoPoint2D, GeoPoint2D, ref BoundingRect)

Declaration
public static bool LineHitTest(GeoPoint2D p1, GeoPoint2D p2, ref BoundingRect rect)
Parameters
Type Name Description
GeoPoint2D p1
GeoPoint2D p2
BoundingRect rect
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ParallelogramHitTest(GeoPoint2D, GeoVector2D, GeoVector2D)

Declaration
public bool ParallelogramHitTest(GeoPoint2D p, GeoVector2D v1, GeoVector2D v2)
Parameters
Type Name Description
GeoPoint2D p
GeoVector2D v1
GeoVector2D v2
Returns
Type Description
System.Boolean
| Improve this Doc View Source

PointsHitTest(GeoPoint2D[])

Declaration
public int PointsHitTest(GeoPoint2D[] points)
Parameters
Type Name Description
GeoPoint2D[] points
Returns
Type Description
System.Int32
| Improve this Doc View Source

Split()

Declaration
public ClipRect[] Split()
Returns
Type Description
ClipRect[]
| Improve this Doc View Source

TriangleHitTest(GeoPoint2D, GeoPoint2D, GeoPoint2D)

Declaration
public bool TriangleHitTest(GeoPoint2D p1, GeoPoint2D p2, GeoPoint2D p3)
Parameters
Type Name Description
GeoPoint2D p1
GeoPoint2D p2
GeoPoint2D p3
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX