Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
Render.h File Reference

Helper functions related to rendering. More...

#include "maths/Vector2D.h"

Go to the source code of this file.

Classes

struct  SDashedLine
 

Namespaces

 SimRender
 

Functions

void SimRender::ConstructLineOnGround (const CSimContext &context, const std::vector< float > &xz, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line from given points, conforming to terrain. More...
 
void SimRender::ConstructCircleOnGround (const CSimContext &context, float x, float z, float radius, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line as a circle with given center and radius, conforming to terrain. More...
 
void SimRender::ConstructSquareOnGround (const CSimContext &context, float x, float z, float w, float h, float a, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line as rectangle with given center and dimensions, conforming to terrain. More...
 
void SimRender::ConstructBoxOutline (const CBoundingBoxOriented &box, SOverlayLine &overlayLine)
 Constructs a solid outline of an arbitrarily-aligned bounding box. More...
 
void SimRender::ConstructBoxOutline (const CBoundingBoxAligned &box, SOverlayLine &overlayLine)
 Constructs a solid outline of an axis-aligned bounding box. More...
 
void SimRender::ConstructGimbal (const CVector3D &center, float radius, SOverlayLine &out, size_t numSteps=16)
 Constructs a simple gimbal outline with the given radius and center. More...
 
void SimRender::ConstructAxesMarker (const CMatrix3D &coordSystem, SOverlayLine &outX, SOverlayLine &outY, SOverlayLine &outZ)
 Constructs 3D axis marker overlay lines for the given coordinate system. More...
 
void SimRender::SmoothPointsAverage (std::vector< CVector2D > &points, bool closed)
 Updates the given points so each point is averaged with its neighbours, resulting in a somewhat smoother curve, assuming the points are roughly equally spaced. More...
 
void SimRender::InterpolatePointsRNS (std::vector< CVector2D > &points, bool closed, float offset, int segmentSamples=4)
 Updates the given points to include intermediate points interpolating between the original control points, using a rounded nonuniform spline. More...
 
void SimRender::ConstructDashedLine (const std::vector< CVector2D > &linePoints, SDashedLine &dashedLineOut, const float dashLength, const float blankLength)
 Creates a dashed line from the given line, dash length, and blank space between. More...
 
void SimRender::AngularStepFromChordLen (const float maxChordLength, const float radius, float &out_stepAngle, unsigned &out_numSteps)
 Computes angular step parameters out_stepAngle and out_numSteps, given a maxChordLength on a circle of radius radius. More...
 
void SimRender::SubdividePoints (std::vector< CVector2D > &points, float maxSegmentLength, bool closed)
 Subdivides a list of points into segments of maximum length maxSegmentLength that are of equal size between every two control points. More...
 

Detailed Description

Helper functions related to rendering.

Definition in file Render.h.