Package libavg :: Module avg :: Class PanoImage

Class PanoImage




A panorama image displayed in cylindrical projection.

Instance Methods
 
getScreenPosFromAngle(angle)
Converts panorama angle to pixels in coordinates relative to the node, taking into account the current rotation angle.
 
getScreenPosFromPanoPos(panoPos)
Converts a position in panorama image pixels to pixels in coordinates relative to the node, taking into account the current rotation angle.

Inherited from Node: __init__, getParent, getRelPos, releaseEventCapture, setEventCapture, setEventHandler

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  focallength
The focal length of the lens in millimeters.
  href
The source filename of the image.
  hue
A hue to color the image in.
  maxrotation
The maximum angle the viewer can look at.
  rotation
The current angle the viewer is looking at in radians.
  saturation
The saturation the image should have.
  sensorheight
The height of the sensor used to make the image.
  sensorwidth
The width of the sensor used to make the image.

Inherited from Node: active, height, id, opacity, sensitive, width, x, y

Inherited from object: __class__

Method Details

getScreenPosFromAngle(angle)

 
Converts panorama angle to pixels in coordinates relative to the node, taking into account the current rotation angle.
Returns:
pos

getScreenPosFromPanoPos(panoPos)

 
Converts a position in panorama image pixels to pixels in coordinates relative to the node, taking into account the current rotation angle.
Returns:
pos


Property Details

focallength

The focal length of the lens in millimeters.
Get Method:
unreachable(...)
Set Method:
unreachable(...)

href

The source filename of the image.
Get Method:
unreachable(...)
Set Method:
unreachable(...)

hue

A hue to color the image in. (ro, deprecated)
Get Method:
unreachable(...)

maxrotation

The maximum angle the viewer can look at.
Get Method:
unreachable(...)

rotation

The current angle the viewer is looking at in radians.
Get Method:
unreachable(...)
Set Method:
unreachable(...)

saturation

The saturation the image should have. (ro, deprecated)
Get Method:
unreachable(...)

sensorheight

The height of the sensor used to make the image.
Get Method:
unreachable(...)
Set Method:
unreachable(...)

sensorwidth

The width of the sensor used to make the image. This value is used together with sensorheight and focallength to determine the projection to use.
Get Method:
unreachable(...)
Set Method:
unreachable(...)