include/OnTubeVis/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::SurfaceColor glyph.
struct OTV_SurfaceColorData
The data struct for the GlyphType::SurfaceColor glyph.
struct OTV_LinePlotInfo
The info struct for the GlyphType::LinePlot glyph.
struct OTV_LinePlotData
The data struct for the GlyphType::LinePlot glyph.
struct OTV_CircleInfo
The info struct for the GlyphType::Circle glyph.
struct OTV_CircleData
The data struct for the GlyphType::Circle glyph.
struct OTV_RectangleInfo
The info struct for the GlyphType::Rect glyph.
struct OTV_RectangleData
The data struct for the GlyphType::Rect glyph.
struct OTV_IsoscelesTriangleInfo
The info struct for the GlyphType::IsoscelesTriangle glyph.
struct OTV_IsoscelesTriangleData
The data struct for the GlyphType::Rect glyph.
struct OTV_SignBlobInfo
The info struct for the GlyphType::SignBlob glyph.
struct OTV_SignBlobData
The data struct for the GlyphType::SignBlob glyph.

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_SurfaceColorInfo structs.
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_CircleInfo structs.
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_RectangleInfo structs.
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_IsoscelesTriangleInfo structs.
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_SignBlobInfo structs.

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__construct_SurfaceColorInfo() function.
using otv__construct_empty_SurfaceColorInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_SurfaceColorInfo() function.
using otv__upcast_SurfaceColorInfo_funct = OTV_SurfaceColorInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_SurfaceColorInfo() function.
using otv__downcast_SurfaceColorInfo_funct = OTV_GlyphInfo*(*)(const OTV_SurfaceColorInfo*)
The function pointer type for the otv__downcast_SurfaceColorInfo() function.
using otv__construct_SurfaceColorData_funct = OTV_GlyphData(*)(const float, const float)
The function pointer type for the otv__construct_SurfaceColorData() function.
using otv__construct_empty_SurfaceColorData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_SurfaceColorData() function.
using otv__upcast_SurfaceColorData_funct = OTV_SurfaceColorData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_SurfaceColorData() function.
using otv__downcast_SurfaceColorData_funct = OTV_GlyphData*(*)(const OTV_SurfaceColorData*)
The function pointer type for the otv__downcast_SurfaceColorData() function.
using otv__construct_LinePlotInfo_funct = OTV_GlyphInfo(*)(const OTV_InterpolationMode, const uint32_t, const OTV_Rgb[])
The function pointer type for the otv__construct_LinePlotInfo() function.
using otv__construct_empty_LinePlotInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_LinePlotInfo() function.
using otv__upcast_LinePlotInfo_funct = OTV_LinePlotInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_LinePlotInfo() function.
using otv__downcast_LinePlotInfo_funct = OTV_GlyphInfo*(*)(const OTV_LinePlotInfo*)
The function pointer type for the otv__downcast_LinePlotInfo() function.
using otv__construct_LinePlotData_funct = OTV_GlyphData(*)(const float, const uint32_t, const float[])
The function pointer type for the otv__construct_LinePlotData() function.
using otv__construct_empty_LinePlotData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_LinePlotData() function.
using otv__upcast_LinePlotData_funct = OTV_LinePlotData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_LinePlotData() function.
using otv__downcast_LinePlotData_funct = OTV_GlyphData*(*)(const OTV_LinePlotData*)
The function pointer type for the otv__downcast_LinePlotData() function.
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__construct_CircleInfo() function.
using otv__construct_empty_CircleInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_CircleInfo() function.
using otv__upcast_CircleInfo_funct = OTV_CircleInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_CircleInfo() function.
using otv__downcast_CircleInfo_funct = OTV_GlyphInfo*(*)(const OTV_CircleInfo*)
The function pointer type for the otv__downcast_CircleInfo() function.
using otv__construct_CircleData_funct = OTV_GlyphData(*)(const float, const float, const float)
The function pointer type for the otv__construct_CircleData() function.
using otv__construct_empty_CircleData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_CircleData() function.
using otv__upcast_CircleData_funct = OTV_CircleData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_CircleData() function.
using otv__downcast_CircleData_funct = OTV_GlyphData*(*)(const OTV_CircleData*)
The function pointer type for the otv__downcast_CircleData() function.
using otv__instantiate_Circle_funct = OTV_Vec2(*)(const float, const OTV_CircleInfo*, const OTV_CircleData*)
The function pointer type for the otv__instantiate_Circle() function.
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__construct_RectangleInfo() function.
using otv__construct_empty_RectangleInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_RectangleInfo() function.
using otv__upcast_RectangleInfo_funct = OTV_RectangleInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_RectangleInfo() function.
using otv__downcast_RectangleInfo_funct = OTV_GlyphInfo*(*)(const OTV_RectangleInfo*)
The function pointer type for the otv__downcast_RectangleInfo() function.
using otv__construct_RectangleData_funct = OTV_GlyphData(*)(const float, const float, const float, const float)
The function pointer type for the otv__construct_RectangleData() function.
using otv__construct_empty_RectangleData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_RectangleData() function.
using otv__upcast_RectangleData_funct = OTV_RectangleData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_RectangleData() function.
using otv__downcast_RectangleData_funct = OTV_GlyphData*(*)(const OTV_RectangleData*)
The function pointer type for the otv__downcast_RectangleData() function.
using otv__instantiate_Rectangle_funct = OTV_Vec2(*)(const float, const OTV_RectangleInfo*, const OTV_RectangleData*)
The function pointer type for the otv__instantiate_Rectangle() function.
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__construct_IsoscelesTriangleInfo() function.
using otv__construct_empty_IsoscelesTriangleInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_IsoscelesTriangleInfo() function.
using otv__upcast_IsoscelesTriangleInfo_funct = OTV_IsoscelesTriangleInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_IsoscelesTriangleInfo() function.
using otv__downcast_IsoscelesTriangleInfo_funct = OTV_GlyphInfo*(*)(const OTV_IsoscelesTriangleInfo*)
The function pointer type for the otv__downcast_IsoscelesTriangleInfo() function.
using otv__construct_IsoscelesTriangleData_funct = OTV_GlyphData(*)(const float, const float, const float, const float, const float)
The function pointer type for the otv__construct_IsoscelesTriangleData() function.
using otv__construct_empty_IsoscelesTriangleData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_IsoscelesTriangleData() function.
using otv__upcast_IsoscelesTriangleData_funct = OTV_IsoscelesTriangleData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_IsoscelesTriangleData() function.
using otv__downcast_IsoscelesTriangleData_funct = OTV_GlyphData*(*)(const OTV_IsoscelesTriangleData*)
The function pointer type for the otv__downcast_IsoscelesTriangleData() function.
using otv__instantiate_IsoscelesTriangle_funct = OTV_Vec2(*)(const float, const OTV_IsoscelesTriangleInfo*, const OTV_IsoscelesTriangleData*)
The function pointer type for the otv__instantiate_IsoscelesTriangle() function.
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__construct_SignBlobInfo() function.
using otv__construct_empty_SignBlobInfo_funct = OTV_GlyphInfo(*)(void)
The function pointer type for the otv__construct_empty_SignBlobInfo() function.
using otv__upcast_SignBlobInfo_funct = OTV_SignBlobInfo*(*)(const OTV_GlyphInfo*)
The function pointer type for the otv__upcast_SignBlobInfo() function.
using otv__downcast_SignBlobInfo_funct = OTV_GlyphInfo*(*)(const OTV_SignBlobInfo*)
The function pointer type for the otv__downcast_SignBlobInfo() function.
using otv__construct_SignBlobData_funct = OTV_GlyphData(*)(const float, const float, const float)
The function pointer type for the otv__construct_SignBlobData() function.
using otv__construct_empty_SignBlobData_funct = OTV_GlyphData(*)(void)
The function pointer type for the otv__construct_empty_SignBlobData() function.
using otv__upcast_SignBlobData_funct = OTV_SignBlobData*(*)(const OTV_GlyphData*)
The function pointer type for the otv__upcast_SignBlobData() function.
using otv__downcast_SignBlobData_funct = OTV_GlyphData*(*)(const OTV_SignBlobData*)
The function pointer type for the otv__downcast_SignBlobData() function.
using otv__instantiate_SignBlob_funct = OTV_Vec2(*)(const float, const OTV_SignBlobInfo*, const OTV_SignBlobData*)
The function pointer type for the otv__instantiate_SignBlob() function.
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_SurfaceColorInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_SurfaceColorInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_SurfaceColorInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_SurfaceColorInfo(const OTV_GlyphInfo* surface_color_info) -> OTV_API OTV_SurfaceColorInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_SurfaceColorInfo.
auto otv__downcast_SurfaceColorInfo(const OTV_SurfaceColorInfo* surface_color_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_SurfaceColorInfo struct to a OTV_GlyphInfo.
auto otv__construct_SurfaceColorData(const float s, const float color) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_SurfaceColorData struct that will be correctly up- and downcastable.
auto otv__construct_empty_SurfaceColorData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_SurfaceColorData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_SurfaceColorData(const OTV_GlyphData* surface_color_data) -> OTV_API OTV_SurfaceColorData*
Upcasts a OTV_GlyphData struct to a OTV_SurfaceColorData.
auto otv__downcast_SurfaceColorData(const OTV_SurfaceColorData* surface_color_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_SurfaceColorData struct to a 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_LinePlotInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_LinePlotInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_LinePlotInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_LinePlotInfo(const OTV_GlyphInfo* line_plot_info) -> OTV_API OTV_LinePlotInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_LinePlotInfo.
auto otv__downcast_LinePlotInfo(const OTV_LinePlotInfo* line_plot_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_LinePlotInfo struct to a 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_LinePlotData struct that will be correctly up- and downcastable.
auto otv__construct_empty_LinePlotData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_LinePlotData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_LinePlotData(const OTV_GlyphData* line_plot_data) -> OTV_API OTV_LinePlotData*
Upcasts a OTV_GlyphData struct to a OTV_LinePlotData.
auto otv__downcast_LinePlotData(const OTV_LinePlotData* line_plot_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_LinePlotData struct to a 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_CircleInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_CircleInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_CircleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_CircleInfo(const OTV_GlyphInfo* circle_info) -> OTV_API OTV_CircleInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_CircleInfo.
auto otv__downcast_CircleInfo(const OTV_CircleInfo* circle_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_CircleInfo struct to a 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_CircleData struct that will be correctly up- and downcastable.
auto otv__construct_empty_CircleData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_CircleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_CircleData(const OTV_GlyphData* circle_data) -> OTV_API OTV_CircleData*
Upcasts a OTV_GlyphData struct to a OTV_CircleData.
auto otv__downcast_CircleData(const OTV_CircleData* circle_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_CircleData struct to a 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_RectangleInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_RectangleInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_RectangleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_RectangleInfo(const OTV_GlyphInfo* rectangle_info) -> OTV_API OTV_RectangleInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_RectangleInfo.
auto otv__downcast_RectangleInfo(const OTV_RectangleInfo* rectangle_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_RectangleInfo struct to a 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_RectangleData struct that will be correctly up- and downcastable.
auto otv__construct_empty_RectangleData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_RectangleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_RectangleData(const OTV_GlyphData* rectangle_data) -> OTV_API OTV_RectangleData*
Upcasts a OTV_GlyphData struct to a OTV_RectangleData.
auto otv__downcast_RectangleData(const OTV_RectangleData* rectangle_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_RectangleData struct to a 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_IsoscelesTriangleInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_IsoscelesTriangleInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_IsoscelesTriangleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_IsoscelesTriangleInfo(const OTV_GlyphInfo* isosceles_triangle_info) -> OTV_API OTV_IsoscelesTriangleInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_IsoscelesTriangleInfo.
auto otv__downcast_IsoscelesTriangleInfo(const OTV_IsoscelesTriangleInfo* isosceles_triangle_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_IsoscelesTriangleInfo struct to a 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_IsoscelesTriangleData struct that will be correctly up- and downcastable.
auto otv__construct_empty_IsoscelesTriangleData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_IsoscelesTriangleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_IsoscelesTriangleData(const OTV_GlyphData* isosceles_triangle_data) -> OTV_API OTV_IsoscelesTriangleData*
Upcasts a OTV_GlyphData struct to a OTV_IsoscelesTriangleData.
auto otv__downcast_IsoscelesTriangleData(const OTV_IsoscelesTriangleData* isosceles_triangle_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_IsoscelesTriangleData struct to a 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_SignBlobInfo struct that will be correctly up- and downcastable.
auto otv__construct_empty_SignBlobInfo(void) -> OTV_API OTV_GlyphInfo
Constructs an instance of the OTV_SignBlobInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_SignBlobInfo(const OTV_GlyphInfo* sign_blob_info) -> OTV_API OTV_SignBlobInfo*
Upcasts a OTV_GlyphInfo struct to a OTV_SignBlobInfo.
auto otv__downcast_SignBlobInfo(const OTV_SignBlobInfo* sign_blob_info) -> OTV_API OTV_GlyphInfo*
Downcasts a OTV_SignBlobInfo struct to a 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_SignBlobData struct that will be correctly up- and downcastable.
auto otv__construct_empty_SignBlobData(void) -> OTV_API OTV_GlyphData
Constructs an instance of the OTV_SignBlobData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.
auto otv__upcast_SignBlobData(const OTV_GlyphData* sign_blob_data) -> OTV_API OTV_SignBlobData*
Upcasts a OTV_GlyphData struct to a OTV_SignBlobData.
auto otv__downcast_SignBlobData(const OTV_SignBlobData* sign_blob_data) -> OTV_API OTV_GlyphData*
Downcasts a OTV_SignBlobData struct to a 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_ColorMap enum.
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_GlyphType enum.
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_InterpolationMode enum.

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_SurfaceColorInfo struct that will be correctly up- and downcastable.

Parameters
rgb The value for the field OTV_SurfaceColorInfo::rgb
color_map The value for the field OTV_SurfaceColorInfo::color_map
interpolation_mode The value for the field OTV_SurfaceColorInfo::interpolation_mode
static_flags The value for the field OTV_SurfaceColorInfo::static_flags
Returns An instance of the OTV_SurfaceColorInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_SurfaceColorInfo(void)

Constructs an instance of the OTV_SurfaceColorInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_SurfaceColorInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_SurfaceColorInfo* otv__upcast_SurfaceColorInfo(const OTV_GlyphInfo* surface_color_info)

Upcasts a OTV_GlyphInfo struct to a OTV_SurfaceColorInfo.

Parameters
surface_color_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_SurfaceColorInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_SurfaceColorInfo(const OTV_SurfaceColorInfo* surface_color_info)

Downcasts a OTV_SurfaceColorInfo struct to a OTV_GlyphInfo.

Parameters
surface_color_info The OTV_SurfaceColorInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_SurfaceColorInfo.

OTV_API OTV_GlyphData otv__construct_SurfaceColorData(const float s, const float color)

Constructs an instance of the OTV_SurfaceColorData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_SurfaceColorData::s
color The value for the field OTV_SurfaceColorData::color
Returns An instance of the OTV_SurfaceColorData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_SurfaceColorData(void)

Constructs an instance of the OTV_SurfaceColorData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_SurfaceColorData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_SurfaceColorData* otv__upcast_SurfaceColorData(const OTV_GlyphData* surface_color_data)

Upcasts a OTV_GlyphData struct to a OTV_SurfaceColorData.

Parameters
surface_color_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_SurfaceColorData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_SurfaceColorData(const OTV_SurfaceColorData* surface_color_data)

Downcasts a OTV_SurfaceColorData struct to a OTV_GlyphData.

Parameters
surface_color_data The OTV_SurfaceColorData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_SurfaceColorData.

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_LinePlotInfo struct that will be correctly up- and downcastable.

Parameters
interpolation_mode The value for the field OTV_LinePlotInfo::interpolation_mode
num_subplots The value for the field OTV_LinePlotInfo::num_subplots
subplot_colors The values for the field OTV_LinePlotInfo::subplot_colors. Only the first num_subplots entries need to be set.
Returns An instance of the OTV_LinePlotInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_LinePlotInfo(void)

Constructs an instance of the OTV_LinePlotInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_LinePlotInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_LinePlotInfo* otv__upcast_LinePlotInfo(const OTV_GlyphInfo* line_plot_info)

Upcasts a OTV_GlyphInfo struct to a OTV_LinePlotInfo.

Parameters
line_plot_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_LinePlotInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_LinePlotInfo(const OTV_LinePlotInfo* line_plot_info)

Downcasts a OTV_LinePlotInfo struct to a OTV_GlyphInfo.

Parameters
line_plot_info The OTV_LinePlotInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_LinePlotInfo.

OTV_API OTV_GlyphData otv__construct_LinePlotData(const float s, const uint32_t num_values, const float values[])

Constructs an instance of the OTV_LinePlotData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_LinePlotData::s
num_values The number of values the caller wants to pass in via the values argument.
values The values for the field OTV_LinePlotData::values. Only the first num_subplots entries need to be set.
Returns An instance of the OTV_LinePlotData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_LinePlotData(void)

Constructs an instance of the OTV_LinePlotData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_LinePlotData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_LinePlotData* otv__upcast_LinePlotData(const OTV_GlyphData* line_plot_data)

Upcasts a OTV_GlyphData struct to a OTV_LinePlotData.

Parameters
line_plot_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_LinePlotData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_LinePlotData(const OTV_LinePlotData* line_plot_data)

Downcasts a OTV_LinePlotData struct to a OTV_GlyphData.

Parameters
line_plot_data The OTV_LinePlotData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_LinePlotData.

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_CircleInfo struct that will be correctly up- and downcastable.

Parameters
rgb The value for the field OTV_CircleInfo::rgb
color_map The value for the field OTV_CircleInfo::color_map
radius The value for the field OTV_CircleInfo::radius
static_flags The value for the field OTV_CircleInfo::static_flags
Returns An instance of the OTV_CircleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_CircleInfo(void)

Constructs an instance of the OTV_CircleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_CircleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_CircleInfo* otv__upcast_CircleInfo(const OTV_GlyphInfo* circle_info)

Upcasts a OTV_GlyphInfo struct to a OTV_CircleInfo.

Parameters
circle_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_CircleInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_CircleInfo(const OTV_CircleInfo* circle_info)

Downcasts a OTV_CircleInfo struct to a OTV_GlyphInfo.

Parameters
circle_info The OTV_CircleInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_CircleInfo.

OTV_API OTV_GlyphData otv__construct_CircleData(const float s, const float color, const float radius)

Constructs an instance of the OTV_CircleData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_CircleData::s
color The value for the field OTV_CircleData::color
radius The value for the field OTV_CircleData::radius
Returns An instance of the OTV_CircleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_CircleData(void)

Constructs an instance of the OTV_CircleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_CircleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_CircleData* otv__upcast_CircleData(const OTV_GlyphData* circle_data)

Upcasts a OTV_GlyphData struct to a OTV_CircleData.

Parameters
circle_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_CircleData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_CircleData(const OTV_CircleData* circle_data)

Downcasts a OTV_CircleData struct to a OTV_GlyphData.

Parameters
circle_data The OTV_CircleData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_CircleData.

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::x will contain the radius in trailing direction of the trajectory, and OTV_Vec2::y 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_RectangleInfo struct that will be correctly up- and downcastable.

Parameters
rgb The value for the field OTV_RectangleInfo::rgb
color_map The value for the field OTV_RectangleInfo::color_map
width The value for the field OTV_RectangleInfo::width
height The value for the field OTV_RectangleInfo::height
static_flags The value for the field OTV_RectangleInfo::static_flags
Returns An instance of the OTV_RectangleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_RectangleInfo(void)

Constructs an instance of the OTV_RectangleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_RectangleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_RectangleInfo* otv__upcast_RectangleInfo(const OTV_GlyphInfo* rectangle_info)

Upcasts a OTV_GlyphInfo struct to a OTV_RectangleInfo.

Parameters
rectangle_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_RectangleInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_RectangleInfo(const OTV_RectangleInfo* rectangle_info)

Downcasts a OTV_RectangleInfo struct to a OTV_GlyphInfo.

Parameters
rectangle_info The OTV_RectangleInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_RectangleInfo.

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_RectangleData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_RectangleData::s
color The value for the field OTV_RectangleData::color
width The value for the field OTV_RectangleData::width
height The value for the field OTV_RectangleData::height
Returns An instance of the OTV_RectangleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_RectangleData(void)

Constructs an instance of the OTV_RectangleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_RectangleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_RectangleData* otv__upcast_RectangleData(const OTV_GlyphData* rectangle_data)

Upcasts a OTV_GlyphData struct to a OTV_RectangleData.

Parameters
rectangle_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_RectangleData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_RectangleData(const OTV_RectangleData* rectangle_data)

Downcasts a OTV_RectangleData struct to a OTV_GlyphData.

Parameters
rectangle_data The OTV_RectangleData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_RectangleData.

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::x will contain the radius in trailing direction of the trajectory, and OTV_Vec2::y 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_IsoscelesTriangleInfo struct that will be correctly up- and downcastable.

Parameters
rgb The value for the field OTV_IsoscelesTriangleInfo::rgb
color_map The value for the field OTV_IsoscelesTriangleInfo::color_map
width The value for the field OTV_IsoscelesTriangleInfo::width
height The value for the field OTV_IsoscelesTriangleInfo::height
orientation The value for the field OTV_IsoscelesTriangleInfo::orientation
static_flags The value for the field OTV_IsoscelesTriangleInfo::static_flags
Returns An instance of the OTV_IsoscelesTriangleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_IsoscelesTriangleInfo(void)

Constructs an instance of the OTV_IsoscelesTriangleInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_IsoscelesTriangleInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_IsoscelesTriangleInfo* otv__upcast_IsoscelesTriangleInfo(const OTV_GlyphInfo* isosceles_triangle_info)

Upcasts a OTV_GlyphInfo struct to a OTV_IsoscelesTriangleInfo.

Parameters
isosceles_triangle_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_IsoscelesTriangleInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_IsoscelesTriangleInfo(const OTV_IsoscelesTriangleInfo* isosceles_triangle_info)

Downcasts a OTV_IsoscelesTriangleInfo struct to a OTV_GlyphInfo.

Parameters
isosceles_triangle_info The OTV_IsoscelesTriangleInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_IsoscelesTriangleInfo.

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_IsoscelesTriangleData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_IsoscelesTriangleData::s
color The value for the field OTV_IsoscelesTriangleData::color
width The value for the field OTV_IsoscelesTriangleData::width
height The value for the field OTV_IsoscelesTriangleData::height
orientation The value for the field OTV_IsoscelesTriangleData::orientation
Returns An instance of the OTV_IsoscelesTriangleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_IsoscelesTriangleData(void)

Constructs an instance of the OTV_IsoscelesTriangleData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_IsoscelesTriangleData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_IsoscelesTriangleData* otv__upcast_IsoscelesTriangleData(const OTV_GlyphData* isosceles_triangle_data)

Upcasts a OTV_GlyphData struct to a OTV_IsoscelesTriangleData.

Parameters
isosceles_triangle_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_IsoscelesTriangleData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_IsoscelesTriangleData(const OTV_IsoscelesTriangleData* isosceles_triangle_data)

Downcasts a OTV_IsoscelesTriangleData struct to a OTV_GlyphData.

Parameters
isosceles_triangle_data The OTV_IsoscelesTriangleData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_IsoscelesTriangleData.

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::x will contain the radius in trailing direction of the trajectory, and OTV_Vec2::y 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_SignBlobInfo struct that will be correctly up- and downcastable.

Parameters
rgb The value for the field OTV_SignBlobInfo::rgb
color_map The value for the field OTV_SignBlobInfo::color_map
radius The value for the field OTV_SignBlobInfo::radius
value The value for the field OTV_SignBlobInfo::value
static_flags The value for the field OTV_SignBlobInfo::static_flags
Returns An instance of the OTV_SignBlobInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_GlyphInfo otv__construct_empty_SignBlobInfo(void)

Constructs an instance of the OTV_SignBlobInfo struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_SignBlobInfo struct, downcasted to the generic OTV_GlyphInfo.

OTV_API OTV_SignBlobInfo* otv__upcast_SignBlobInfo(const OTV_GlyphInfo* sign_blob_info)

Upcasts a OTV_GlyphInfo struct to a OTV_SignBlobInfo.

Parameters
sign_blob_info The OTV_GlyphInfo to upcast.
Returns The upcasted OTV_SignBlobInfo view on the given OTV_GlyphInfo.

OTV_API OTV_GlyphInfo* otv__downcast_SignBlobInfo(const OTV_SignBlobInfo* sign_blob_info)

Downcasts a OTV_SignBlobInfo struct to a OTV_GlyphInfo.

Parameters
sign_blob_info The OTV_SignBlobInfo to downcast.
Returns The downcasted OTV_GlyphInfo view on the given OTV_SignBlobInfo.

OTV_API OTV_GlyphData otv__construct_SignBlobData(const float s, const float color, const float value)

Constructs an instance of the OTV_SignBlobData struct that will be correctly up- and downcastable.

Parameters
s The value for the field OTV_SignBlobData::s
color The value for the field OTV_SignBlobData::color
value The value for the field OTV_SignBlobData::width
Returns An instance of the OTV_SignBlobData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_GlyphData otv__construct_empty_SignBlobData(void)

Constructs an instance of the OTV_SignBlobData struct that will be correctly up- and downcastable. All but the constant N will be left uninitialized.

Returns An instance of the OTV_SignBlobData struct, downcasted to the generic OTV_GlyphData.

OTV_API OTV_SignBlobData* otv__upcast_SignBlobData(const OTV_GlyphData* sign_blob_data)

Upcasts a OTV_GlyphData struct to a OTV_SignBlobData.

Parameters
sign_blob_data The OTV_GlyphData to upcast.
Returns The upcasted OTV_SignBlobData view on the given OTV_GlyphData.

OTV_API OTV_GlyphData* otv__downcast_SignBlobData(const OTV_SignBlobData* sign_blob_data)

Downcasts a OTV_SignBlobData struct to a OTV_GlyphData.

Parameters
sign_blob_data The OTV_SignBlobData to downcast.
Returns The downcasted OTV_GlyphData view on the given OTV_SignBlobData.

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::x will contain the radius in trailing direction of the trajectory, and OTV_Vec2::y 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.