Blender  V2.93
Public Member Functions | List of all members
Freestyle::NodeOrthographicCamera Class Reference

#include <NodeCamera.h>

Inherits Freestyle::NodeCamera.

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])
 
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 88 of file NodeCamera.h.

Constructor & Destructor Documentation

◆ NodeOrthographicCamera() [1/3]

Freestyle::NodeOrthographicCamera::NodeOrthographicCamera ( )

◆ NodeOrthographicCamera() [2/3]

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 88 of file NodeCamera.cpp.

References bottom(), left(), Freestyle::loadIdentity(), Freestyle::NodeCamera::projection_matrix_, right(), top(), zFar(), and zNear().

◆ NodeOrthographicCamera() [3/3]

Freestyle::NodeOrthographicCamera::NodeOrthographicCamera ( const NodeOrthographicCamera iBrother)
default

Member Function Documentation

◆ bottom()

double Freestyle::NodeOrthographicCamera::bottom ( ) const
inline

Definition at line 119 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().

◆ left()

double Freestyle::NodeOrthographicCamera::left ( ) const
inline

Definition at line 109 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().

◆ right()

double Freestyle::NodeOrthographicCamera::right ( ) const
inline

Definition at line 114 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().

◆ top()

double Freestyle::NodeOrthographicCamera::top ( ) const
inline

Definition at line 124 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().

◆ zFar()

double Freestyle::NodeOrthographicCamera::zFar ( ) const
inline

Definition at line 134 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().

◆ zNear()

double Freestyle::NodeOrthographicCamera::zNear ( ) const
inline

Definition at line 129 of file NodeCamera.h.

Referenced by NodeOrthographicCamera().


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