proland::CylinderViewController Class Reference
[util]

A TerrainViewController for cylindrical terrains. More...

#include <CylinderViewController.h>

Inheritance diagram for proland::CylinderViewController:
proland::TerrainViewController

List of all members.

Public Member Functions

 CylinderViewController (ptr< SceneNode > node, double R)
 Creates a new CylinderViewController.
virtual ~CylinderViewController ()
 Deletes this PlanetViewController.
virtual double getHeight ()
 Returns the height of the camera above the z=0 surface.
virtual void move (vec3d &oldp, vec3d &p)
 Moves the "look at" point so that "oldp" appears at the position of "p" on screen.
virtual void update ()
 Sets the localToParent transform of the SceneNode associated with this TerrainViewController.

Public Attributes

const double R
 The radius of the cylindrical terrain at sea level.

Detailed Description

A TerrainViewController for cylindrical terrains.

This subclass interprets the y0 field as a "longitude" inside the cylinder, and considers theta and phi as relative to the tangent plane at the (x0,y0) point.

Authors:
Eric Bruneton, Antoine Begault

Constructor & Destructor Documentation

proland::CylinderViewController::CylinderViewController ( ptr< SceneNode >  node,
double  R 
)

Creates a new CylinderViewController.

Parameters:
node a SceneNode representing a camera position and orientation in the scene.
R the cylindrical terrain radius at sea level.
virtual proland::CylinderViewController::~CylinderViewController (  )  [virtual]

Deletes this PlanetViewController.


Member Function Documentation

virtual double proland::CylinderViewController::getHeight (  )  [virtual]

Returns the height of the camera above the z=0 surface.

Reimplemented from proland::TerrainViewController.

virtual void proland::CylinderViewController::move ( vec3d &  oldp,
vec3d &  p 
) [virtual]

Moves the "look at" point so that "oldp" appears at the position of "p" on screen.

Parameters:
oldp a terrain point.
p another terrain point.

Reimplemented from proland::TerrainViewController.

virtual void proland::CylinderViewController::update (  )  [virtual]

Sets the localToParent transform of the SceneNode associated with this TerrainViewController.

The transform is computed from the view parameters x0,y0,theta,phi and d.

Reimplemented from proland::TerrainViewController.


Member Data Documentation

The radius of the cylindrical terrain at sea level.


Generated on Sat May 12 09:41:40 2012 for proland by  doxygen 1.6.1