All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::ShapeRenderer Class Reference

#include <kanzi/graphics_3d/renderer3d.hpp>

Public Member Functions

 ShapeRenderer (Renderer3D &renderer)
 
void drawWireframeGrid (float spacing, const KzcColorRGBA *gridColor, const KzcColorRGBA *centerLinesColor)
 Draws a wireframe grid with the given colors. More...
 
void drawCoordinateSystemAxes (const KzcColorRGBA *axisXColor, const KzcColorRGBA *axisYColor, const KzcColorRGBA *axisZColor)
 Draws an axis shape in the origin with the given colors. More...
 
void drawBoxWireframe (const KzcVector3 *backBottomLeft, const KzcVector3 *frontTopRight, const KzcMatrix4x4 *transform)
 Draws a wireframe box given by two opposite corner points. More...
 
void drawBoxSolidNormal (const KzcVector3 *backBottomLeft, const KzcVector3 *frontTopRight, const KzcMatrix4x4 *worldTransform)
 Draws a solid box given by two opposite corner points. More...
 
void drawTransformedBoundingVolumeWireframe (const KzuTransformedBoundingVolume *volume)
 Draws a transformed wireframe bounding volume with the current rendering settings. More...
 
void drawTransformedBoundingVolumeSolidNormal (const KzuTransformedBoundingVolume *volume)
 Draws a transformed solid bounding volume with the current rendering settings. More...
 
void drawTrajectory (Trajectory *trajectory, const KzcMatrix4x4 *worldTransformation, const Matrix4x4 &arrangeTransform, const Vector3 &scaling)
 Draws a trajectory with wire frame lines. More...
 
void drawPointLight (const KzcMatrix4x4 *worldTransformation)
 Draws a point light symbol transformed by the given matrix. More...
 
void drawDirectionalLight (const KzcMatrix4x4 *worldTransformation)
 Draws a directional light symbol transformed by the given matrix. More...
 
void drawSpotLight (float angle, const KzcMatrix4x4 *worldTransformation)
 Draws a spot light symbol transformed by the given matrix. More...
 
void drawEmptyObject (const KzcMatrix4x4 *worldTransformation)
 Draws an empty object symbol with wire frame lines. More...
 
void drawCamera (const Camera *cameraNode, const KzcMatrix4x4 *worldTransformation)
 Draws a wire frame camera symbol. More...
 

Constructor & Destructor Documentation

kanzi::ShapeRenderer::ShapeRenderer ( Renderer3D renderer)
explicit

Member Function Documentation

void kanzi::ShapeRenderer::drawWireframeGrid ( float  spacing,
const KzcColorRGBA gridColor,
const KzcColorRGBA centerLinesColor 
)

Draws a wireframe grid with the given colors.

Uses the current rendering settings.

void kanzi::ShapeRenderer::drawCoordinateSystemAxes ( const KzcColorRGBA axisXColor,
const KzcColorRGBA axisYColor,
const KzcColorRGBA axisZColor 
)

Draws an axis shape in the origin with the given colors.

Uses the current rendering settings.

void kanzi::ShapeRenderer::drawBoxWireframe ( const KzcVector3 backBottomLeft,
const KzcVector3 frontTopRight,
const KzcMatrix4x4 transform 
)

Draws a wireframe box given by two opposite corner points.

The corner points are assumed axis-aligned and are transformed with the given transform before drawing. Uses the current rendering settings.

void kanzi::ShapeRenderer::drawBoxSolidNormal ( const KzcVector3 backBottomLeft,
const KzcVector3 frontTopRight,
const KzcMatrix4x4 worldTransform 
)

Draws a solid box given by two opposite corner points.

The corner points are assumed axis-aligned and are transformed with the given transform before drawing. Uses the current rendering settings.

void kanzi::ShapeRenderer::drawTransformedBoundingVolumeWireframe ( const KzuTransformedBoundingVolume volume)

Draws a transformed wireframe bounding volume with the current rendering settings.

Draws with only vertex positions.

void kanzi::ShapeRenderer::drawTransformedBoundingVolumeSolidNormal ( const KzuTransformedBoundingVolume volume)

Draws a transformed solid bounding volume with the current rendering settings.

Draws with vertex positions and normals.

void kanzi::ShapeRenderer::drawTrajectory ( Trajectory trajectory,
const KzcMatrix4x4 worldTransformation,
const Matrix4x4 arrangeTransform,
const Vector3 scaling 
)

Draws a trajectory with wire frame lines.

void kanzi::ShapeRenderer::drawPointLight ( const KzcMatrix4x4 worldTransformation)

Draws a point light symbol transformed by the given matrix.

void kanzi::ShapeRenderer::drawDirectionalLight ( const KzcMatrix4x4 worldTransformation)

Draws a directional light symbol transformed by the given matrix.

void kanzi::ShapeRenderer::drawSpotLight ( float  angle,
const KzcMatrix4x4 worldTransformation 
)

Draws a spot light symbol transformed by the given matrix.

void kanzi::ShapeRenderer::drawEmptyObject ( const KzcMatrix4x4 worldTransformation)

Draws an empty object symbol with wire frame lines.

void kanzi::ShapeRenderer::drawCamera ( const Camera cameraNode,
const KzcMatrix4x4 worldTransformation 
)

Draws a wire frame camera symbol.


The documentation for this class was generated from the following file: