Record Class MaskProjectorConfig
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.interactivemask.MaskProjectorConfig
- Record Components:
canvasWidth
-canvasHeight
-panelWidth
-panelHeight
-fov
-cameraPosition
-cameraCenter
-cameraUpDirection
-bboxScale
-scaleFactor
-
public record MaskProjectorConfig(int canvasWidth, int canvasHeight, int panelWidth, int panelHeight, int fov, javax.vecmath.Vector3d cameraPosition, javax.vecmath.Vector3d cameraCenter, javax.vecmath.Vector3d cameraUpDirection, double bboxScale, double scaleFactor)
extends Record
Configuration for MaskProjector
-
Constructor Summary
ConstructorsConstructorDescriptionMaskProjectorConfig
(int canvasWidth, int canvasHeight, int panelWidth, int panelHeight, int fov, javax.vecmath.Vector3d cameraPosition, javax.vecmath.Vector3d cameraCenter, javax.vecmath.Vector3d cameraUpDirection, double bboxScale, double scaleFactor) Creates an instance of aMaskProjectorConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thebboxScale
record component.javax.vecmath.Vector3d
Returns the value of thecameraCenter
record component.javax.vecmath.Vector3d
Returns the value of thecameraPosition
record component.javax.vecmath.Vector3d
Returns the value of thecameraUpDirection
record component.int
Returns the value of thecanvasHeight
record component.int
Returns the value of thecanvasWidth
record component.final boolean
Indicates whether some other object is "equal to" this one.int
fov()
Returns the value of thefov
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thepanelHeight
record component.int
Returns the value of thepanelWidth
record component.double
Returns the value of thescaleFactor
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MaskProjectorConfig
public MaskProjectorConfig(int canvasWidth, int canvasHeight, int panelWidth, int panelHeight, int fov, javax.vecmath.Vector3d cameraPosition, javax.vecmath.Vector3d cameraCenter, javax.vecmath.Vector3d cameraUpDirection, double bboxScale, double scaleFactor) Creates an instance of aMaskProjectorConfig
record class.- Parameters:
canvasWidth
- the value for thecanvasWidth
record componentcanvasHeight
- the value for thecanvasHeight
record componentpanelWidth
- the value for thepanelWidth
record componentpanelHeight
- the value for thepanelHeight
record componentfov
- the value for thefov
record componentcameraPosition
- the value for thecameraPosition
record componentcameraCenter
- the value for thecameraCenter
record componentcameraUpDirection
- the value for thecameraUpDirection
record componentbboxScale
- the value for thebboxScale
record componentscaleFactor
- the value for thescaleFactor
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
canvasWidth
public int canvasWidth()Returns the value of thecanvasWidth
record component.- Returns:
- the value of the
canvasWidth
record component
-
canvasHeight
public int canvasHeight()Returns the value of thecanvasHeight
record component.- Returns:
- the value of the
canvasHeight
record component
-
panelWidth
public int panelWidth()Returns the value of thepanelWidth
record component.- Returns:
- the value of the
panelWidth
record component
-
panelHeight
public int panelHeight()Returns the value of thepanelHeight
record component.- Returns:
- the value of the
panelHeight
record component
-
fov
public int fov()Returns the value of thefov
record component.- Returns:
- the value of the
fov
record component
-
cameraPosition
public javax.vecmath.Vector3d cameraPosition()Returns the value of thecameraPosition
record component.- Returns:
- the value of the
cameraPosition
record component
-
cameraCenter
public javax.vecmath.Vector3d cameraCenter()Returns the value of thecameraCenter
record component.- Returns:
- the value of the
cameraCenter
record component
-
cameraUpDirection
public javax.vecmath.Vector3d cameraUpDirection()Returns the value of thecameraUpDirection
record component.- Returns:
- the value of the
cameraUpDirection
record component
-
bboxScale
public double bboxScale()Returns the value of thebboxScale
record component.- Returns:
- the value of the
bboxScale
record component
-
scaleFactor
public double scaleFactor()Returns the value of thescaleFactor
record component.- Returns:
- the value of the
scaleFactor
record component
-