Constructors
SlabF
#Create a slab with differing corner radii.
Parameters:
| bounds (RectangleF) | |
| thickness (float) | |
| corners (CornerRadii) |
SlabF
#public SlabF(RectangleF bounds)
Create a slab which looks like a rectangle.
Parameters:
| bounds (RectangleF) |
Properties
ApexPath
#public GraphicsPath ApexPath { get; }
Gets the graphics path describing the silhouette of the top face. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
EdgePath
#public GraphicsPath EdgePath { get; }
Gets the graphics path describing the edge between the front and side faces. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
FormPath
#public GraphicsPath FormPath { get; }
Gets the graphics path describing the silhouette of the entire slab. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
Side
#public RectangleF Side { get; }
Gets the bounds of the slab side (or front) face, minus the portion which curbes upwards along the edges.
SidePath
#public GraphicsPath SidePath { get; }
Gets the graphics path describing the silhouette of the side face. Note that the top edge of the side face is straight without any rounded corners and must thus be drawn *before* the front face. This path is created anew on each call and it is the responsibility of the caller to dispose of it.
SidePathExact
#public GraphicsPath SidePathExact { get; }
Gets the graphics path describing the silhouette of the side face.
Methods
ArcAt
#Gets the arc at the specified corner. Arcs are always defined in a clockwise fashion.
Parameters:
| arc (SlabArc) |
Contains
#sTest whether a point is on the interior of this slab.
Parameters:
| point (PointF) | Point. |
Returns: True if point is on interior.
Depress
#Depress this slab with a normalised factor.
Parameters:
| factor (float) | Depression factor. Zero = as is, One = fully depressed until the thickness is zero. |
MessageBar
#Create the path for a fixed-height bar running along the top of the slab.
Parameters:
| height (float) | Height of bar. |
| path (out GraphicsPath) | Path output. |
| bounds (out RectangleF) | Bounds of path. |
Returns: Success or failure.
Move
#Move this slab to a different location.
MoveTo
#Move this slab to a specific location.
Parameters:
| anchor (PointF) | Location of upper left bounds corner. |
PointOnLeftEdge
#Gets the point along the left edge of the top face.
Parameters:
| parameter (float) | Normalised parameter (0=top, 1=bottom). |
PointOnRightEdge
#Gets the point along the right edge of the top face.
Parameters:
| parameter (float) | Normalised parameter (0=top, 1=bottom). |
VertexAt
#Gets the coordinates of the specified vertex.
Parameters:
| vertex (SlabVertex) | Vertex to retrieve. |
Returns: Coordinates of vertex.