|
Blender
V3.3
|
#include <NodeCamera.h>
Public Member Functions | |
| NodeOrthographicCamera () | |
| NodeOrthographicCamera (double left, double right, double bottom, double top, double zNear, double zFar) | |
| double | left () const |
| double | right () const |
| double | bottom () const |
| double | top () const |
| double | zNear () const |
| double | zFar () const |
| NodeOrthographicCamera (const NodeOrthographicCamera &iBrother)=default | |
Public Member Functions inherited from Freestyle::NodeCamera | |
| 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 () |
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 74 of file NodeCamera.h.
| Freestyle::NodeOrthographicCamera::NodeOrthographicCamera | ( | ) |
Definition at line 61 of file NodeCamera.cpp.
References Freestyle::loadIdentity(), Freestyle::NodeCamera::modelview_matrix_, and Freestyle::NodeCamera::projection_matrix_.
| Freestyle::NodeOrthographicCamera::NodeOrthographicCamera | ( | double | left, |
| double | right, | ||
| double | bottom, | ||
| double | top, | ||
| double | zNear, | ||
| double | zFar | ||
| ) |
Builds a parallel projection matrix a la glOrtho. A 0 0 tx 0 B 0 ty 0 0 C tz 0 0 0 1
where A = 2 / (right - left) B = 2 / (top - bottom) C = -2 / (far - near) tx = -(right + left) / (right - left) ty = -(top + bottom) / (top - bottom) tz = -(zFar + zNear) / (zFar - zNear)
Definition at line 74 of file NodeCamera.cpp.
References bottom(), left(), Freestyle::loadIdentity(), Freestyle::NodeCamera::projection_matrix_, right(), top(), zFar(), and zNear().
|
default |
|
inline |
Definition at line 105 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().
|
inline |
Definition at line 95 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().
|
inline |
Definition at line 100 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().
|
inline |
Definition at line 110 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().
|
inline |
Definition at line 120 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().
|
inline |
Definition at line 115 of file NodeCamera.h.
Referenced by NodeOrthographicCamera().