Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | List of all members
om::graphics::cameras::ProjectionType Class Reference

A class that enumerates the different types of 3D->2D viewing projections. More...

#include <omGraphicsProjectionType.h>

Public Types

enum  Enum { UNDEFINED = 0, ORTHOGRAPHIC = 1, PERSPECTIVE = 2, OBLIQUE = 3 }
 An enum type which represents the different projection types. More...
 

Public Member Functions

 ProjectionType (Enum newType)
 Create a new projection type with the specified projection type enum value. More...
 
 operator Enum () const
 Convert this projection type to an enum value. More...
 
String toString () const
 Return a string representation of the projection type. More...
 
 operator String () const
 Convert this projection type into a string representation. More...
 

Detailed Description

A class that enumerates the different types of 3D->2D viewing projections.

Member Enumeration Documentation

An enum type which represents the different projection types.

Enumerator
UNDEFINED 

An undefined or unknown projection type.

ORTHOGRAPHIC 

A projection where objects are the same size, no matter their distance.

PERSPECTIVE 

A projection where closer objects appear larger than farther away ones.

OBLIQUE 

An orthographic projection with shearing applied.

Constructor & Destructor Documentation

om::graphics::cameras::ProjectionType::ProjectionType ( Enum  newType)
inline

Create a new projection type with the specified projection type enum value.

Member Function Documentation

om::graphics::cameras::ProjectionType::operator Enum ( ) const
inline

Convert this projection type to an enum value.

String om::graphics::cameras::ProjectionType::toString ( ) const

Return a string representation of the projection type.

om::graphics::cameras::ProjectionType::operator String ( ) const
inline

Convert this projection type into a string representation.


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