#include <opennurbs_font.h>
◆ ON_OutlineAccumulator()
ON_OutlineAccumulator::ON_OutlineAccumulator |
( |
| ) |
|
|
default |
◆ ~ON_OutlineAccumulator()
ON_OutlineAccumulator::~ON_OutlineAccumulator |
( |
| ) |
|
|
default |
◆ AbandonCurrentFigure()
void ON_OutlineAccumulator::AbandonCurrentFigure |
( |
| ) |
|
◆ ActiveFigureCurrentPoint()
Expert user tool for getting the current point of the figure being accumulated.
◆ ActiveFigureStartPoint()
Expert user tool for getting the start point of the figure currently being accumulated.
◆ AppendCubicBezier()
Description: Appends a cubic (degree = 3, order = 4) bezier to the current figure. The cubic bezier begins at the current_point and ends at cv3. The cubic bezier has four control points (current point, cv1, cv2, cv3). Parameters: cv1 - [in] cv2 - [in] cv3 - [in] end of the cubic bezier.
◆ AppendLine()
bool ON_OutlineAccumulator::AppendLine |
( |
ON_2fPoint |
line_end_point | ) |
|
Description: Appends a line segment to the current figure. The line segment begins at the current_point and ends at line_end_point. Parameters: line_end_point - [in]
◆ AppendQuadraticBezier()
Description: Appends a quadratic (degree = 2, order = 3) bezier to the current figure. The quadratic bezier begins at the current_point and ends at cv2. The quadratic bezier has three control points (current point, cv1, cv2, cv3). Parameters: cv1 - [in] cv2 - [in] end of the quadratic bezier.
◆ BeginFigure()
◆ BeginGlyphOutline()
Parameters: font_units_per_em - [in] This is the height and width of the square font design grid. In TrueType fonts, font_units_per_em is often a power of two and generally 1024 or 2048. In OpenType fonts, font_units_per_em is often 1000. In PostScript fonts, font_units_per_em is often 1000. figure_type - [in] True if the glyphs are single stroke and open glyphs should not be closed. coordinate_type - [in] ON_OutlineAccumulator::Coordinate::Integer The points passed to the figure drawing methods will be ON_2iPoint values. The resulting outline will contain ON_2iPoint values. ON_OutlineAccumulator::Coordinate::Float The points passed to the figure drawing methods will be ON_2fPoint values. The resulting outline will contain ON_2fPoint values. ON_OutlineAccumulator::Coordinate::Float The points passed to the figure drawing methods will be ON_2fPoint values that should be rounded to the nearest integer. The resulting outline will contain ON_2iPoint values. bAccumulatePoints - [in] True if the points should be accumulated in the m_outline_points[] array. False if the points are not accumulated. In all cases, the outline bounding box is calculated. Remarks: Typically both the width and the height of the 'M' glyph in the font are less than font_units_per_em.
◆ Clear()
void ON_OutlineAccumulator::Clear |
( |
| ) |
|
◆ CurrentFigureAccumulating()
const bool ON_OutlineAccumulator::CurrentFigureAccumulating |
( |
| ) |
const |
◆ CurrentFigurePoint()
◆ CurrentFigurePointCount()
unsigned int ON_OutlineAccumulator::CurrentFigurePointCount |
( |
| ) |
const |
Returns: Number of points in the current figure.
◆ CurrentFigurePreviousPoint()
◆ CurrentFigureStartPoint()
◆ EndFigure()
◆ EndOutline() [1/2]
bool ON_OutlineAccumulator::EndOutline |
( |
| ) |
|
Returns: EndOutline(false,ON_Outline::DefaultOuterOrientation);
◆ EndOutline() [2/2]
◆ ErrorCount()
unsigned int ON_OutlineAccumulator::ErrorCount |
( |
| ) |
const |
Returns: Number of input errors that have occurred. Remarks: When an error occurs, the current figure is terminated.
◆ FigureType()
◆ HarvestOutline()
ON_Outline* ON_OutlineAccumulator::HarvestOutline |
( |
| ) |
|
◆ IsFinalized()
bool ON_OutlineAccumulator::IsFinalized |
( |
| ) |
const |
◆ IsInitialized()
bool ON_OutlineAccumulator::IsInitialized |
( |
| ) |
const |
◆ IsInitializedOrFinalized()
bool ON_OutlineAccumulator::IsInitializedOrFinalized |
( |
| ) |
const |
◆ Outline()
const ON_Outline& ON_OutlineAccumulator::Outline |
( |
| ) |
const |
◆ UnitsPerEM()
ON__UINT32 ON_OutlineAccumulator::UnitsPerEM |
( |
| ) |
const |
Returns: Outline design units per em.