Dali 3D User Interface Engine
Functions | Variables
Dali::Internal::anonymous_namespace{camera-actor-impl.cpp} Namespace Reference

Functions

DALI_PROPERTY_TABLE_BEGIN void CalculateClippingAndZ (float width, float height, float &nearClippingPlane, float &farClippingPlane, float &cameraZ)
 We want to discourage the use of property strings (minimize string comparisons), particularly for the default properties. More...
 
BaseHandle Create ()
 
void BuildOrthoPickingRay (const Matrix &viewMatrix, const Matrix &projectionMatrix, const Viewport &viewport, float screenX, float screenY, Vector4 &rayOrigin, Vector4 &rayDir, float nearPlaneDistance)
 Builds the picking ray in the world reference system from an orthographic camera The ray origin is the screen coordinate in the near plane translated to a parallel plane at the camera origin. More...
 

Variables

TypeRegistration mType (typeid(Dali::CameraActor), typeid(Dali::Actor), Create)
 

Function Documentation

void Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::BuildOrthoPickingRay ( const Matrix &  viewMatrix,
const Matrix &  projectionMatrix,
const Viewport &  viewport,
float  screenX,
float  screenY,
Vector4 &  rayOrigin,
Vector4 &  rayDir,
float  nearPlaneDistance 
)

Builds the picking ray in the world reference system from an orthographic camera The ray origin is the screen coordinate in the near plane translated to a parallel plane at the camera origin.

The ray direction is the direction the camera is facing (i.e. Z=-1 in view space).

Definition at line 90 of file camera-actor-impl.cpp.

References DALI_ASSERT_DEBUG, Dali::Rect< T >::height, Dali::Matrix::Invert(), Dali::Matrix::Multiply(), Dali::Vector4::Normalize(), Dali::Internal::Unproject(), Dali::Vector4::w, Dali::Rect< T >::width, Dali::Rect< T >::x, and Dali::Rect< T >::y.

Referenced by Dali::Internal::CameraActor::BuildPickingRay().

Here is the call graph for this function:

Here is the caller graph for this function:

DALI_PROPERTY_TABLE_BEGIN void Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::CalculateClippingAndZ ( float  width,
float  height,
float &  nearClippingPlane,
float &  farClippingPlane,
float &  cameraZ 
)

We want to discourage the use of property strings (minimize string comparisons), particularly for the default properties.

Name Type writable animatable constraint-input enum for index-checking

Definition at line 70 of file camera-actor-impl.cpp.

Referenced by Dali::Internal::CameraActor::SetOrthographicProjection(), and Dali::Internal::CameraActor::SetPerspectiveProjection().

Here is the caller graph for this function:

BaseHandle Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::Create ( )

Definition at line 77 of file camera-actor-impl.cpp.

References Dali::CameraActor::New().

Referenced by anonymous_namespace{utc-Dali-Application.cpp}::MyTestApp::MyTestApp().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

TypeRegistration Dali::Internal::anonymous_namespace{camera-actor-impl.cpp}::mType(typeid(Dali::CameraActor), typeid(Dali::Actor), Create)
Dali Docs Home
Read more about Dali