Class Wall

    • Field Detail

      • originId

        public final int originId
        Id or index of the source building or topographic triangle.
      • primaryKey

        public long primaryKey
      • height

        public double height
        Wall height, if -1, use z coordinate.
      • p0

        public org.locationtech.jts.geom.Coordinate p0
      • p1

        public org.locationtech.jts.geom.Coordinate p1
      • ls

        public org.locationtech.jts.geom.LineSegment ls
      • processedWallIndex

        public int processedWallIndex
    • Constructor Detail

      • Wall

        public Wall​(org.locationtech.jts.geom.LineSegment line,
                    int originId,
                    ProfileBuilder.IntersectionType type)
        Constructor using segment and id.
        Parameters:
        line - Segment of the wall.
        originId - Id or index of the source building or topographic triangle.
      • Wall

        public Wall​(org.locationtech.jts.geom.Coordinate p0,
                    org.locationtech.jts.geom.Coordinate p1,
                    int originId,
                    ProfileBuilder.IntersectionType type)
        Constructor using start/end point and id.
        Parameters:
        p0 - Start point of the segment.
        p1 - End point of the segment.
        originId - Id or index of the source building or topographic triangle.
    • Method Detail

      • setPrimaryKey

        public Wall setPrimaryKey​(long primaryKey)
        Database primary key of this wall or the building
        Parameters:
        primaryKey - primary key value
        Returns:
        this
      • getProcessedWallIndex

        public int getProcessedWallIndex()
        Returns:
        Index of this wall in the ProfileBuild list
      • setProcessedWallIndex

        public Wall setProcessedWallIndex​(int processedWallIndex)
        Parameters:
        processedWallIndex - Index of this wall in the ProfileBuild list
      • setHeight

        public void setHeight​(double height)
        Sets the wall height.
        Parameters:
        height - Wall height.
      • getLineSegment

        public org.locationtech.jts.geom.LineSegment getLineSegment()
      • getOriginId

        public int getOriginId()
        Retrieve the id or index of the source building or topographic triangle.
        Returns:
        Id or index of the source building or topographic triangle.
      • getHeight

        public double getHeight()
        Retrieve the height of the wall.
        Returns:
        Height of the wall.