Class TiledCeiling
A tiled ceiling.
Implements
Inherited Members
Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public class TiledCeiling : BaseCeiling, INotifyPropertyChanged
Constructors
TiledCeiling(Polygon, Double, Double, Double, Transform, Material, Transform, Representation, Boolean, Guid, String)
Construct a ceiling from tiles.
Declaration
public TiledCeiling(Polygon perimeter, double tileWidth, double tileLength, double spaceBetween, Transform gridOrientation = null, Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The plan perimeter of the ceiling. It must lie on the XY plane. Z coordinate will be used as elevation |
System.Double | tileWidth | The tile width. |
System.Double | tileLength | The tile length. |
System.Double | spaceBetween | The space between tiles. |
Transform | gridOrientation | The grid orientation. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the ceiling. |
System.String | name | The name of the ceiling. |
TiledCeiling(Polygon, Double, Double, Double, Double, Transform, Material, Transform, Representation, Boolean, Guid, String)
Construct a ceiling from tiles.
Declaration
public TiledCeiling(Polygon perimeter, double elevation, double tileWidth, double tileLength, double spaceBetween, Transform gridOrientation = null, Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The plan profile of the ceiling. It must lie on the XY plane. The Z coordinate will be ignored |
System.Double | elevation | The elevation of the ceiling. |
System.Double | tileWidth | The tile width. |
System.Double | tileLength | The tile length. |
System.Double | spaceBetween | The space between tiles. |
Transform | gridOrientation | The grid orientation. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.Guid | id | The id of the ceiling. |
System.String | name | The name of the ceiling. |
TiledCeiling(Polygon, Double, Double, Double, Double, Transform, Guid, Material, Transform, Representation, Boolean, String)
Construct a ceiling from tiles. It's a private constructor that doesn't add elevation to transform
Declaration
[JsonConstructor]
protected TiledCeiling(Polygon perimeter, double elevation, double tileWidth, double tileLength, double spaceBetween, Transform gridOrientation = null, Guid id = default(Guid), Material material = null, Transform transform = null, Representation representation = null, bool isElementDefinition = false, string name = null)
Parameters
Type | Name | Description |
---|---|---|
Polygon | perimeter | The plan profile of the ceiling. It must lie on the XY plane. The Z coordinate will be ignored |
System.Double | elevation | The elevation of the ceiling. |
System.Double | tileWidth | |
System.Double | tileLength | |
System.Double | spaceBetween | |
Transform | gridOrientation | |
System.Guid | id | The id of the ceiling. |
Material | material | The material of the ceiling. |
Transform | transform | An optional transform for the ceiling. |
Representation | representation | The ceiling's representation. |
System.Boolean | isElementDefinition | Is this an element definition? |
System.String | name | The name of the ceiling. |
Properties
GridOrientation
The grid orientation.
Declaration
public Transform GridOrientation { get; protected set; }
Property Value
Type | Description |
---|---|
Transform |
SpaceBetween
The space between tiles.
Declaration
public double SpaceBetween { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
TileLength
The tile length.
Declaration
public double TileLength { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
TileWidth
The tile width.
Declaration
public double TileWidth { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
GetCountOfUCells()
Get count of U cells.
Declaration
public int GetCountOfUCells()
Returns
Type | Description |
---|---|
System.Int32 | Count of U cells. |
GetCountOfVCells()
Get count of V cells.
Declaration
public int GetCountOfVCells()
Returns
Type | Description |
---|---|
System.Int32 | Count of v cells. |
GetGrid()
Get an underlying grid.
Declaration
public Grid2d GetGrid()
Returns
Type | Description |
---|---|
Grid2d | An underlying grid. |
GetTileCells()
Get the tile cells as Grid2d.
Declaration
public List<Grid2d> GetTileCells()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Grid2d> | List of tiles grids. |
GetTiles()
Get tiles.
Declaration
public List<Polygon> GetTiles()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Polygon> | List of tiles. |
UpdateRepresentations()
Update the representations.
Declaration
public override void UpdateRepresentations()