Class SoHeightFieldDetail

    • Constructor Detail

      • SoHeightFieldDetail

        public SoHeightFieldDetail()
        Constructor.
    • Method Detail

      • getNumProperties

        public long getNumProperties()
        Returns the number of active properties.
      • getProperty

        public SoHeightFieldDetail.PropertyInfo getProperty​(long propertyNumber)
        Returns the specified property and its id.

        Parameters:
        propertyNumber - is the number of the property to query. Use the getNumProperties method to get the number of properties.

        property - is filled with a pointer to the queried property. NULL if propertyNumber is invalid.

        id - is filled with the id of the property. -1 if propertyNumber is invalid.
      • getValue

        public double getValue​(long propertyNumber)
        Returns the value of the picked cell in the specified property (SoHeightFieldProperty node).

        Parameters:
        propertyNumber - is the number of the property to query.

        Returns:
        value. Returns NaN if propertyNumber is not valid. Use the getNumProperties method to get the number of properties.

      • getIjkPos

        public SbVec3i32 getIjkPos()
        Returns the position in data space (cell coordinates) of the picked cell.
      • getColor

        public SbVec4i32 getColor()
        Returns the color of the picked cell.
      • copy

        public SoDetail copy()
        Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
        Overrides:
        copy in class SoDetail
      • getHeight

        public float getHeight()
        Get the height value of the nearest elevation point.