#include "math/matrix.h"
#include "renderable.h"
#include "cullable.h"
#include "render.h"
Go to the source code of this file.
Data Structures | |
class | RenderablePivot |
Defines | |
#define | INCLUDED_PIVOT_H |
Functions | |
void | billboard_viewplaneOriented (Matrix4 &rotation, const Matrix4 &world2screen) |
void | billboard_viewpointOriented (Matrix4 &rotation, const Matrix4 &world2screen) |
void | ConstructObject2Screen (Matrix4 &object2screen, const Matrix4 &object2world, const Matrix4 &world2view, const Matrix4 &view2device, const Matrix4 &device2screen) |
void | ConstructObject2Device (Matrix4 &object2screen, const Matrix4 &object2world, const Matrix4 &world2view, const Matrix4 &view2device) |
void | ConstructDevice2Object (Matrix4 &device2object, const Matrix4 &object2world, const Matrix4 &world2view, const Matrix4 &view2device) |
void | pivot_scale (Matrix4 &scale, const Matrix4 &pivot2screen) |
S = ( Inverse(Object2Screen *post ScaleOf(Object2Screen) ) *post Object2Screen. | |
void | pivot_perspective (Matrix4 &scale, const Matrix4 &pivot2screen) |
void | ConstructDevice2Manip (Matrix4 &device2manip, const Matrix4 &object2world, const Matrix4 &world2view, const Matrix4 &view2device, const Matrix4 &device2screen) |
void | Pivot2World_worldSpace (Matrix4 &manip2world, const Matrix4 &pivot2world, const Matrix4 &modelview, const Matrix4 &projection, const Matrix4 &viewport) |
void | Pivot2World_viewpointSpace (Matrix4 &manip2world, Vector3 &axis, const Matrix4 &pivot2world, const Matrix4 &modelview, const Matrix4 &projection, const Matrix4 &viewport) |
void | Pivot2World_viewplaneSpace (Matrix4 &manip2world, const Matrix4 &pivot2world, const Matrix4 &modelview, const Matrix4 &projection, const Matrix4 &viewport) |
const Colour4b | g_colour_x (255, 0, 0, 255) |
const Colour4b | g_colour_y (0, 255, 0, 255) |
const Colour4b | g_colour_z (0, 0, 255, 255) |
void billboard_viewplaneOriented | ( | Matrix4 & | rotation, | |
const Matrix4 & | world2screen | |||
) | [inline] |
Definition at line 27 of file pivot.h.
References BasicVector3< Element >::x(), and BasicVector3< Element >::z().
Referenced by Pivot2World_viewplaneSpace().
void billboard_viewpointOriented | ( | Matrix4 & | rotation, | |
const Matrix4 & | world2screen | |||
) | [inline] |
Definition at line 40 of file pivot.h.
Referenced by Pivot2World_viewpointSpace().
void ConstructDevice2Manip | ( | Matrix4 & | device2manip, | |
const Matrix4 & | object2world, | |||
const Matrix4 & | world2view, | |||
const Matrix4 & | view2device, | |||
const Matrix4 & | device2screen | |||
) | [inline] |
Definition at line 96 of file pivot.h.
References ConstructObject2Device(), ConstructObject2Screen(), pivot_perspective(), pivot_scale(), and scale.
void ConstructDevice2Object | ( | Matrix4 & | device2object, | |
const Matrix4 & | object2world, | |||
const Matrix4 & | world2view, | |||
const Matrix4 & | view2device | |||
) | [inline] |
Definition at line 68 of file pivot.h.
References ConstructObject2Device().
void ConstructObject2Device | ( | Matrix4 & | object2screen, | |
const Matrix4 & | object2world, | |||
const Matrix4 & | world2view, | |||
const Matrix4 & | view2device | |||
) | [inline] |
Definition at line 60 of file pivot.h.
Referenced by ConstructDevice2Manip(), and ConstructDevice2Object().
void ConstructObject2Screen | ( | Matrix4 & | object2screen, | |
const Matrix4 & | object2world, | |||
const Matrix4 & | world2view, | |||
const Matrix4 & | view2device, | |||
const Matrix4 & | device2screen | |||
) | [inline] |
Definition at line 51 of file pivot.h.
Referenced by ConstructDevice2Manip(), Pivot2World_viewplaneSpace(), Pivot2World_viewpointSpace(), and Pivot2World_worldSpace().
const Colour4b g_colour_x | ( | 255 | , | |
0 | , | |||
0 | , | |||
255 | ||||
) |
Referenced by RenderablePivot::RenderablePivot().
const Colour4b g_colour_y | ( | 0 | , | |
255 | , | |||
0 | , | |||
255 | ||||
) |
Referenced by RenderablePivot::RenderablePivot().
const Colour4b g_colour_z | ( | 0 | , | |
0 | , | |||
255 | , | |||
255 | ||||
) |
Referenced by RenderablePivot::RenderablePivot().
void Pivot2World_viewplaneSpace | ( | Matrix4 & | manip2world, | |
const Matrix4 & | pivot2world, | |||
const Matrix4 & | modelview, | |||
const Matrix4 & | projection, | |||
const Matrix4 & | viewport | |||
) | [inline] |
Definition at line 148 of file pivot.h.
References billboard_viewplaneOriented(), ConstructObject2Screen(), pivot_perspective(), pivot_scale(), and scale.
Referenced by Pivot2World::update().
void Pivot2World_viewpointSpace | ( | Matrix4 & | manip2world, | |
Vector3 & | axis, | |||
const Matrix4 & | pivot2world, | |||
const Matrix4 & | modelview, | |||
const Matrix4 & | projection, | |||
const Matrix4 & | viewport | |||
) | [inline] |
Definition at line 128 of file pivot.h.
References billboard_viewpointOriented(), ConstructObject2Screen(), pivot_perspective(), pivot_scale(), scale, and BasicVector3< Element >::z().
Referenced by Pivot2World::update().
void Pivot2World_worldSpace | ( | Matrix4 & | manip2world, | |
const Matrix4 & | pivot2world, | |||
const Matrix4 & | modelview, | |||
const Matrix4 & | projection, | |||
const Matrix4 & | viewport | |||
) | [inline] |
Definition at line 113 of file pivot.h.
References ConstructObject2Screen(), pivot_perspective(), pivot_scale(), and scale.
Referenced by RenderablePivot::render(), and Pivot2World::update().
void pivot_perspective | ( | Matrix4 & | scale, | |
const Matrix4 & | pivot2screen | |||
) | [inline] |
Definition at line 90 of file pivot.h.
Referenced by ConstructDevice2Manip(), Pivot2World_viewplaneSpace(), Pivot2World_viewpointSpace(), and Pivot2World_worldSpace().
void pivot_scale | ( | Matrix4 & | scale, | |
const Matrix4 & | pivot2screen | |||
) | [inline] |
S = ( Inverse(Object2Screen *post ScaleOf(Object2Screen) ) *post Object2Screen.
Definition at line 76 of file pivot.h.
Referenced by ConstructDevice2Manip(), Pivot2World_viewplaneSpace(), Pivot2World_viewpointSpace(), and Pivot2World_worldSpace().