Class HeaderPLY

java.lang.Object
com.irurueta.geometry.io.HeaderPLY

public class HeaderPLY extends Object
This class contains elements of the header of a PLY file. The header of a ply file is stored in text form at the beginning of the file.
  • Field Details

    • storageMode

      private PLYStorageMode storageMode
      Indicates storage mode of the file. This can be either binary big-endian, binary little-endian or ascii text.
    • elements

      private final List<ElementPLY> elements
      List containing all the elements forming the data of the file.
    • comments

      private final List<String> comments
      List containing all the string comments that the author might have stored in the file.
    • objInfos

      private final List<String> objInfos
      List of strings containing addition object information.
  • Constructor Details

    • HeaderPLY

      public HeaderPLY()
      Constructor
  • Method Details

    • getStorageMode

      public PLYStorageMode getStorageMode()
      Returns storage mode of this file.
      Returns:
      Storage mode of this file.
    • setStorageMode

      public void setStorageMode(PLYStorageMode storageMode)
      Sets storage mode of this file.
      Parameters:
      storageMode - Storage mode to be set.
    • getElements

      public List<ElementPLY> getElements()
      Returns the structure of all the elements forming the data of this file.
      Returns:
      All the elements forming the data of this file.
    • getComments

      public List<String> getComments()
      Returns a list of strings containing all the comments set by the author of this file.
      Returns:
      Comments of this file.
    • getObjInfos

      public List<String> getObjInfos()
      Returns list of strings containing additional object information.
      Returns:
      Additional object information.
    • toString

      public String toString()
      Converts header data into string format ready to be saved on a PLY file.
      Overrides:
      toString in class Object
      Returns:
      Header data into string format.