Package com.irurueta.geometry.io
Class PropertyPLY
java.lang.Object
com.irurueta.geometry.io.PropertyPLY
Property contained within a header element.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final DataTypePLYData type of the value indicating length of the array for list properties.(package private) final StringName of the property.(package private) PLYReadValueFromBufferListenerListener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.(package private) PLYReadValueFromStreamListenerListener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type.(package private) PLYReadValueFromBufferListenerListener to read the value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.(package private) PLYReadValueFromStreamListenerListener to read the appropriate amount of bytes from a PLY file corresponding to this property data type.(package private) final PropertyTypePLYProperty type (either scalar or list).(package private) final DataTypePLYData type for the values contained within this property. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyPLY(String name, DataTypePLY valueType) Constructor.PropertyPLY(String name, DataTypePLY lengthType, DataTypePLY valueType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns data type of the value indicating length of the array if this is a list property.getName()Returns name of this property.Property type (either scalar or list).Returns listener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.Returns listener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type.Returns listener to read the value of this property contained within the byte read buffer and transforms it into the appropriate data type for this property.Returns listener to read the appropriate amount of bytes from a PLY file corresponding to this property data type.Returns data type for the value contained within this property.booleanDetermines whether length property type has been provided and is available for retrieval.booleanDetermines if name has already been provided and is ready for retrieval.booleanDetermines if listener to read the length value of this property has been provided and is available for retrieval or not.booleanDetermines if listener to read the appropriate amount of bytes from a PLY file has been provided and is available for retrieval or not.booleanDetermines if listener to read the value of this property has been provided and is available for retrieval or not.booleanDetermines if listener to read the appropriate amount of bytes from a PLY file has been provided and is available for retrieval or not.booleanDetermines if this property is valid with the values that have already been provided.booleanDetermines if data type for the value contained within this property has already been provided and is available for retrieval.voidSets listener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.voidSets listener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type.voidSets listener to read the value of this property contained within the byte read buffer and transforms it into the appropriate data type for this property.voidSets listener to read the appropriate amount of bytes from a PLY file corresponding to this property data type.toString()Converts this property to string representation ready to be written in the header of a PLY file.
-
Field Details
-
name
Name of the property. -
type
Property type (either scalar or list). -
lengthType
Data type of the value indicating length of the array for list properties. -
valueType
Data type for the values contained within this property. -
readValueFromBufferListener
PLYReadValueFromBufferListener readValueFromBufferListenerListener to read the value of this property contained within the byte read buffer and transform it into the appropriate data type for this property. -
readValueFromStreamListener
PLYReadValueFromStreamListener readValueFromStreamListenerListener to read the appropriate amount of bytes from a PLY file corresponding to this property data type. The amount of bytes read are stored within the read buffer. -
readLengthValueFromBufferListener
PLYReadValueFromBufferListener readLengthValueFromBufferListenerListener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property. -
readLengthValueFromStreamListener
PLYReadValueFromStreamListener readLengthValueFromStreamListenerListener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type. The amount of bytes read are stored within the read buffer.
-
-
Constructor Details
-
PropertyPLY
Constructor.- Parameters:
name- name of this property.valueType- data type of the value of this property.
-
PropertyPLY
Constructor.- Parameters:
name- name of this property.lengthType- data type of the length value of this property.valueType- data type of the value of this property.
-
-
Method Details
-
getName
Returns name of this property.- Returns:
- Name of this property.
- Throws:
NotAvailableException- Raised if name has not been already provided.
-
isNameAvailable
public boolean isNameAvailable()Determines if name has already been provided and is ready for retrieval.- Returns:
- True if name is available, false otherwise.
-
getPropertyType
Property type (either scalar or list).- Returns:
- property type.
-
getLengthType
Returns data type of the value indicating length of the array if this is a list property.- Returns:
- data type of the value indicating length of the array if this is a list property.
- Throws:
NotAvailableException- raised if property type has not yet been provided and is not available for retrieval.
-
isLengthTypeAvailable
public boolean isLengthTypeAvailable()Determines whether length property type has been provided and is available for retrieval.- Returns:
- True if length property type has been provided, false otherwise.
-
getValueType
Returns data type for the value contained within this property.- Returns:
- data type for the value contained within this property.
- Throws:
NotAvailableException- raised if property type has not yet been provided and is not available for retrieval.
-
isValueTypeAvailable
public boolean isValueTypeAvailable()Determines if data type for the value contained within this property has already been provided and is available for retrieval.- Returns:
- True if data type for the value contained within this property is available for retrieval, false otherwise.
-
isValidProperty
public boolean isValidProperty()Determines if this property is valid with the values that have already been provided.- Returns:
- True if property is valid, false otherwise.
-
toString
Converts this property to string representation ready to be written in the header of a PLY file. -
getReadValueFromBufferListener
Returns listener to read the value of this property contained within the byte read buffer and transforms it into the appropriate data type for this property.- Returns:
- listener to read the value of this property.
- Throws:
NotAvailableException- Raised if listener has not yet been provided and is not available for retrieval.
-
setReadValueFromBufferListener
Sets listener to read the value of this property contained within the byte read buffer and transforms it into the appropriate data type for this property.- Parameters:
listener- listener to read the value of this property.
-
isReadValueFromBufferListenerAvailable
public boolean isReadValueFromBufferListenerAvailable()Determines if listener to read the value of this property has been provided and is available for retrieval or not.- Returns:
- True if listener is available, false otherwise.
-
getReadValueFromStreamListener
Returns listener to read the appropriate amount of bytes from a PLY file corresponding to this property data type. The amount of bytes read are stored within the read buffer.- Returns:
- listener to read the appropriate amount of bytes from a PLY file.
- Throws:
NotAvailableException- Raised if listener has not yet been provided and is not available for retrieval.
-
setReadValueFromStreamListener
Sets listener to read the appropriate amount of bytes from a PLY file corresponding to this property data type. The amount of bytes read are stored within the read buffer.- Parameters:
listener- listener to read the appropriate amount of bytes from a PLY file.
-
isReadValueFromStreamListenerAvailable
public boolean isReadValueFromStreamListenerAvailable()Determines if listener to read the appropriate amount of bytes from a PLY file has been provided and is available for retrieval or not.- Returns:
- True if listener is available, false otherwise.
-
getReadLengthValueFromBufferListener
public PLYReadValueFromBufferListener getReadLengthValueFromBufferListener() throws NotAvailableExceptionReturns listener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.- Returns:
- listener to read the length value of this property.
- Throws:
NotAvailableException- Raised if listener has not yet been provided and is not available for retrieval.
-
setReadLengthValueFromBufferListener
Sets listener to read the length value of this property contained within the byte read buffer and transform it into the appropriate data type for this property.- Parameters:
listener- listener to read the length value of this property.
-
isReadLengthValueFromBufferListenerAvailable
public boolean isReadLengthValueFromBufferListenerAvailable()Determines if listener to read the length value of this property has been provided and is available for retrieval or not.- Returns:
- True if listener is available, false otherwise.
-
getReadLengthValueFromStreamListener
public PLYReadValueFromStreamListener getReadLengthValueFromStreamListener() throws NotAvailableExceptionReturns listener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type. The amount of bytes read are stored within the read buffer.- Returns:
- listener to read the appropriate amount of bytes from a PLY file.
- Throws:
NotAvailableException- Raised if listener has not yet been provided and is not available for retrieval.
-
setReadLengthValueFromStreamListener
Sets listener to read the appropriate amount of bytes from a PLY file corresponding to this property length data type. The amount of bytes read are stored within the read buffer.- Parameters:
listener- listener to read the appropriate amount of bytes from a PLY file.
-
isReadLengthValueFromStreamListenerAvailable
public boolean isReadLengthValueFromStreamListenerAvailable()Determines if listener to read the appropriate amount of bytes from a PLY file has been provided and is available for retrieval or not.- Returns:
- True if listener is available, false otherwise.
-