Class Index | File Index

Classes


Class HomeTexture


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
HomeTexture(texture, angle, scale, leftToRightOriented)
Creates a home texture from an existing one with customized angle and offset.
Method Summary
Method Attributes Method Name and Description
 
equals(obj)
Returns true if the object in parameter is equal to this texture.
 
Returns the angle of rotation in radians applied to this texture.
 
Returns the catalog ID of this texture or null if it doesn't exist.
 
Returns the creator of this texture.
 
Returns the height of the image in centimeters.
 
Returns the content of the image used for this texture.
 
Returns the name of this texture.
 
Returns the scale applied to this texture.
 
Returns the width of the image in centimeters.
 
Returns true if the objects using this texture should take into account the orientation of the texture.
Class Detail
HomeTexture(texture, angle, scale, leftToRightOriented)
Creates a home texture from an existing one with customized angle and offset.
Author: Emmanuel Puybaret.
Parameters:
{Object} texture
the texture from which data are copied
{number} angle
the rotation angle applied to the texture
{number} scale
the scale applied to the texture
{boolean} leftToRightOriented
orientation used on the texture when applied on objects seen from front
Method Detail
{boolean} equals(obj)
Returns true if the object in parameter is equal to this texture.
Parameters:
{Object} obj
Returns:
{boolean}

{number} getAngle()
Returns the angle of rotation in radians applied to this texture.
Returns:
{number}

{string} getCatalogId()
Returns the catalog ID of this texture or null if it doesn't exist.
Returns:
{string}

{string} getCreator()
Returns the creator of this texture.
Returns:
{string}

{number} getHeight()
Returns the height of the image in centimeters.
Returns:
{number}

{Object} getImage()
Returns the content of the image used for this texture.
Returns:
{Object}

{string} getName()
Returns the name of this texture.
Returns:
{string}

{number} getScale()
Returns the scale applied to this texture.
Returns:
{number}

{number} getWidth()
Returns the width of the image in centimeters.
Returns:
{number}

{boolean} isLeftToRightOriented()
Returns true if the objects using this texture should take into account the orientation of the texture.
Returns:
{boolean}

© 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)