NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
2d_graphics_consts.h File Reference

Description of all of supported graphics constants. More...

#include <base/inc/sdk_pshpack1.h>
#include <base/inc/sdk_poppack.h>

Go to the source code of this file.

Data Structures

struct  StrokeStyleOptions
 Set of parameters for stroke style definition. More...
 

Enumerations

enum  PixelFormats { kPixelFormat_RGBA_8888 = 0x0, kPixelFormat_BGRA_8888 = 0x1, kPixelFormat_Index_8 = 0x2 }
 Supported pixel formats for render targets. More...
 
enum  MeasurementUnits { MeasurementUnits_Pixels = 0x0, MeasurementUnits_Millimeters = 0x1 }
 Measurement unit types. More...
 
enum  FillModeType { FillModeType_Unknown = 0x0, FillModeType_EvenOdd = 0x1, FillModeType_Winding = 0x2 }
 Fill mode for 2D operations. More...
 
enum  StartFigureStyle { StartFigureStyle_Filled = 0x0, StartFigureStyle_Hollow = 0x1 }
 New figure style (see I2DGraphicsPathEditor::StartFigure) More...
 
enum  FinishFigureRule { FinishFigureRule_LeaveOpened = 0x0, FinishFigureRule_CloseFigure = 0x1 }
 Figure finish rule (see I2DGraphicsPathEditor::FinishFigure) More...
 
enum  PathCombineMode { PathCombineMode_OR = 0x0, PathCombineMode_AND = 0x1, PathCombineMode_XOR = 0x2, PathCombineMode_EXCLUDE = 0x3 }
 Possible modes for combining two paths. More...
 
enum  PathCompareResult {
  PathCompareResult_Unknown = 0x0, PathCompareResult_NoIntersection = 0x1, PathCompareResult_InputPathInside = 0x2, PathCompareResult_GivenPathInside = 0x3,
  PathCompareResult_Intersection = 0x4
}
 Possible results of graphics path compare methods. More...
 
enum  PathSimplifyMode { PathSimplifyMode_Lines = 0x0, PathSimplifyMode_LinesAndCubicBezier = 0x1 }
 Possible modes for graphics path simplification. More...
 
enum  AntiAliasingMode { AntiAliasingMode_None = 0x0, AntiAliasingMode_PerPrimitive = 0x1 }
 Possible anti-aliasing modes. More...
 
enum  TextAntiAliasingMode { TextAntiAliasingMode_None = 0x0, TextAntiAliasingMode_GrayScale = 0x1, TextAntiAliasingMode_ClearType = 0x2 }
 Possible text anti-aliasing modes. More...
 
enum  TextReadingDirection { TextReadingDirection_LeftToRight = 0x0, TextReadingDirection_RightToLeft = 0x1 }
 Text reading direction types. More...
 
enum  TextVerticalAlignment { TextVerticalAlignment_Top = 0x0, TextVerticalAlignment_Center = 0x1, TextVerticalAlignment_Bottom = 0x2 }
 Text vertical alignment type. More...
 
enum  TextHorizontalAlignment { TextHorizontalAlignment_Begin = 0x0, TextHorizontalAlignment_Center = 0x1, TextHorizontalAlignment_End = 0x2 }
 Text horizontal alignment type. More...
 
enum  TextWordWrapping { TextWordWrapping_NoWrapping = 0x0, TextWordWrapping_Wrap = 0x1 }
 Text word wrapping types. More...
 
enum  FontWeight {
  FontWeight_Default = 0x0, FontWeight_Thin = 0x1, FontWeight_ExtraLight = 0x2, FontWeight_Light = 0x3,
  FontWeight_Normal = 0x4, FontWeight_Medium = 0x5, FontWeight_SemiBold = 0x6, FontWeight_Bold = 0x7,
  FontWeight_ExtraBold = 0x8, FontWeight_Heavy = 0x9
}
 Possible font weights. More...
 
enum  FontStyle { FontStyle_Default = 0x0, FontStyle_Normal = 0x1, FontStyle_Italic = 0x2, FontStyle_Oblique = 0x3 }
 Possible font styles. More...
 
enum  FontStretch {
  FontStretch_Default = 0x0, FontStretch_UltraCondensed = 0x1, FontStretch_ExtraCondensed = 0x2, FontStretch_Condensed = 0x3,
  FontStretch_SemiCondensed = 0x4, FontStretch_Normal = 0x5, FontStretch_SemiExpanded = 0x6, FontStretch_Expanded = 0x7,
  FontStretch_ExtraExpanded = 0x8, FontStretch_UltraExpanded = 0x9
}
 Possible font stretches. More...
 
enum  LineCapStyle { LineCapStyle_Flat = 0x0, LineCapStyle_Square = 0x1, LineCapStyle_Round = 0x2, LineCapStyle_Triangle = 0x3 }
 Possible cap styles for line. More...
 
enum  LineJoinStyle { LineJoinStyle_Miter = 0x0, LineJoinStyle_Bevel = 0x1, LineJoinStyle_Round = 0x2 }
 Describes possible types of line join styles. More...
 
enum  LineDashPattern {
  LineDashPattern_Solid = 0x0, LineDashPattern_Dash = 0x1, LineDashPattern_Dot = 0x2, LineDashPattern_DashDot = 0x3,
  LineDashPattern_DashDotDot = 0x4, LineDashPattern_UserDefined = 0x5
}
 Describes possible types of dash pattern for line. More...
 
enum  BitmapBrushExtendMode { BitmapBrushExtendMode_Clamp = 0x0, BitmapBrushExtendMode_Repeat = 0x1, BitmapBrushExtendMode_Mirror = 0x2 }
 Describes possible of extend modes for bitmap based brushes. More...
 

Functions

 SDK_PACK (struct FontMetrics { float font_ascent;float font_cap_height;float font_x_height;float font_descent;float font_line_gap;})
 Describes the font metrics.
 

Variables

static const float kDefaultDPI = 96.0f
 Default DPI value. More...
 

Detailed Description

Description of all of supported graphics constants.

Copyright (c) 2011 The NAVTOR SDK. All Rights Reserved.

Author
The NAVTOR SDK authors.
Date
10/2011
Maintenance:
The NAVTOR SDK authors.

Enumeration Type Documentation

◆ PixelFormats

enum PixelFormats

Supported pixel formats for render targets.

Enumerator
kPixelFormat_RGBA_8888 

RGBA, 32 bits.

kPixelFormat_BGRA_8888 

BGRA, 32 bits.

kPixelFormat_Index_8 

index, 8 bits with additional information in palette

◆ MeasurementUnits

enum MeasurementUnits

Measurement unit types.

Enumerator
MeasurementUnits_Pixels 

Device-independent pixels.

MeasurementUnits_Millimeters 

Millimeters.

◆ FillModeType

enum FillModeType

Fill mode for 2D operations.

Enumerator
FillModeType_Unknown 

Unknown fill mode type.

FillModeType_EvenOdd 

Fill mode by checking even/odd intersection count.

FillModeType_Winding 

Fill mode by checking left-to-right or right-to-left segment intersection count.

◆ StartFigureStyle

enum StartFigureStyle

New figure style (see I2DGraphicsPathEditor::StartFigure)

Enumerator
StartFigureStyle_Filled 

Filled figure.

StartFigureStyle_Hollow 

Hollow figure.

◆ FinishFigureRule

enum FinishFigureRule

Figure finish rule (see I2DGraphicsPathEditor::FinishFigure)

Enumerator
FinishFigureRule_LeaveOpened 

Figure should be opened.

FinishFigureRule_CloseFigure 

Figure should be closed.

◆ PathCombineMode

enum PathCombineMode

Possible modes for combining two paths.

Enumerator
PathCombineMode_OR 

Union of two paths.

PathCombineMode_AND 

Intersection of two paths.

PathCombineMode_XOR 

XOR operation for paths.

PathCombineMode_EXCLUDE 

Exclude common part of first and second paths from first path.

◆ PathCompareResult

enum PathCompareResult

Possible results of graphics path compare methods.

Enumerator
PathCompareResult_Unknown 

Can't compare two graphics paths.

PathCompareResult_NoIntersection 

Both of paths does not intersects at all.

PathCompareResult_InputPathInside 

Given graphics path fully contains passed input graphics path.

PathCompareResult_GivenPathInside 

Passed input graphics path fully contains given graphics path.

PathCompareResult_Intersection 

Graphic paths intersects, but neither completely contains the other.

◆ PathSimplifyMode

enum PathSimplifyMode

Possible modes for graphics path simplification.

Enumerator
PathSimplifyMode_Lines 

Use only lines for simplification.

PathSimplifyMode_LinesAndCubicBezier 

Use lines and cubic Bezier curves.

◆ AntiAliasingMode

enum AntiAliasingMode

Possible anti-aliasing modes.

Enumerator
AntiAliasingMode_None 

Anti-aliasing is disabled.

AntiAliasingMode_PerPrimitive 

Anti-aliasing is per-primitive.

◆ TextAntiAliasingMode

enum TextAntiAliasingMode

Possible text anti-aliasing modes.

Enumerator
TextAntiAliasingMode_None 

Text anti-aliasing is disabled.

TextAntiAliasingMode_GrayScale 

Grayscale anti-aliasing.

TextAntiAliasingMode_ClearType 

ClearType anti-aliasing.

◆ TextReadingDirection

enum TextReadingDirection

Text reading direction types.

Enumerator
TextReadingDirection_LeftToRight 

Left-to-right reading direction.

TextReadingDirection_RightToLeft 

Right-to-left reading direction.

◆ TextVerticalAlignment

enum TextVerticalAlignment

Text vertical alignment type.

Enumerator
TextVerticalAlignment_Top 

Align text to top.

TextVerticalAlignment_Center 

Align text to center.

TextVerticalAlignment_Bottom 

Align text to bottom.

◆ TextHorizontalAlignment

enum TextHorizontalAlignment

Text horizontal alignment type.

Enumerator
TextHorizontalAlignment_Begin 

Align text to leading edge (to left, if reading direction from left to right)

TextHorizontalAlignment_Center 

Align text to center.

TextHorizontalAlignment_End 

Align text to trailing edge (to right, if reading direction from left to right)

◆ TextWordWrapping

enum TextWordWrapping

Text word wrapping types.

Enumerator
TextWordWrapping_NoWrapping 

No word wrapping for texts.

TextWordWrapping_Wrap 

Break words if they overflows text layout.

◆ FontWeight

enum FontWeight

Possible font weights.

Enumerator
FontWeight_Default 

Default font weight.

FontWeight_Thin 

Thin font.

FontWeight_ExtraLight 

Extra light font.

FontWeight_Light 

Light font.

FontWeight_Normal 

Normal font.

FontWeight_Medium 

Medium font.

FontWeight_SemiBold 

Semi-bold font.

FontWeight_Bold 

Bold font.

FontWeight_ExtraBold 

Extra-bold font.

FontWeight_Heavy 

Heavy font.

◆ FontStyle

enum FontStyle

Possible font styles.

Enumerator
FontStyle_Default 

Default font style.

FontStyle_Normal 

Normal font.

FontStyle_Italic 

Italic font.

FontStyle_Oblique 

Oblique font.

◆ FontStretch

enum FontStretch

Possible font stretches.

Enumerator
FontStretch_Default 

Default font stretch.

FontStretch_UltraCondensed 

Ultra condensed font.

FontStretch_ExtraCondensed 

Extra condensed font.

FontStretch_Condensed 

Condensed font.

FontStretch_SemiCondensed 

Semi-condensed font.

FontStretch_Normal 

Normal font.

FontStretch_SemiExpanded 

Semi-expanded font.

FontStretch_Expanded 

Expanded font.

FontStretch_ExtraExpanded 

Extra expanded font.

FontStretch_UltraExpanded 

Ultra expanded font.

◆ LineCapStyle

enum LineCapStyle

Possible cap styles for line.

Enumerator
LineCapStyle_Flat 

Flat line cap style.

LineCapStyle_Square 

Square line cap style.

LineCapStyle_Round 

Round line cap style.

LineCapStyle_Triangle 

Triangle line cap style.

◆ LineJoinStyle

enum LineJoinStyle

Describes possible types of line join styles.

Enumerator
LineJoinStyle_Miter 

Miter style.

LineJoinStyle_Bevel 

Bevel style.

LineJoinStyle_Round 

Rounded style.

◆ LineDashPattern

enum LineDashPattern

Describes possible types of dash pattern for line.

Enumerator
LineDashPattern_Solid 

Solid line.

LineDashPattern_Dash 

Dashed line.

LineDashPattern_Dot 

Dotted line.

LineDashPattern_DashDot 

Dash-dotted line.

LineDashPattern_DashDotDot 

Dash-dot-dot pattern.

LineDashPattern_UserDefined 

User defined pattern for line.

◆ BitmapBrushExtendMode

enum BitmapBrushExtendMode

Describes possible of extend modes for bitmap based brushes.

Enumerator
BitmapBrushExtendMode_Clamp 

Clamp mode.

BitmapBrushExtendMode_Repeat 

Repeat mode.

BitmapBrushExtendMode_Mirror 

Mirror mode.

Variable Documentation

◆ kDefaultDPI

const float kDefaultDPI = 96.0f
static

Default DPI value.

96 pixels - one logical inch