Blender  V3.3
Public Member Functions | List of all members
Freestyle::NodePerspectiveCamera Class Reference

#include <NodeCamera.h>

Inheritance diagram for Freestyle::NodePerspectiveCamera:
Freestyle::NodeCamera Freestyle::Node Freestyle::BaseObject

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 (double modelview_matrix[16])
 
void setProjectionMatrix (double projection_matrix[16])
 
doublemodelViewMatrix ()
 
doubleprojectionMatrix ()
 
- 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_
 

Detailed Description

Definition at line 140 of file NodeCamera.h.

Constructor & Destructor Documentation

◆ NodePerspectiveCamera() [1/3]

Freestyle::NodePerspectiveCamera::NodePerspectiveCamera ( )

Definition at line 94 of file NodeCamera.cpp.

◆ NodePerspectiveCamera() [2/3]

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 )

Parameters
fovyField 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.

◆ NodePerspectiveCamera() [3/3]

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.


The documentation for this class was generated from the following files: