glyph_types.h file
Sub header defining types and functions for dealing with glyphs.
Classes
- struct OTV_GlyphInfo
- A struct representing a generic glyph that can be up-casted into a struct for any of the known concrete glyph types.
- struct OTV_GlyphData
- A struct generically representing a single glyph instance that can be up-casted into a struct for any of the known concrete glyph types.
- struct OTV_SurfaceColorInfo
- The info struct for the
GlyphType::SurfaceColorglyph. - struct OTV_SurfaceColorData
- The data struct for the
GlyphType::SurfaceColorglyph. - struct OTV_LinePlotInfo
- The info struct for the
GlyphType::LinePlotglyph. - struct OTV_LinePlotData
- The data struct for the
GlyphType::LinePlotglyph. - struct OTV_CircleInfo
- The info struct for the
GlyphType::Circleglyph. - struct OTV_CircleData
- The data struct for the
GlyphType::Circleglyph. - struct OTV_RectangleInfo
- The info struct for the
GlyphType::Rectglyph. - struct OTV_RectangleData
- The data struct for the
GlyphType::Rectglyph. - struct OTV_IsoscelesTriangleInfo
- The info struct for the
GlyphType::IsoscelesTriangleglyph. - struct OTV_IsoscelesTriangleData
- The data struct for the
GlyphType::Rectglyph. - struct OTV_SignBlobInfo
- The info struct for the
GlyphType::SignBlobglyph. - struct OTV_SignBlobData
- The data struct for the
GlyphType::SignBlobglyph.
Enums
- enum OTV_ColorMap { Acton = 0, Bamako, Batlow, BatlowK, BatlowW, Bilbao, Buda, Davos, Devon, Glasgow, GrayC, Hawaii, Imola, Lajolla, Lapaz, Lipari, Navia, Nuuk, Oslo, Rainbow, Tokyo, Turbo, Turku, Bam = 8192, Berlin, Broc, Cork, Lisbon, Managua, Roma, Tofino, Vanimo, Vik, UndefinedColormap = 0x7fffffff }
- Enumeration of all color maps known by this version of the API.
- enum OTV_GlyphType { Circle = 0, Rect, IsoscelesTriangle, SignBlob, SurfaceColor = 16384, LinePlot, GlyphType_FORCE32 = 0x7fffffff }
- Enumeration of all glyph/plot types known by this version of the API.
- enum OTV_InterpolationMode { Nearest = 0, Linear, Cubic, InterpolationMode_FORCE32 = 0x7fffffff }
- Enumeration of all shading interpolation modes known by this version of the API.
- enum OTV_SurfaceColorInfoStaticFlags { SCI_STATIC_NONE = 0, SCI_STATIC_COLOR = 1, SurfaceColorInfoStaticFlags_FORCE32 = 0x7fffffff }
- Enumeration of static parameter flags for
OTV_structs.SurfaceColorInfo - enum OTV_CircleInfoStaticFlags { CI_STATIC_NONE = 0, CI_STATIC_COLOR = 1, CI_STATIC_RADIUS = 2, CircleInfoStaticFlags_FORCE32 = 0x7fffffff }
- Enumeration of static parameter flags for
OTV_structs.CircleInfo - enum OTV_RectangleInfoStaticFlags { RI_STATIC_NONE = 0, RI_STATIC_COLOR = 1, RI_STATIC_WIDTH = 2, RI_STATIC_HEIGHT = 4, RectangleInfoStaticFlags_FORCE32 = 0x7fffffff }
- Enumeration of static parameter flags for
OTV_structs.RectangleInfo - enum OTV_IsoscelesTriangleInfoStaticFlags { ITI_STATIC_NONE = 0, ITI_STATIC_COLOR = 1, ITI_STATIC_WIDTH = 2, ITI_STATIC_HEIGHT = 4, ITI_STATIC_ORIENTATION = 8, IsoscelesTriangleInfoStaticFlags_FORCE32 = 0x7fffffff }
- Enumeration of static parameter flags for
OTV_structs.IsoscelesTriangleInfo - enum OTV_SignBlobInfoStaticFlags { SBI_STATIC_NONE = 0, SBI_STATIC_COLOR = 1, SBI_STATIC_VALUE = 2, SignBlobInfoStaticFlags_FORCE32 = 0x7fffffff }
- Enumeration of static parameter flags for
OTV_structs.SignBlobInfo
Typedefs
-
using otv__construct_SurfaceColorInfo_funct = OTV_
GlyphInfo(*)(OTV_Rgb, const OTV_ColorMap, const OTV_InterpolationMode, const OTV_SurfaceColorInfoStaticFlags) - The function pointer type for the
otv_function._ construct_ SurfaceColorInfo() -
using otv__construct_empty_SurfaceColorInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ SurfaceColorInfo() -
using otv__upcast_SurfaceColorInfo_funct = OTV_
SurfaceColorInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ SurfaceColorInfo() -
using otv__downcast_SurfaceColorInfo_funct = OTV_
GlyphInfo*(*)(const OTV_SurfaceColorInfo*) - The function pointer type for the
otv_function._ downcast_ SurfaceColorInfo() -
using otv__construct_SurfaceColorData_funct = OTV_
GlyphData(*)(const float, const float) - The function pointer type for the
otv_function._ construct_ SurfaceColorData() -
using otv__construct_empty_SurfaceColorData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ SurfaceColorData() -
using otv__upcast_SurfaceColorData_funct = OTV_
SurfaceColorData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ SurfaceColorData() -
using otv__downcast_SurfaceColorData_funct = OTV_
GlyphData*(*)(const OTV_SurfaceColorData*) - The function pointer type for the
otv_function._ downcast_ SurfaceColorData() -
using otv__construct_LinePlotInfo_funct = OTV_
GlyphInfo(*)(const OTV_InterpolationMode, const uint32_t, const OTV_Rgb[]) - The function pointer type for the
otv_function._ construct_ LinePlotInfo() -
using otv__construct_empty_LinePlotInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ LinePlotInfo() -
using otv__upcast_LinePlotInfo_funct = OTV_
LinePlotInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ LinePlotInfo() -
using otv__downcast_LinePlotInfo_funct = OTV_
GlyphInfo*(*)(const OTV_LinePlotInfo*) - The function pointer type for the
otv_function._ downcast_ LinePlotInfo() -
using otv__construct_LinePlotData_funct = OTV_
GlyphData(*)(const float, const uint32_t, const float[]) - The function pointer type for the
otv_function._ construct_ LinePlotData() -
using otv__construct_empty_LinePlotData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ LinePlotData() -
using otv__upcast_LinePlotData_funct = OTV_
LinePlotData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ LinePlotData() -
using otv__downcast_LinePlotData_funct = OTV_
GlyphData*(*)(const OTV_LinePlotData*) - The function pointer type for the
otv_function._ downcast_ LinePlotData() -
using otv__construct_CircleInfo_funct = OTV_
GlyphInfo(*)(const OTV_Rgb, const OTV_ColorMap, const float, const OTV_CircleInfoStaticFlags) - The function pointer type for the
otv_function._ construct_ CircleInfo() -
using otv__construct_empty_CircleInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ CircleInfo() -
using otv__upcast_CircleInfo_funct = OTV_
CircleInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ CircleInfo() -
using otv__downcast_CircleInfo_funct = OTV_
GlyphInfo*(*)(const OTV_CircleInfo*) - The function pointer type for the
otv_function._ downcast_ CircleInfo() -
using otv__construct_CircleData_funct = OTV_
GlyphData(*)(const float, const float, const float) - The function pointer type for the
otv_function._ construct_ CircleData() -
using otv__construct_empty_CircleData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ CircleData() -
using otv__upcast_CircleData_funct = OTV_
CircleData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ CircleData() -
using otv__downcast_CircleData_funct = OTV_
GlyphData*(*)(const OTV_CircleData*) - The function pointer type for the
otv_function._ downcast_ CircleData() -
using otv__instantiate_Circle_funct = OTV_
Vec2(*)(const float, const OTV_CircleInfo*, const OTV_CircleData*) - The function pointer type for the
otv_function._ instantiate_ Circle() -
using otv__construct_RectangleInfo_funct = OTV_
GlyphInfo(*)(const OTV_Rgb, const OTV_ColorMap, const float, const float, const OTV_RectangleInfoStaticFlags) - The function pointer type for the
otv_function._ construct_ RectangleInfo() -
using otv__construct_empty_RectangleInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ RectangleInfo() -
using otv__upcast_RectangleInfo_funct = OTV_
RectangleInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ RectangleInfo() -
using otv__downcast_RectangleInfo_funct = OTV_
GlyphInfo*(*)(const OTV_RectangleInfo*) - The function pointer type for the
otv_function._ downcast_ RectangleInfo() -
using otv__construct_RectangleData_funct = OTV_
GlyphData(*)(const float, const float, const float, const float) - The function pointer type for the
otv_function._ construct_ RectangleData() -
using otv__construct_empty_RectangleData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ RectangleData() -
using otv__upcast_RectangleData_funct = OTV_
RectangleData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ RectangleData() -
using otv__downcast_RectangleData_funct = OTV_
GlyphData*(*)(const OTV_RectangleData*) - The function pointer type for the
otv_function._ downcast_ RectangleData() -
using otv__instantiate_Rectangle_funct = OTV_
Vec2(*)(const float, const OTV_RectangleInfo*, const OTV_RectangleData*) - The function pointer type for the
otv_function._ instantiate_ Rectangle() -
using otv__construct_IsoscelesTriangleInfo_funct = OTV_
GlyphInfo(*)(const OTV_Rgb, const OTV_ColorMap, const float, const float, const float, const OTV_IsoscelesTriangleInfoStaticFlags) - The function pointer type for the
otv_function._ construct_ IsoscelesTriangleInfo() -
using otv__construct_empty_IsoscelesTriangleInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ IsoscelesTriangleInfo() -
using otv__upcast_IsoscelesTriangleInfo_funct = OTV_
IsoscelesTriangleInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ IsoscelesTriangleInfo() -
using otv__downcast_IsoscelesTriangleInfo_funct = OTV_
GlyphInfo*(*)(const OTV_IsoscelesTriangleInfo*) - The function pointer type for the
otv_function._ downcast_ IsoscelesTriangleInfo() -
using otv__construct_IsoscelesTriangleData_funct = OTV_
GlyphData(*)(const float, const float, const float, const float, const float) - The function pointer type for the
otv_function._ construct_ IsoscelesTriangleData() -
using otv__construct_empty_IsoscelesTriangleData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ IsoscelesTriangleData() -
using otv__upcast_IsoscelesTriangleData_funct = OTV_
IsoscelesTriangleData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ IsoscelesTriangleData() -
using otv__downcast_IsoscelesTriangleData_funct = OTV_
GlyphData*(*)(const OTV_IsoscelesTriangleData*) - The function pointer type for the
otv_function._ downcast_ IsoscelesTriangleData() -
using otv__instantiate_IsoscelesTriangle_funct = OTV_
Vec2(*)(const float, const OTV_IsoscelesTriangleInfo*, const OTV_IsoscelesTriangleData*) - The function pointer type for the
otv_function._ instantiate_ IsoscelesTriangle() -
using otv__construct_SignBlobInfo_funct = OTV_
GlyphInfo(*)(const OTV_Rgb, const OTV_ColorMap, const float, const float, const OTV_SignBlobInfoStaticFlags) - The function pointer type for the
otv_function._ construct_ SignBlobInfo() -
using otv__construct_empty_SignBlobInfo_funct = OTV_
GlyphInfo(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ SignBlobInfo() -
using otv__upcast_SignBlobInfo_funct = OTV_
SignBlobInfo*(*)(const OTV_GlyphInfo*) - The function pointer type for the
otv_function._ upcast_ SignBlobInfo() -
using otv__downcast_SignBlobInfo_funct = OTV_
GlyphInfo*(*)(const OTV_SignBlobInfo*) - The function pointer type for the
otv_function._ downcast_ SignBlobInfo() -
using otv__construct_SignBlobData_funct = OTV_
GlyphData(*)(const float, const float, const float) - The function pointer type for the
otv_function._ construct_ SignBlobData() -
using otv__construct_empty_SignBlobData_funct = OTV_
GlyphData(*)(void) - The function pointer type for the
otv_function._ construct_ empty_ SignBlobData() -
using otv__upcast_SignBlobData_funct = OTV_
SignBlobData*(*)(const OTV_GlyphData*) - The function pointer type for the
otv_function._ upcast_ SignBlobData() -
using otv__downcast_SignBlobData_funct = OTV_
GlyphData*(*)(const OTV_SignBlobData*) - The function pointer type for the
otv_function._ downcast_ SignBlobData() -
using otv__instantiate_SignBlob_funct = OTV_
Vec2(*)(const float, const OTV_SignBlobInfo*, const OTV_SignBlobData*) - The function pointer type for the
otv_function._ instantiate_ SignBlob() - using otv__string_from_ColorMap_funct = const char*const(*)(const OTV_ColorMap)
- The function pointer type for
otv_._ string_ from_ ColorMap() - using otv__string_from_GlyphType_funct = const char*const(*)(const OTV_GlyphType)
- The function pointer type for
otv_._ string_ from_ GlyphType() - using otv__string_from_InterpolationMode_funct = const char*const(*)(const OTV_InterpolationMode)
- The function pointer type for
otv_._ string_ from_ InterpolationMode()
Functions
-
auto otv__construct_SurfaceColorInfo(OTV_
Rgb rgb, const OTV_ ColorMap color_map, const OTV_ InterpolationMode interpolation_mode, const OTV_ SurfaceColorInfoStaticFlags static_flags) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.SurfaceColorInfo -
auto otv__construct_empty_SurfaceColorInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantSurfaceColorInfo Nwill be left uninitialized. -
auto otv__upcast_SurfaceColorInfo(const OTV_
GlyphInfo* surface_color_info) -> OTV_ API OTV_ SurfaceColorInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.SurfaceColorInfo -
auto otv__downcast_SurfaceColorInfo(const OTV_
SurfaceColorInfo* surface_color_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aSurfaceColorInfo OTV_.GlyphInfo -
auto otv__construct_SurfaceColorData(const float s,
const float color) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.SurfaceColorData -
auto otv__construct_empty_SurfaceColorData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantSurfaceColorData Nwill be left uninitialized. -
auto otv__upcast_SurfaceColorData(const OTV_
GlyphData* surface_color_data) -> OTV_ API OTV_ SurfaceColorData* - Upcasts a
OTV_struct to aGlyphData OTV_.SurfaceColorData -
auto otv__downcast_SurfaceColorData(const OTV_
SurfaceColorData* surface_color_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aSurfaceColorData OTV_.GlyphData -
auto otv__construct_LinePlotInfo(const OTV_
InterpolationMode interpolation_mode, const uint32_t num_subplots, const OTV_ Rgb subplot_colors[]) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.LinePlotInfo -
auto otv__construct_empty_LinePlotInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantLinePlotInfo Nwill be left uninitialized. -
auto otv__upcast_LinePlotInfo(const OTV_
GlyphInfo* line_plot_info) -> OTV_ API OTV_ LinePlotInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.LinePlotInfo -
auto otv__downcast_LinePlotInfo(const OTV_
LinePlotInfo* line_plot_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aLinePlotInfo OTV_.GlyphInfo -
auto otv__construct_LinePlotData(const float s,
const uint32_t num_values,
const float values[]) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.LinePlotData -
auto otv__construct_empty_LinePlotData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantLinePlotData Nwill be left uninitialized. -
auto otv__upcast_LinePlotData(const OTV_
GlyphData* line_plot_data) -> OTV_ API OTV_ LinePlotData* - Upcasts a
OTV_struct to aGlyphData OTV_.LinePlotData -
auto otv__downcast_LinePlotData(const OTV_
LinePlotData* line_plot_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aLinePlotData OTV_.GlyphData -
auto otv__construct_CircleInfo(const OTV_
Rgb rgb, const OTV_ ColorMap color_map, const float radius, const OTV_ CircleInfoStaticFlags static_flags) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.CircleInfo -
auto otv__construct_empty_CircleInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantCircleInfo Nwill be left uninitialized. -
auto otv__upcast_CircleInfo(const OTV_
GlyphInfo* circle_info) -> OTV_ API OTV_ CircleInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.CircleInfo -
auto otv__downcast_CircleInfo(const OTV_
CircleInfo* circle_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aCircleInfo OTV_.GlyphInfo -
auto otv__construct_CircleData(const float s,
const float color,
const float radius) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.CircleData -
auto otv__construct_empty_CircleData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantCircleData Nwill be left uninitialized. -
auto otv__upcast_CircleData(const OTV_
GlyphData* circle_data) -> OTV_ API OTV_ CircleData* - Upcasts a
OTV_struct to aGlyphData OTV_.CircleData -
auto otv__downcast_CircleData(const OTV_
CircleData* circle_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aCircleData OTV_.GlyphData -
auto otv__instantiate_Circle(const float traj_radius,
const OTV_
CircleInfo* info, const OTV_ CircleData* data) -> OTV_ API OTV_ Vec2 - Instantiates the given Circle glyph to calculate its geometry and returns its extents along the trajectory.
-
auto otv__construct_RectangleInfo(const OTV_
Rgb rgb, const OTV_ ColorMap color_map, const float width, const float height, const OTV_ RectangleInfoStaticFlags static_flags) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.RectangleInfo -
auto otv__construct_empty_RectangleInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantRectangleInfo Nwill be left uninitialized. -
auto otv__upcast_RectangleInfo(const OTV_
GlyphInfo* rectangle_info) -> OTV_ API OTV_ RectangleInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.RectangleInfo -
auto otv__downcast_RectangleInfo(const OTV_
RectangleInfo* rectangle_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aRectangleInfo OTV_.GlyphInfo -
auto otv__construct_RectangleData(const float s,
const float color,
const float width,
const float height) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.RectangleData -
auto otv__construct_empty_RectangleData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantRectangleData Nwill be left uninitialized. -
auto otv__upcast_RectangleData(const OTV_
GlyphData* rectangle_data) -> OTV_ API OTV_ RectangleData* - Upcasts a
OTV_struct to aGlyphData OTV_.RectangleData -
auto otv__downcast_RectangleData(const OTV_
RectangleData* rectangle_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aRectangleData OTV_.GlyphData -
auto otv__instantiate_Rectangle(const float traj_radius,
const OTV_
RectangleInfo* info, const OTV_ RectangleData* data) -> OTV_ API OTV_ Vec2 - Instantiates the given Rectangle glyph to calculate its geometry and returns its extents along the trajectory.
-
auto otv__construct_IsoscelesTriangleInfo(const OTV_
Rgb rgb, const OTV_ ColorMap color_map, const float width, const float height, const float orientation, const OTV_ IsoscelesTriangleInfoStaticFlags static_flags) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.IsoscelesTriangleInfo -
auto otv__construct_empty_IsoscelesTriangleInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantIsoscelesTriangleInfo Nwill be left uninitialized. -
auto otv__upcast_IsoscelesTriangleInfo(const OTV_
GlyphInfo* isosceles_triangle_info) -> OTV_ API OTV_ IsoscelesTriangleInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.IsoscelesTriangleInfo -
auto otv__downcast_IsoscelesTriangleInfo(const OTV_
IsoscelesTriangleInfo* isosceles_triangle_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aIsoscelesTriangleInfo OTV_.GlyphInfo -
auto otv__construct_IsoscelesTriangleData(const float s,
const float color,
const float width,
const float height,
const float orientation) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.IsoscelesTriangleData -
auto otv__construct_empty_IsoscelesTriangleData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantIsoscelesTriangleData Nwill be left uninitialized. -
auto otv__upcast_IsoscelesTriangleData(const OTV_
GlyphData* isosceles_triangle_data) -> OTV_ API OTV_ IsoscelesTriangleData* - Upcasts a
OTV_struct to aGlyphData OTV_.IsoscelesTriangleData -
auto otv__downcast_IsoscelesTriangleData(const OTV_
IsoscelesTriangleData* isosceles_triangle_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aIsoscelesTriangleData OTV_.GlyphData -
auto otv__instantiate_IsoscelesTriangle(const float traj_radius,
const OTV_
IsoscelesTriangleInfo* info, const OTV_ IsoscelesTriangleData* data) -> OTV_ API OTV_ Vec2 - Instantiates the given Isosceles Triangle glyph to calculate its geometry and returns its extents along the trajectory.
-
auto otv__construct_SignBlobInfo(const OTV_
Rgb rgb, const OTV_ ColorMap color_map, const float radius, const float value, const OTV_ SignBlobInfoStaticFlags static_flags) -> OTV_ API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.SignBlobInfo -
auto otv__construct_empty_SignBlobInfo(void) -> OTV_
API OTV_ GlyphInfo - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantSignBlobInfo Nwill be left uninitialized. -
auto otv__upcast_SignBlobInfo(const OTV_
GlyphInfo* sign_blob_info) -> OTV_ API OTV_ SignBlobInfo* - Upcasts a
OTV_struct to aGlyphInfo OTV_.SignBlobInfo -
auto otv__downcast_SignBlobInfo(const OTV_
SignBlobInfo* sign_blob_info) -> OTV_ API OTV_ GlyphInfo* - Downcasts a
OTV_struct to aSignBlobInfo OTV_.GlyphInfo -
auto otv__construct_SignBlobData(const float s,
const float color,
const float value) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable.SignBlobData -
auto otv__construct_empty_SignBlobData(void) -> OTV_
API OTV_ GlyphData - Constructs an instance of the
OTV_struct that will be correctly up- and downcastable. All but the constantSignBlobData Nwill be left uninitialized. -
auto otv__upcast_SignBlobData(const OTV_
GlyphData* sign_blob_data) -> OTV_ API OTV_ SignBlobData* - Upcasts a
OTV_struct to aGlyphData OTV_.SignBlobData -
auto otv__downcast_SignBlobData(const OTV_
SignBlobData* sign_blob_data) -> OTV_ API OTV_ GlyphData* - Downcasts a
OTV_struct to aSignBlobData OTV_.GlyphData -
auto otv__instantiate_SignBlob(const float traj_radius,
const OTV_
SignBlobInfo* info, const OTV_ SignBlobData* data) -> OTV_ API OTV_ Vec2 - Instantiates the given Sign Blob glyph to calculate its geometry and returns its extents along the trajectory.
-
auto otv__string_from_ColorMap(const OTV_
ColorMap color_map) -> OTV_ API const char*const - Returns a human-readable string representation of the given
OTV_ColorMapenum. -
auto otv__string_from_GlyphType(const OTV_
GlyphType glyph_type) -> OTV_ API const char*const - Returns a human-readable string representation of the given
OTV_GlyphTypeenum. -
auto otv__string_from_InterpolationMode(const OTV_
InterpolationMode interpolation_mode) -> OTV_ API const char*const - Returns a human-readable string representation of the given
OTV_InterpolationModeenum.
Enum documentation
enum OTV_ColorMap
Enumeration of all color maps known by this version of the API.
| Enumerators | |
|---|---|
| Acton |
|
| Bamako |
|
| Batlow |
|
| BatlowK |
|
| BatlowW |
|
| Bilbao |
|
| Buda |
|
| Davos |
|
| Devon |
|
| Glasgow |
|
| GrayC |
|
| Hawaii |
|
| Imola |
|
| Lajolla |
|
| Lapaz |
|
| Lipari |
|
| Navia |
|
| Nuuk |
|
| Oslo |
|
| Rainbow |
|
| Tokyo |
|
| Turbo |
|
| Turku |
|
| Bam |
|
| Berlin |
|
| Broc |
|
| Cork |
|
| Lisbon |
|
| Managua |
|
| Roma |
|
| Tofino |
|
| Vanimo |
|
| Vik |
|
| UndefinedColormap |
A dummy enum that can be used when a corresponding function argument won't be used but has to be set anyway. Also causes the enum to be 32 bits as an intended side effect. |
Function documentation
OTV_ API OTV_ GlyphInfo otv__construct_SurfaceColorInfo(OTV_ Rgb rgb,
const OTV_ ColorMap color_map,
const OTV_ InterpolationMode interpolation_mode,
const OTV_ SurfaceColorInfoStaticFlags static_flags)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| rgb | The value for the field OTV_SurfaceColorInfo:: |
| color_map | The value for the field OTV_SurfaceColorInfo:: |
| interpolation_mode | The value for the field OTV_SurfaceColorInfo:: |
| static_flags | The value for the field OTV_SurfaceColorInfo:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_SurfaceColorInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ SurfaceColorInfo* otv__upcast_SurfaceColorInfo(const OTV_ GlyphInfo* surface_color_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| surface_color_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_SurfaceColorInfo(const OTV_ SurfaceColorInfo* surface_color_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| surface_color_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_SurfaceColorData(const float s,
const float color)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_SurfaceColorData:: |
| color | The value for the field OTV_SurfaceColorData:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_SurfaceColorData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ SurfaceColorData* otv__upcast_SurfaceColorData(const OTV_ GlyphData* surface_color_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| surface_color_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_SurfaceColorData(const OTV_ SurfaceColorData* surface_color_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| surface_color_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_LinePlotInfo(const OTV_ InterpolationMode interpolation_mode,
const uint32_t num_subplots,
const OTV_ Rgb subplot_colors[])
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| interpolation_mode | The value for the field OTV_LinePlotInfo:: |
| num_subplots | The value for the field OTV_LinePlotInfo:: |
| subplot_colors | The values for the field OTV_LinePlotInfo::. Only the first num_subplots entries need to be set. |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_LinePlotInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ LinePlotInfo* otv__upcast_LinePlotInfo(const OTV_ GlyphInfo* line_plot_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| line_plot_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_LinePlotInfo(const OTV_ LinePlotInfo* line_plot_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| line_plot_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_LinePlotData(const float s,
const uint32_t num_values,
const float values[])
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_LinePlotData:: |
| num_values | The number of values the caller wants to pass in via the values argument. |
| values | The values for the field OTV_LinePlotData::. Only the first num_subplots entries need to be set. |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_LinePlotData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ LinePlotData* otv__upcast_LinePlotData(const OTV_ GlyphData* line_plot_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| line_plot_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_LinePlotData(const OTV_ LinePlotData* line_plot_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| line_plot_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_CircleInfo(const OTV_ Rgb rgb,
const OTV_ ColorMap color_map,
const float radius,
const OTV_ CircleInfoStaticFlags static_flags)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| rgb | The value for the field OTV_CircleInfo:: |
| color_map | The value for the field OTV_CircleInfo:: |
| radius | The value for the field OTV_CircleInfo:: |
| static_flags | The value for the field OTV_CircleInfo:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_CircleInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ CircleInfo* otv__upcast_CircleInfo(const OTV_ GlyphInfo* circle_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| circle_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_CircleInfo(const OTV_ CircleInfo* circle_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| circle_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_CircleData(const float s,
const float color,
const float radius)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_CircleData:: |
| color | The value for the field OTV_CircleData:: |
| radius | The value for the field OTV_CircleData:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_CircleData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ CircleData* otv__upcast_CircleData(const OTV_ GlyphData* circle_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| circle_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_CircleData(const OTV_ CircleData* circle_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| circle_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ Vec2 otv__instantiate_Circle(const float traj_radius,
const OTV_ CircleInfo* info,
const OTV_ CircleData* data)
Instantiates the given Circle glyph to calculate its geometry and returns its extents along the trajectory.
| Parameters | |
|---|---|
| traj_radius | The radius of the trajectory on which to instantiate the Circle. |
| info | The static glyph parameters to use during instantiation. |
| data | The data to instantiate the Circle with. |
| Returns | The extents of the given Circle glyph relative to its anchor position. OTV_Vec2:: will contain the radius in trailing direction of the trajectory, and OTV_Vec2:: the radius in leading direction. |
OTV_ API OTV_ GlyphInfo otv__construct_RectangleInfo(const OTV_ Rgb rgb,
const OTV_ ColorMap color_map,
const float width,
const float height,
const OTV_ RectangleInfoStaticFlags static_flags)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| rgb | The value for the field OTV_RectangleInfo:: |
| color_map | The value for the field OTV_RectangleInfo:: |
| width | The value for the field OTV_RectangleInfo:: |
| height | The value for the field OTV_RectangleInfo:: |
| static_flags | The value for the field OTV_RectangleInfo:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_RectangleInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ RectangleInfo* otv__upcast_RectangleInfo(const OTV_ GlyphInfo* rectangle_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| rectangle_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_RectangleInfo(const OTV_ RectangleInfo* rectangle_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| rectangle_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_RectangleData(const float s,
const float color,
const float width,
const float height)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_RectangleData:: |
| color | The value for the field OTV_RectangleData:: |
| width | The value for the field OTV_RectangleData:: |
| height | The value for the field OTV_RectangleData:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_RectangleData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ RectangleData* otv__upcast_RectangleData(const OTV_ GlyphData* rectangle_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| rectangle_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_RectangleData(const OTV_ RectangleData* rectangle_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| rectangle_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ Vec2 otv__instantiate_Rectangle(const float traj_radius,
const OTV_ RectangleInfo* info,
const OTV_ RectangleData* data)
Instantiates the given Rectangle glyph to calculate its geometry and returns its extents along the trajectory.
| Parameters | |
|---|---|
| traj_radius | The radius of the trajectory on which to instantiate the Rectangle. |
| info | The static glyph parameters to use during instantiation. |
| data | The data to instantiate the Rectangle with. |
| Returns | The extents of the given Rectangle glyph relative to its anchor position. OTV_Vec2:: will contain the radius in trailing direction of the trajectory, and OTV_Vec2:: the radius in leading direction. |
OTV_ API OTV_ GlyphInfo otv__construct_IsoscelesTriangleInfo(const OTV_ Rgb rgb,
const OTV_ ColorMap color_map,
const float width,
const float height,
const float orientation,
const OTV_ IsoscelesTriangleInfoStaticFlags static_flags)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| rgb | The value for the field OTV_IsoscelesTriangleInfo:: |
| color_map | The value for the field OTV_IsoscelesTriangleInfo:: |
| width | The value for the field OTV_IsoscelesTriangleInfo:: |
| height | The value for the field OTV_IsoscelesTriangleInfo:: |
| orientation | The value for the field OTV_IsoscelesTriangleInfo:: |
| static_flags | The value for the field OTV_IsoscelesTriangleInfo:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_IsoscelesTriangleInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ IsoscelesTriangleInfo* otv__upcast_IsoscelesTriangleInfo(const OTV_ GlyphInfo* isosceles_triangle_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| isosceles_triangle_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_IsoscelesTriangleInfo(const OTV_ IsoscelesTriangleInfo* isosceles_triangle_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| isosceles_triangle_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_IsoscelesTriangleData(const float s,
const float color,
const float width,
const float height,
const float orientation)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_IsoscelesTriangleData:: |
| color | The value for the field OTV_IsoscelesTriangleData:: |
| width | The value for the field OTV_IsoscelesTriangleData:: |
| height | The value for the field OTV_IsoscelesTriangleData:: |
| orientation | The value for the field OTV_IsoscelesTriangleData:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_IsoscelesTriangleData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ IsoscelesTriangleData* otv__upcast_IsoscelesTriangleData(const OTV_ GlyphData* isosceles_triangle_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| isosceles_triangle_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_IsoscelesTriangleData(const OTV_ IsoscelesTriangleData* isosceles_triangle_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| isosceles_triangle_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ Vec2 otv__instantiate_IsoscelesTriangle(const float traj_radius,
const OTV_ IsoscelesTriangleInfo* info,
const OTV_ IsoscelesTriangleData* data)
Instantiates the given Isosceles Triangle glyph to calculate its geometry and returns its extents along the trajectory.
| Parameters | |
|---|---|
| traj_radius | The radius of the trajectory on which to instantiate the Isosceles Triangle. |
| info | The static glyph parameters to use during instantiation. |
| data | The data to instantiate the Isosceles Triangle with. |
| Returns | The extents of the given Isosceles Triangle glyph relative to its anchor position. OTV_Vec2:: will contain the radius in trailing direction of the trajectory, and OTV_Vec2:: the radius in leading direction. |
OTV_ API OTV_ GlyphInfo otv__construct_SignBlobInfo(const OTV_ Rgb rgb,
const OTV_ ColorMap color_map,
const float radius,
const float value,
const OTV_ SignBlobInfoStaticFlags static_flags)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| rgb | The value for the field OTV_SignBlobInfo:: |
| color_map | The value for the field OTV_SignBlobInfo:: |
| radius | The value for the field OTV_SignBlobInfo:: |
| value | The value for the field OTV_SignBlobInfo:: |
| static_flags | The value for the field OTV_SignBlobInfo:: |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphInfo otv__construct_empty_SignBlobInfo(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ SignBlobInfo* otv__upcast_SignBlobInfo(const OTV_ GlyphInfo* sign_blob_info)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| sign_blob_info | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphInfo* otv__downcast_SignBlobInfo(const OTV_ SignBlobInfo* sign_blob_info)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| sign_blob_info | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData otv__construct_SignBlobData(const float s,
const float color,
const float value)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable.
| Parameters | |
|---|---|
| s | The value for the field OTV_SignBlobData:: |
| color | The value for the field OTV_SignBlobData:: |
| value | The value for the field OTV_SignBlobData::width |
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
OTV_ API OTV_ GlyphData otv__construct_empty_SignBlobData(void)
Constructs an instance of the OTV_ struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
| Returns | An instance of the OTV_ struct, downcasted to the generic OTV_. |
|---|
OTV_ API OTV_ SignBlobData* otv__upcast_SignBlobData(const OTV_ GlyphData* sign_blob_data)
Upcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| sign_blob_data | The OTV_ to upcast. |
| Returns | The upcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ GlyphData* otv__downcast_SignBlobData(const OTV_ SignBlobData* sign_blob_data)
Downcasts a OTV_ struct to a OTV_.
| Parameters | |
|---|---|
| sign_blob_data | The OTV_ to downcast. |
| Returns | The downcasted OTV_ view on the given OTV_. |
OTV_ API OTV_ Vec2 otv__instantiate_SignBlob(const float traj_radius,
const OTV_ SignBlobInfo* info,
const OTV_ SignBlobData* data)
Instantiates the given Sign Blob glyph to calculate its geometry and returns its extents along the trajectory.
| Parameters | |
|---|---|
| traj_radius | The radius of the trajectory on which to instantiate the Sign Blob. |
| info | The static glyph parameters to use during instantiation. |
| data | The data to instantiate the Sign Blob with. |
| Returns | The extents of the given Sign Blob glyph relative to its anchor position. OTV_Vec2:: will contain the radius in trailing direction of the trajectory, and OTV_Vec2:: the radius in leading direction. |
OTV_ API const char*const otv__string_from_ColorMap(const OTV_ ColorMap color_map)
Returns a human-readable string representation of the given OTV_ColorMap enum.
| Parameters | |
|---|---|
| color_map | The color map to return a string for. |
| Returns | A human-readable string representation of the given OTV_ColorMap enum. |
OTV_ API const char*const otv__string_from_GlyphType(const OTV_ GlyphType glyph_type)
Returns a human-readable string representation of the given OTV_GlyphType enum.
| Parameters | |
|---|---|
| glyph_type | The glyph type to return a string for. |
| Returns | A human-readable string representation of the given OTV_GlyphType enum. |
OTV_ API const char*const otv__string_from_InterpolationMode(const OTV_ InterpolationMode interpolation_mode)
Returns a human-readable string representation of the given OTV_InterpolationMode enum.
| Parameters | |
|---|---|
| interpolation_mode | The glyph type to return a string for. |
| Returns | A human-readable string representation of the given OTV_InterpolationMode enum. |