Class MaskProjectorBack

java.lang.Object
cz.fidentis.analyst.engines.interactivemask.MaskProjectorBack

public class MaskProjectorBack extends Object
Projects a 3D SurfaceMask back onto a 2D SurfaceMask2D. This is the inverse operation of MaskProjector. Ensures that updates to the 3D mask reflect properly in 2D space.
  • Constructor Details

    • MaskProjectorBack

      public MaskProjectorBack(MaskProjectorConfig config, SurfaceMask surfaceMask)
      Constructs a MaskProjectorBack instance with a given configuration and 3D surface mask.
      Parameters:
      config - Configuration object containing camera, canvas, and scaling details.
      surfaceMask - The 3D surface mask to be projected back into 2D space.
  • Method Details

    • projectBack

      public void projectBack()
      Projects all points from the 3D surface mask into 2D panel space. Ensures that duplicate 2D points are not added. Updates the 2D mask with the projected points.
    • projectBackEllipse

      public void projectBackEllipse()
      Projects back from 3D to 2D panel Ellipse shape. Updates the 2D mask with the projected points.
    • getResult

      public SurfaceMask2D getResult()
      Returns the new 2D surface mask containing all projected points.
      Returns:
      The resulting SurfaceMask2D after projecting back to 2D panel.