Package com.irurueta.geometry.io
Class HeaderPLY
java.lang.Object
com.irurueta.geometry.io.HeaderPLY
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 Summary
FieldsModifier and TypeFieldDescriptionList containing all the string comments that the author might have stored in the file.private final List<ElementPLY>List containing all the elements forming the data of the file.List of strings containing addition object information.private PLYStorageModeIndicates storage mode of the file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of strings containing all the comments set by the author of this file.Returns the structure of all the elements forming the data of this file.Returns list of strings containing additional object information.Returns storage mode of this file.voidsetStorageMode(PLYStorageMode storageMode) Sets storage mode of this file.toString()Converts header data into string format ready to be saved on a PLY file.
-
Field Details
-
storageMode
Indicates storage mode of the file. This can be either binary big-endian, binary little-endian or ascii text. -
elements
List containing all the elements forming the data of the file. -
comments
List containing all the string comments that the author might have stored in the file. -
objInfos
List of strings containing addition object information.
-
-
Constructor Details
-
HeaderPLY
public HeaderPLY()Constructor
-
-
Method Details
-
getStorageMode
Returns storage mode of this file.- Returns:
- Storage mode of this file.
-
setStorageMode
Sets storage mode of this file.- Parameters:
storageMode- Storage mode to be set.
-
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
Returns a list of strings containing all the comments set by the author of this file.- Returns:
- Comments of this file.
-
getObjInfos
Returns list of strings containing additional object information.- Returns:
- Additional object information.
-
toString
Converts header data into string format ready to be saved on a PLY file.
-