Class Index | File Index

Classes


Class ObserverCamera


Extends Camera.

Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ObserverCamera(x, y, z, yaw, pitch, fieldOfView)
Creates a camera at given location and angle.
Method Summary
Method Attributes Method Name and Description
 
Adds the property change listener in parameter to this camera.
 
Returns a clone of this camera.
 
Returns the depth of this observer camera according to human proportions with an eyes elevation at z.
 
Returns the height of this observer camera according to human proportions with an eyes elevation at z.
 
Returns the width of this observer camera according to human proportions with an eyes elevation at z.
 
intersectsRectangle(x0, y0, x1, y1)
Returns true if this camera intersects with the horizontal rectangle which opposite corners are at points (x0, y0) and (x1, y1).
 
Returns true if the camera size doesn't change according to its elevation.
 
move(dx, dy)
Moves this camera of (dx, dy) units.
 
Removes the property change listener in parameter from this camera.
 
setFixedSize(fixedSize)
Sets whether camera size should depends on its elevation and will notify listeners bound to size properties of the size change.
 
setX(x)
Sets the abscissa of this camera.
 
setY(y)
Sets the ordinate of this camera.
 
setYaw(yaw)
Sets the yaw angle in radians of this camera.
 
setZ(z)
Sets the elevation of this camera.
Methods borrowed from class Camera:
getFieldOfView, getLens, getName, getPitch, getTime, getX, getY, getYaw, getZ, setCamera, setFieldOfView, setLens, setName, setPitch, setTime
Methods borrowed from class HomeObject:
getProperty, getPropertyNames, setProperty
Class Detail
ObserverCamera(x, y, z, yaw, pitch, fieldOfView)
Creates a camera at given location and angle.
Author: Emmanuel Puybaret.
Parameters:
{number} x
{number} y
{number} z
{number} yaw
{number} pitch
{number} fieldOfView
Method Detail
addPropertyChangeListener(listener)
Adds the property change listener in parameter to this camera.
Parameters:
{PropertyChangeListener} listener

{ObserverCamera} clone()
Returns a clone of this camera.
Returns:
{ObserverCamera}

{number} getDepth()
Returns the depth of this observer camera according to human proportions with an eyes elevation at z.
Returns:
{number}

{number} getHeight()
Returns the height of this observer camera according to human proportions with an eyes elevation at z.
Returns:
{number}

{number} getWidth()
Returns the width of this observer camera according to human proportions with an eyes elevation at z.
Returns:
{number}

{boolean} intersectsRectangle(x0, y0, x1, y1)
Returns true if this camera intersects with the horizontal rectangle which opposite corners are at points (x0, y0) and (x1, y1).
Parameters:
{number} x0
{number} y0
{number} x1
{number} y1
Returns:
{boolean}

{boolean} isFixedSize()
Returns true if the camera size doesn't change according to its elevation.
Returns:
{boolean}

move(dx, dy)
Moves this camera of (dx, dy) units.
Parameters:
{number} dx
{number} dy

removePropertyChangeListener(listener)
Removes the property change listener in parameter from this camera.
Parameters:
{PropertyChangeListener} listener

setFixedSize(fixedSize)
Sets whether camera size should depends on its elevation and will notify listeners bound to size properties of the size change.
Parameters:
{boolean} fixedSize

setX(x)
Sets the abscissa of this camera.
Parameters:
{number} x

setY(y)
Sets the ordinate of this camera.
Parameters:
{number} y

setYaw(yaw)
Sets the yaw angle in radians of this camera.
Parameters:
{number} yaw

setZ(z)
Sets the elevation of this camera.
Parameters:
{number} z

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:09 GMT+0200 (CEST)