|
Blender V4.3
|
#include <NodeCamera.h>
Inherits Freestyle::NodeCamera.
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) | |
Public Member Functions inherited from Freestyle::NodeCamera | |
| NodeCamera (CameraType camera_type=GENERIC) | |
| virtual | ~NodeCamera () |
| virtual void | accept (SceneVisitor &v) |
| void | setModelViewMatrix (const double modelview_matrix[16]) |
| void | setProjectionMatrix (const double projection_matrix[16]) |
| double * | modelViewMatrix () |
| double * | projectionMatrix () |
Public Member Functions inherited from Freestyle::Node | |
| 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 () |
Public Member Functions inherited from Freestyle::BaseObject | |
| BaseObject () | |
| virtual | ~BaseObject () |
| virtual int | destroy () |
| int | addRef () |
| int | release () |
Additional Inherited Members | |
Public Types inherited from Freestyle::NodeCamera | |
| enum | CameraType { PERSPECTIVE , ORTHOGRAPHIC , GENERIC } |
Protected Attributes inherited from Freestyle::NodeCamera | |
| 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 96 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 cos(), Freestyle::loadIdentity(), and Freestyle::NodeCamera::projection_matrix_.
| 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 left, Freestyle::loadIdentity(), and Freestyle::NodeCamera::projection_matrix_.