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 unreachable.instance: __new__

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

    Inherited from Node
 
__eq__(...)
 
__hash__(...)
hash(x)
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
__ne__(...)
 
getAbsPos(relpos)
Transforms a position in coordinates relative to the node to a position in window coordinates.
 
getMediaSize()
Returns the size in pixels of the media in the node.
 
getParent()
Returns the container (AVGNode or DivNode) the node is in.
 
getRelPos(abspos)
Transforms a position in window coordinates to a position in coordinates relative to the node.
 
releaseEventCapture(cursorid)
Restores normal mouse operation after a call to setEventCapture().
 
setEventCapture(cursorid)
Sets up event capturing so that cursor events are sent to this node regardless of the cursor position.
 
setEventHandler(type, source, pyfunc)
Sets a callback function that is invoked whenever an event of the specified type from the specified source occurs.
 
unlink()
Removes a node from it's parent container.
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 object: __class__

    Inherited from Node
  active
If this attribute is true, the node behaves as usual.
  angle
The angle that the node is rotated to in radians.
  height
  id
A unique identifier that can be used to reference the node.
  opacity
A measure of the node's transparency.
  pivotx
x coordinate of the point that the node is rotated around.
  pivoty
y coordinate of the point that the node is rotated around.
  pos
The position of the node's top left corner relative to it's parent node.
  sensitive
A node only reacts to events if sensitive is true.
  size
  width
  x
The position of the node's left edge relative to it's parent node.
  y
The position of the node's top edge relative to it's parent node.
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.<unnamed Boost.Python function>(...)
Set Method:
unreachable.<unnamed Boost.Python function>(...)

href

The source filename of the image.
Get Method:
unreachable.<unnamed Boost.Python function>(...)
Set Method:
unreachable.<unnamed Boost.Python function>(...)

hue

A hue to color the image in. (ro, deprecated)
Get Method:
unreachable.<unnamed Boost.Python function>(...)

maxrotation

The maximum angle the viewer can look at.
Get Method:
unreachable.<unnamed Boost.Python function>(...)

rotation

The current angle the viewer is looking at in radians.
Get Method:
unreachable.<unnamed Boost.Python function>(...)
Set Method:
unreachable.<unnamed Boost.Python function>(...)

saturation

The saturation the image should have. (ro, deprecated)
Get Method:
unreachable.<unnamed Boost.Python function>(...)

sensorheight

The height of the sensor used to make the image.
Get Method:
unreachable.<unnamed Boost.Python function>(...)
Set Method:
unreachable.<unnamed Boost.Python function>(...)

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.<unnamed Boost.Python function>(...)
Set Method:
unreachable.<unnamed Boost.Python function>(...)