SubSlopeOvertureStructure
Summary
The structure for a subslope overture (dormer, velux... ).
Constructor
SubSlopeOvertureStructure
Syntax
SubSlopeOvertureStructure
()
Summary
Item Index
Methods
Properties
Methods
add
Syntax
add
-
propertyName
-
value
Summary
Adds an element to the collection in parameter.Returns:
deserialize
Syntax
Summary
Deserializes the object (from JSON).Parameters:
-
hybrid
ObjectJSON describing the object, built with the method serialize.
Returns:
The Structure object built from the deserialization
getAbsolutePosition
Syntax
Summary
Returns the absolute position of this subslope overture.
Returns:
A nested object whose fields are :
position
Absolute position (BABYLON.Vector2)vector
Always null.
getAvailableProperties
Syntax
Summary
Obtient les propriétés de l'objet.
Returns:
Un tableau contenant les différentes propriétés de l'objet.
getElementByName
Syntax
Summary
Gets an element of the collection by its name.Parameters:
Returns:
getFloor
Syntax
Summary
Gets the floor referencing this objectParameters:
-
collection
StringCollection to search within.
Returns:
The floor containing this structure, -1 if the object has not been added to any floor collection.
getMaterial
Syntax
getMaterial
-
[name]
Summary
Gets the current materials.
Parameters:
-
[name]
String optionalIf this parameter is provided, only the material of the mesh of this name will be returned.
Returns:
The material(s). A nested object is returned if no name
parameter has been specified.
getParent
Syntax
getParent
()
Summary
Returns the parent of this subslopeOverture.
initialize
Syntax
initialize
()
private
Summary
Method called after the loading of the componentisTargeted
Syntax
Summary
Tests if the given vector is inside the polygon of the subslope overture.
Returns:
True if the vector lies inside the polygon.
remove
Syntax
remove
()
Summary
Removes the subslope overture from the subslope.
serialize
Syntax
Summary
Serializes the object (to JSON)Returns:
setMaterial
Syntax
setMaterial
-
material
-
name
Summary
Sets the material on a specific mesh of the subslope overture.
Parameters:
-
material
BABYLON.MaterialThe new Material.
-
name
StringThe name of the mesh you want to change the material of.
setParent
Syntax
setParent
-
subslope
Summary
Sets the parent of the subslope overture.
Parameters:
-
subslope
SubSlopeStructureThe new parent subslope.
to3D
Syntax
to3D
()
private
Summary
????
update
Syntax
update
()
Summary
Generic update method, must be overridden.updateReferences
Syntax
updateReferences
-
structure
Summary
Generic method for rebuilding references after the deserialization. For example : restoring the link between a PointStructure and its parent WallStructureParameters:
-
structure
wnp.StructureFloor Structure to work with
Properties
nbCasement
Syntax
nbCasement
Number
Summary
The number of casements. Availables values are 0 , 1 , 2 , 3
Default: 1
polygon
Syntax
polygon
BABYLON.Vector2
Summary
The 2D polygon vertices of the subslopeOverture. The length of this array is always 4 at all times.
position
Syntax
position
BABYLON.Vector2
Summary
Position of the subslopeOverture.
type
Syntax
type
String
Summary
Type of the subslopeOverture. Availables values are "Velux" , "Dormer"