Class SceneItemTransform
- java.lang.Object
-
- nl.harm27.obswebsocket.api.complex.SceneItemTransform
-
public class SceneItemTransform extends Object
- See Also:
- OBS WebSocket Documentation
-
-
Constructor Summary
Constructors Constructor Description SceneItemTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBoundsAlignment()Alignment of the bounding box.BoundsTypegetBoundsType()Type of bounding box.doublegetBoundsX()Width of the bounding box.doublegetBoundsY()Height of the bounding box.intgetCropBottom()The number of pixels cropped off the bottom of the scene item before scaling.intgetCropLeft()The number of pixels cropped off the left of the scene item before scaling.intgetCropRight()The number of pixels cropped off the right of the scene item before scaling.intgetCropTop()The number of pixels cropped off the top of the scene item before scaling.Optional<List<SceneItemTransform>>getGroupChildren()List of children (if this item is a group).doublegetHeight()Scene item height (base source height multiplied by the vertical scaling factor).Optional<String>getParentGroupName()Name of the item's parent (if this item belongs to a group).intgetPositionAlignment()The point on the scene item that the item is manipulated from.intgetPositionX()The x position of the scene item from the left.intgetPositionY()The y position of the scene item from the top.doublegetRotation()The clockwise rotation of the scene item in degrees around the point of alignment.doublegetScaleX()The x-scale factor of the scene item.doublegetScaleY()The y-scale factor of the scene item.intgetSourceHeight()Base source (without scaling) of the source.intgetSourceWidth()Base width (without scaling) of the source.doublegetWidth()Scene item width (base source width multiplied by the horizontal scaling factor).booleanisLocked()If the scene item is locked in position.booleanisVisible()If the scene item is visible.
-
-
-
Method Detail
-
getPositionX
public int getPositionX()
The x position of the scene item from the left.
-
getPositionY
public int getPositionY()
The y position of the scene item from the top.
-
getPositionAlignment
public int getPositionAlignment()
The point on the scene item that the item is manipulated from.
-
getRotation
public double getRotation()
The clockwise rotation of the scene item in degrees around the point of alignment.
-
getScaleX
public double getScaleX()
The x-scale factor of the scene item.
-
getScaleY
public double getScaleY()
The y-scale factor of the scene item.
-
getCropTop
public int getCropTop()
The number of pixels cropped off the top of the scene item before scaling.
-
getCropRight
public int getCropRight()
The number of pixels cropped off the right of the scene item before scaling.
-
getCropBottom
public int getCropBottom()
The number of pixels cropped off the bottom of the scene item before scaling.
-
getCropLeft
public int getCropLeft()
The number of pixels cropped off the left of the scene item before scaling.
-
isVisible
public boolean isVisible()
If the scene item is visible.
-
isLocked
public boolean isLocked()
If the scene item is locked in position.
-
getBoundsType
public BoundsType getBoundsType()
Type of bounding box. Can be "OBS_BOUNDS_STRETCH", "OBS_BOUNDS_SCALE_INNER", "OBS_BOUNDS_SCALE_OUTER", "OBS_BOUNDS_SCALE_TO_WIDTH", "OBS_BOUNDS_SCALE_TO_HEIGHT", "OBS_BOUNDS_MAX_ONLY" or "OBS_BOUNDS_NONE".
-
getBoundsAlignment
public int getBoundsAlignment()
Alignment of the bounding box.
-
getBoundsX
public double getBoundsX()
Width of the bounding box.
-
getBoundsY
public double getBoundsY()
Height of the bounding box.
-
getSourceWidth
public int getSourceWidth()
Base width (without scaling) of the source.
-
getSourceHeight
public int getSourceHeight()
Base source (without scaling) of the source.
-
getWidth
public double getWidth()
Scene item width (base source width multiplied by the horizontal scaling factor).
-
getHeight
public double getHeight()
Scene item height (base source height multiplied by the vertical scaling factor).
-
getParentGroupName
public Optional<String> getParentGroupName()
Name of the item's parent (if this item belongs to a group).
-
getGroupChildren
public Optional<List<SceneItemTransform>> getGroupChildren()
List of children (if this item is a group).
-
-