7 #ifndef CAFU_RENDERER_2D_HPP_INCLUDED
8 #define CAFU_RENDERER_2D_HPP_INCLUDED
10 #include "Math3D/BoundingBox.hpp"
11 #include "Math3D/Matrix3x3.hpp"
12 #include "Templates/Array.hpp"
26 static const int LINE_THIN;
27 static const int LINE_THICK;
35 void SetFillColor(
const wxColour& Color);
36 void SetLineColor(
const wxColour& Color);
37 void SetLineType(wxPenStyle Style,
int Width,
const wxColour& Color);
39 void DrawPoint(
const wxPoint& Point,
int Radius);
40 void DrawPoint(
const Vector3fT& Point,
int Radius);
42 void DrawLine(
const wxPoint& A,
const wxPoint& B);
44 void DrawLine(
int x1,
int y1,
int x2,
int y2);
47 void DrawEllipse(
const wxPoint& Center,
int RadiusX,
int RadiusY,
bool Fill);
48 void Rectangle(
const wxRect& Rect,
bool Fill);
49 void DrawBitmap(
int x,
int y,
const wxBitmap& Bitmap);
53 void SetTextColor(
const wxColour& FgColor,
const wxColour& BkColor);
54 void DrawText(
const wxString& Text,
const wxPoint& Pos);
62 void XHandle(
const wxPoint& Pos,
int Radius=3);
This class implements the rendering into a 2D view.
Definition: Renderer2D.hpp:22
void BasisVectors(const Vector3fT &Pos, const cf::math::Matrix3x3fT &Mat, float Length=24.0f)
Renders the basis vectors (the "axes") of the given matrix at the given position with the given lengt...
Definition: Renderer2D.cpp:133
void XHandle(const wxPoint &Pos, int Radius=3)
Renders an X-shaped handle at the given position with the given radius.
Definition: Renderer2D.cpp:146
Renderer2DT(const ViewWindow2DT &ViewWin2D, wxDC &dc)
The Constructor.
Definition: Renderer2D.cpp:15
void DrawBoxDims(const BoundingBox3fT &BB, int Pos)
Renders the dimensions of the given bounding-box next to the box.
Definition: Renderer2D.cpp:173
Definition: ChildFrameViewWin2D.hpp:24
Definition: Renderer.hpp:16
This class represents a generic 3x3 matrix.
Definition: Angles.hpp:17
This class represents an axis-aligned bounding-box ("AABB") in 3-dimensional space.
Definition: BoundingBox.hpp:23
const ViewWindow2DT & GetViewWin2D() const
Returns the ViewWindow2DT that this renderer renders into.
Definition: Renderer2D.hpp:33