HIRO_DRAW
Computer Graphics Structures library
hiro::draw Namespace Reference

Extensions for object visualization. Implements a higher level of OpenGL rendering. More...

Data Structures

class  BillboardRenderer
 Renderer used for rendering images in 3D space. More...
 
struct  BillboardStyle
 Stylization of the rendered billboard. More...
 
class  CircleRenderer
 Renderer used for rendering meshes. More...
 
class  CircleStyle
 Stylization of the rendered mesh. More...
 
class  ElementRenderer
 Base class for rendering of geometry data. More...
 
struct  FacesStyle
 Face rendering stylization. More...
 
class  FrustumRenderer
 Renderer used for rendering cogs::Frustum. More...
 
struct  FrustumStyle
 Stylization of the rendered frustum. More...
 
struct  Geometry
 Holds information about geometry. More...
 
class  GeometryRenderer
 
struct  GeometryStyle
 Stylization of the rendered geometry. More...
 
class  GraphRenderer
 Renderer used for rendering 2D graphs. More...
 
struct  GraphStyle
 Stylization of the rendered graph. More...
 
class  ImageRenderer
 Image image which can have individual pixels set. More...
 
struct  ImageStyle
 Structure specifying how the Image should be rendered. More...
 
class  LineFieldRenderer
 Renderer used for rendering array of lines. More...
 
struct  LineFieldStyle
 Stylization of the rendered line field. More...
 
class  MeshRenderer
 Renderer used for rendering meshes. More...
 
struct  NormalsStyle
 Normal vector rendering stylization. More...
 
class  PointCloudRenderer
 Renderer used for rendering point clouds. More...
 
struct  PointCloudStyle
 Stylization of the rendered point cloud. More...
 
struct  PointsStyle
 Point rendering stylization. More...
 
class  PrimitiveDatabase
 Database of common mesh primitives. Automatically manages OpenGL resources. More...
 
struct  ProjectionParams
 Projection, camera and viewport parameters. More...
 
class  RasterRenderer
 Raster image which can have individual pixels set. More...
 
class  Renderer
 Abstract base class for an arbitrary renderer object. More...
 
class  RenderSystem
 Class responsible for rendering loop implementation and its optimization. More...
 
class  Scene
 Defines rendering viewport, contains multiple object instances and a camera. More...
 
class  SkeletonRenderer
 Skeleton visualization with possibility to change poses. More...
 
struct  SkeletonStyle
 Structure specifying how the skeleton should be rendered. More...
 
struct  Style
 Base class for setting rendering style of an arbitrary render object. More...
 
class  TextPrinter
 Helper class for easier state printing to the top left corner of the viewport. More...
 
class  TextRenderer
 Responsible for rendering texts. More...
 
class  VisualCamera
 A wrapper over view matrix, providing intuitive control. More...
 
class  VisualCameraController
 Provides an automatic interface to camera manipulation by runtime user interaction. More...
 

Typedefs

using PStyle = std::shared_ptr< hiro::draw::Style >
 
using PRenderer = std::shared_ptr< hiro::draw::Renderer >
 
using PBillboardStyle = std::shared_ptr< BillboardStyle >
 Shared pointer to an object of the type BillboardStyle.
 
using PBillboardRenderer = std::shared_ptr< BillboardRenderer >
 Shared pointer to an object of the type BillboardRenderer.
 
using PCircleStyle = std::shared_ptr< CircleStyle >
 Shared pointer to an object of the type CircleStyle.
 
using PCircleRenderer = std::shared_ptr< CircleRenderer >
 Shared pointer to an object of the type CircleRenderer.
 
using PFrustumStyle = std::shared_ptr< hiro::draw::FrustumStyle >
 Shared pointer to an object of the type FrustumStyle.
 
using PFrustumRenderer = std::shared_ptr< hiro::draw::FrustumRenderer >
 Shared pointer to an object of the type FrustumRenderer.
 
using PGeometryStyle = std::shared_ptr< hiro::draw::GeometryStyle >
 Shared pointer to an object of the type GeometryStyle.
 
using PGeometryRenderer = std::shared_ptr< hiro::draw::GeometryRenderer >
 Shared pointer to an object of the type GeometryRenderer.
 
using PGraphStyle = std::shared_ptr< hiro::draw::GraphStyle >
 Shared pointer to an object of the type GraphStyle.
 
using PGraphRenderer = std::shared_ptr< hiro::draw::GraphRenderer >
 Shared pointer to an object of the type GraphRenderer.
 
using PImageStyle = std::shared_ptr< ImageStyle >
 Shared pointer to an object of the type ImageStyle.
 
using PImageRenderer = std::shared_ptr< ImageRenderer >
 Shared pointer to an object of the type ImageRenderer.
 
using PLineFieldStyle = std::shared_ptr< hiro::draw::LineFieldStyle >
 Shared pointer to an object of the type LineFieldStyle.
 
using PLineFieldRenderer = std::shared_ptr< hiro::draw::LineFieldRenderer >
 Shared pointer to an object of the type LineFieldRenderer.
 
using MeshStyle = hiro::draw::GeometryStyle
 Stylization of the rendered mesh.
 
using PMeshStyle = std::shared_ptr< hiro::draw::MeshStyle >
 Shared pointer to an object of the type MeshStyle.
 
using PMeshRenderer = std::shared_ptr< hiro::draw::MeshRenderer >
 Shared pointer to an object of the type MeshRenderer.
 
using PPointCloudStyle = std::shared_ptr< hiro::draw::PointCloudStyle >
 Shared pointer to an object of the type PointCloudStyle.
 
using PPointCloudRenderer = std::shared_ptr< hiro::draw::PointCloudRenderer >
 Shared pointer to an object of the type PointCloudRenderer.
 
using RasterStyle = ImageStyle
 Structure specifying how the raster should be rendered.
 
using PRasterStyle = std::shared_ptr< hiro::draw::RasterStyle >
 Shared pointer to an object of the type RasterStyle.
 
using PRasterRenderer = std::shared_ptr< hiro::draw::RasterRenderer >
 Shared pointer to an object of the type RasterRenderer.
 
using PSkeletonStyle = std::shared_ptr< hiro::draw::SkeletonStyle >
 Shared pointer to an object of the type SkeletonStyle.
 
using PSkeletonRenderer = std::shared_ptr< hiro::draw::SkeletonRenderer >
 Shared pointer to an object of the type SkeletonRenderer.
 
using SkinnedMeshStyle = hiro::draw::MeshStyle
 
using PSkinnedMeshStyle = std::shared_ptr< hiro::draw::SkinnedMeshStyle >
 
using PSkinnedMeshRenderer = std::shared_ptr< hiro::draw::SkinnedMeshRenderer >
 
using PScene = std::shared_ptr< hiro::draw::Scene >
 

Enumerations

enum  ColorSource : int32_t {
  ColorSource::material = 0, ColorSource::positions = 1, ColorSource::normals = 2, custom = 3,
  ColorSource::normals_n = 4, ColorSource::checkerboard = 5, ColorSource::albedo_texture = 6
}
 Available sources of color information. More...
 
enum  GeometryName {
  GeometryName::cube, GeometryName::sphere_s0, GeometryName::sphere_s1, GeometryName::sphere_s2,
  GeometryName::octahedron, GeometryName::camera, GeometryName::plane_x, GeometryName::plane_y,
  GeometryName::plane_z, GeometryName::_count
}
 List of available names for geometry objects generated by hiro::draw::PrimitiveDatabase. More...
 
enum  PrimitiveName { line, PrimitiveName::axes, PrimitiveName::square, PrimitiveName::_count }
 List of available names for primitives generated by hiro::draw::PrimitiveDatabase. More...
 
enum  AntiAliasing : uint8_t {
  none, msaa2x, msaa4x, msaa8x,
  msaa16x, fxaa
}
 
enum  GroundGrid { GroundGrid::none = 0, GroundGrid::xy = 1, GroundGrid::yz = 2, GroundGrid::zx = 3 }
 Mode for rendering ground grid lines. More...
 
enum  TextAlignment : uint8_t {
  top_left, top_center, top_right, center_left,
  center, center_right, bottom_left, bottom_center,
  bottom_right
}
 Defined alignment origin of the text.
 
enum  CameraMode {
  CameraMode::move_free = 0, CameraMode::orbit_free = 1, CameraMode::orbit_x = 2, CameraMode::orbit_x_inv = 3,
  CameraMode::orbit_y = 4, CameraMode::orbit_y_inv = 5, CameraMode::orbit_z = 6, CameraMode::orbit_z_inv = 7
}
 Defines camera manipulation behavior. More...
 

Functions

HIRO_DRAW_API std::string ToString (hiro::draw::GeometryName geom)
 Converts hiro::draw::GeometryName type to the text reprersentation.
 
HIRO_DRAW_API std::string ToString (hiro::draw::PrimitiveName prim)
 Converts hiro::draw::PrimitiveName type to text reprersentation.
 

Variables

const uint8_t DEFAULT_AXIS_OVERLAY_LAYER = 128
 
const uint8_t DEFAULT_GROUND_OVERLAY_LAYER = 0
 

Detailed Description

Extensions for object visualization. Implements a higher level of OpenGL rendering.

Enumeration Type Documentation

◆ CameraMode

Defines camera manipulation behavior.

Enumerator
move_free 

Cinematic mode. Camera can be moved freely.

orbit_free 

Camera orbits defined 3D point.

orbit_x 

ORBIT_FREE, with up vector fixed to positive X.

orbit_x_inv 

ORBIT_FREE, with up vector fixed to negative X.

orbit_y 

ORBIT_FREE, with up vector fixed to positive Y.

orbit_y_inv 

ORBIT_FREE, with up vector fixed to negative Y.

orbit_z 

ORBIT_FREE, with up vector fixed to positive Z.

orbit_z_inv 

ORBIT_FREE, with up vector fixed to negative Z.

◆ ColorSource

enum hiro::draw::ColorSource : int32_t
strong

Available sources of color information.

Enumerator
material 

Color is taken from the material.

positions 

Raw 3D positions are used to represent colors.

normals 

Raw 3D normals are used to represent colors.

normals_n 

Vertex color attribute used to get colors.

3D normals mapped to the visible color range.

checkerboard 

Checkerboard texture used to get colors.

albedo_texture 

Albedo texture used to get colors.

◆ GeometryName

List of available names for geometry objects generated by hiro::draw::PrimitiveDatabase.

Enumerator
cube 

Standard cube with unit side length.

sphere_s0 

Icosahedron with unit radius.

sphere_s1 

Icosahedron with unit radius subdivided.

sphere_s2 

Icosahedron with unit radius subdivided twice.

octahedron 

Anisotropic thin octahedron laying on x-axis <0,1>.

camera 

Camera mesh aligned with view space looking to negative z.

plane_x 

Unit sized plane perpendicular to x-axis.

plane_y 

Unit sized plane perpendicular to y-axis.

plane_z 

Unit sized plane perpendicular to z-axis.

_count 

Number of available names.

◆ GroundGrid

Mode for rendering ground grid lines.

Enumerator
none 

No ground grid is rendered.

xy 

Render ground grid aligned with xy plane, and z normal.

yz 

Render ground grid aligned with yz plane, and x normal.

zx 

Render ground grid aligned with zx plane, and y normal.

◆ PrimitiveName

List of available names for primitives generated by hiro::draw::PrimitiveDatabase.

Enumerator
axes 

Unit sized line laying on x-axis.

square 

Unit sized spacial basis.

_count 

Unit sized 2D square in interval <0,1> with texture coordinates.

Number of available names.