Shape
Description
- Derived from
-
ShapeBase abstract
- Extended by
-
ShapeGeometry abstract
Abstract base class for IShape implementations.
The following default method implementations provide standard functionality and may be overridden by subclasses in order to provide custom / optimized behaviour:
Public / Constructors
ArcInner
Creates an arc shape that runs from a in to b in over the inner path (i.e. the shorter one).
- See also
ArcOuter
Creates an arc shape that runs from a in to b in over the outer path (i.e. the longer one).
- See also
Arrow
Creates an arrow shape.
The arrow shape vertices a are determined by these dimensions:
/ /\ \ | / \ | | / \ | | / \ | lengthHead | / \ | length | / _ _ \ | | /.-´ | | `-.\ \ / | | | | | | | | lengthShaft \ `--´ / \__/ widthShaft \____________/ width
The length
is the distance between from in and to in. The other dimensions are defined by the ratios given as parameters.
- See also
Circle
2 overloads
Creates a new circle shape by defining an approximating polygon.
- See also
Creates a new circle shape by defining a signed distance field.
- See also
Curve
Creates a new shape that follows the given curve, using ShapeBuilder.Curve
This method is a helper that uses Geometry and calls ShapeBuilder.Build to build the shape, using an edge parity of 0
if any of the following holds true and -1
otherwise:
-
The given range in has zero length.
-
y1b opt is equal to y2b opt and both y1m opt and y2m opt are zero.
GeographicPolygon
2 overloads
Creates a polygon shape in a geographic coordinate system.
The winding the shape vertices is not relevant.
- See also
Creates a polygon shape in a geographic coordinate system.
The winding the shape vertices is not relevant.
- See also
Geometry
Returns a ShapeBuilder object for creating geometry based shapes (i.e. vertices, edges and/or triangles).
- See also
Grid
Creates a grid shape.
The grid is specified by the four given control points:
(a)----- + ----- + ----- + -----(b) | | | | | + ----- + ----- + ----- + ----- + | | | | | + ----- + ----- + ----- + ----- + | | | | | (d)----- + ----- + ----- + -----(c)
- See also
Polygon
2 overloads
Creates a polygon shape.
The winding the shape vertices is not relevant.
- See also
Creates a polygon shape.
The winding the shape vertices is not relevant.
- See also
ReadCSH
2 overloads
Reads a shape from a CSH
file.
- IOException
-
If an I/O error has occurred.
Reads a shape from a CSH
file.
- IOException
-
If an I/O error has occurred.
Public / Methods
RasterizerFactory
5 overloads
Returns a IShapeRasterizerFactory object that rasterizes distance values into the given sample buffer.
Distance values are converted into heightmap samples by computing weighted vertex sums. Distance values of zero or less will produce heightmap samples that have full coverage; values greater than or equal to falloff in will produce void heightmap samples (i.e. zero coverage). Values in-between create have a smooth transition.
Returns a IShapeRasterizerFactory object that rasterizes distance values into the given sample buffer.
Distance values are converted into heightmap samples by computing weighted vertex sums. Distance values of zero or less will produce heightmap samples that have full coverage; values greater than or equal to falloff in will produce void heightmap samples (i.e. zero coverage). Values in-between create have a smooth transition.
Per-vertex heightmap sample values can only be used for explicit shapes that have an edge parity of zero. See IShape for details.
Returns a IShapeRasterizerFactory object that rasterizes distance values into a sample buffer.
The distance value range (see ISampleBuffer.ScanlineRange) of the target sample buffer is used to optimize the rasterization process.
- See also
Returns a IShapeRasterizerFactory object that rasterizes distance values into the given sample buffer.
Distance values are converted into color values by performing a color ramp lookup.
- See also
Returns a IShapeRasterizerFactory object that rasterizes distance values into the given sample buffer.
Distance values are converted into color values by performing a color ramp lookup.
- See also