Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
rve_render_client::ProjectionMatrixFactory Class Reference

#include <projection_matrix_factory.h>

Inheritance diagram for rve_render_client::ProjectionMatrixFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual float getAspectRatio ()
 ProjectionMatrixFactory ()
virtual void setAspectRatio (float width_over_height)
virtual ~ProjectionMatrixFactory ()

Protected Member Functions

virtual rve_msgs::Matrix4 makeMatrix ()=0
void updateCamera ()

Protected Attributes

float aspect_ratio_

Private Member Functions

void setCamera (Camera *camera)

Private Attributes

Cameracamera_

Friends

class Camera

Detailed Description

Abstract base class of factories which make camera projection matrices.

Projection matrices are assumed to be constructed after the fashion described here: http://www.songho.ca/opengl/gl_projectionmatrix.html in which the -Z axis points away from the camera along the view axis, +X points to the right, and +Y points up. This is typical for computer graphics, but is different from the assumptions made by Camera::setOrientation().

Definition at line 47 of file projection_matrix_factory.h.


Constructor & Destructor Documentation

Definition at line 36 of file projection_matrix_factory.cpp.

Definition at line 41 of file projection_matrix_factory.cpp.


Member Function Documentation

Definition at line 56 of file projection_matrix_factory.h.

Subclasses should override this to construct and return your custom projection matrix.

Implemented in rve_render_client::OrthographicProjectionFactory, rve_render_client::PerspectiveProjectionFactory, and rve_render_client::CameraInfoProjectionFactory.

void rve_render_client::ProjectionMatrixFactory::setAspectRatio ( float  width_over_height) [virtual]

The attached camera calls setAspectRatio() from its setAspectRatio().

Definition at line 58 of file projection_matrix_factory.cpp.

Connect a camera to this factory. This is called by Camera.

Definition at line 52 of file projection_matrix_factory.cpp.

Subclasses should call this function after a change is made which would affect the output of makeMatrix().

Definition at line 44 of file projection_matrix_factory.cpp.


Friends And Related Function Documentation

friend class Camera [friend]

Definition at line 71 of file projection_matrix_factory.h.


Member Data Documentation

Width over height.

Definition at line 68 of file projection_matrix_factory.h.

Definition at line 75 of file projection_matrix_factory.h.


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


rve_render_client
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:31:32