Package geomss.geom

Class GenScreenNote

    • Method Detail

      • immutable

        public abstract Note immutable()
        Return an immutable version of this note.
        Returns:
        An immutable version of this note.
      • size

        public int size()
        Returns the number of child-elements that make up this geometry element. This implementation always returns 1 as a GenScreenNote is located at a single point in model space.
        Specified by:
        size in interface GeomElement<GenScreenNote>
        Returns:
        The number of child-elements that make up this geometry element.
      • getBoundsMin

        public Point getBoundsMin()
        Return the coordinate point representing the minimum bounding box corner (e.g.: min X, min Y, min Z).
        Specified by:
        getBoundsMin in interface GeomElement<GenScreenNote>
        Returns:
        The minimum bounding box coordinate for this geometry element.
      • getBoundsMax

        public Point getBoundsMax()
        Return the coordinate point representing the maximum bounding box corner (e.g.: max X, max Y, max Z).
        Specified by:
        getBoundsMax in interface GeomElement<GenScreenNote>
        Returns:
        The maximum bounding box coordinate for this geometry element.
      • getLimitPoint

        public Point getLimitPoint​(int dim,
                                   boolean max,
                                   double tol)
        Returns the most extreme point, either minimum or maximum, in the specified coordinate direction on this geometry element. This implementation always returns this note location coordinate.
        Specified by:
        getLimitPoint in interface GeomElement<GenScreenNote>
        Parameters:
        dim - An index indicating the dimension to find the min/max point for (0=X,1=Y, 2=Z, etc).
        max - Set to true to return the maximum value, false to return the minimum.
        tol - Fractional tolerance to refine the min/max point position to if necessary.
        Returns:
        The point found on this element that is the min or max in the specified coordinate direction.
        See Also:
        getBoundsMin(), getBoundsMax()
      • toText

        public javolution.text.Text toText()
        Returns the text representation of this geometry element that consists of the text string followed by the coordinate position. For example:
           {aNote = {"A text string.",{10 ft, -3 ft, 4.56 ft}}}
         
        If there is no name, then the output looks like this:
           {"A text string.",{10 ft, -3 ft, 4.56 ft}}
         
        Specified by:
        toText in interface GeomElement<GenScreenNote>
        Overrides:
        toText in class AbstractNote<GenScreenNote>
        Returns:
        the text representation of this geometry element.