Blender
V3.3
|
#include <NodeCamera.h>
Public Member Functions | |
NodePerspectiveCamera () | |
NodePerspectiveCamera (double fovy, double aspect, double zNear, double zFar) | |
NodePerspectiveCamera (double left, double right, double bottom, double top, double zNear, double zFar) | |
![]() | |
NodeCamera (CameraType camera_type=GENERIC) | |
virtual | ~NodeCamera () |
virtual void | accept (SceneVisitor &v) |
void | setModelViewMatrix (double modelview_matrix[16]) |
void | setProjectionMatrix (double projection_matrix[16]) |
double * | modelViewMatrix () |
double * | projectionMatrix () |
![]() | |
Node () | |
Node (const Node &iBrother) | |
virtual | ~Node () |
virtual const BBox< Vec3r > & | bbox () const |
virtual void | setBBox (const BBox< Vec3r > &iBox) |
virtual void | AddBBox (const BBox< Vec3r > &iBox) |
virtual const BBox< Vec3r > & | UpdateBBox () |
virtual void | clearBBox () |
![]() | |
BaseObject () | |
virtual | ~BaseObject () |
virtual int | destroy () |
int | addRef () |
int | release () |
Additional Inherited Members | |
![]() | |
enum | CameraType { PERSPECTIVE , ORTHOGRAPHIC , GENERIC } |
![]() | |
double | modelview_matrix_ [16] |
double | projection_matrix_ [16] |
CameraType | camera_type_ |
Definition at line 140 of file NodeCamera.h.
Freestyle::NodePerspectiveCamera::NodePerspectiveCamera | ( | ) |
Definition at line 94 of file NodeCamera.cpp.
Freestyle::NodePerspectiveCamera::NodePerspectiveCamera | ( | double | fovy, |
double | aspect, | ||
double | zNear, | ||
double | zFar | ||
) |
Builds a perspective projection matrix a la gluPerspective. Given f defined as follows: fovy f = cotangent(____) 2 The generated matrix is ( f ) | ______ 0 0 0 |
aspect |
---|
0 f 0 0 |
zNear+zFar 2*zNear*zFar |
0 0 __________ ____________ |
zNear-zFar zNear-zFar |
( 0 0 -1 0 )
fovy | Field of View specified in radians. |
Definition at line 98 of file NodeCamera.cpp.
References KDL::cos(), Freestyle::loadIdentity(), Freestyle::NodeCamera::projection_matrix_, KDL::sin(), and zNear.
Freestyle::NodePerspectiveCamera::NodePerspectiveCamera | ( | double | left, |
double | right, | ||
double | bottom, | ||
double | top, | ||
double | zNear, | ||
double | zFar | ||
) |
Builds a perspective projection matrix a la glFrustum. ( 2*zNear ) | __________ 0 A 0 |
right-left |
---|
2*zNear |
0 __________ B 0 |
top-bottom |
0 0 C D |
0 0 -1 0 |
( )
right+left
A = __________ right-left
top+bottom B = __________ top-bottom
zFar+zNear C = - __________ zFar-zNear
2*zFar*zNear D = - ____________ zFar-zNear
Definition at line 113 of file NodeCamera.cpp.
References bottom, left, Freestyle::loadIdentity(), Freestyle::NodeCamera::projection_matrix_, right, top, and zNear.