A TerrainViewController for cylindrical terrains. More...
#include <CylinderViewController.h>
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. |
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.
proland::CylinderViewController::CylinderViewController | ( | ptr< SceneNode > | node, | |
double | R | |||
) |
Creates a new CylinderViewController.
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.
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.
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.
const double proland::CylinderViewController::R |
The radius of the cylindrical terrain at sea level.