Class PipelineLogger


  • public class PipelineLogger
    extends Object
    Methods used by the pipeline stages to log information.
    • Method Detail

      • logMessage

        public static void logMessage​(String message)
        Use this logger's debug variables to determine if the given message should be printed to stderr.
        Parameters:
        message - String to output to stderr
      • logVertexList

        public static void logVertexList​(String stage,
                                         Model model)
        This method prints a String representation of the given Model's Vertex list.
        Parameters:
        stage - name for the pipeline stage
        model - the Model whose vertex list is to be printed
      • logColorList

        public static void logColorList​(String stage,
                                        Model model)
        This method prints a String representation of the given Model's Color list.
        Parameters:
        stage - name for the pipeline stage
        model - the Model whose Color list is to be printed
      • logPrimitiveList

        public static void logPrimitiveList​(String stage,
                                            Model model)
        This method prints a String representation of the given Model's Primitive list.
        Parameters:
        stage - name for the pipeline stage
        model - the Model whose primitive list is to be printed
      • logPixel

        public static void logPixel​(String clippedMessage,
                                    double x_pp,
                                    double y_pp,
                                    int x_vp,
                                    int y_vp,
                                    double r,
                                    double g,
                                    double b,
                                    FrameBuffer.Viewport vp)
        This method prints a String representation of the given pixel from a point that is being rasterized.
        Parameters:
        clippedMessage - String specifying if the pixel was clipped or not
        x_pp - horizontal coordinate of the pixel in the pixel-plane
        y_pp - vertical coordinate of the pixel in the pixel-plane
        x_vp - horizontal coordinate of the pixel in the viewport
        y_vp - vertical coordinate of the pixel in the viewport
        r - red component of the pixel's Color
        g - green component of the pixel's Color
        b - blue component of the pixel's Color
        vp - FrameBuffer.Viewport that the pixel is being placed in
      • logPixel

        public static void logPixel​(String clippedMessage,
                                    int x_pp,
                                    double y_pp,
                                    int x_vp,
                                    int y_vp,
                                    float r,
                                    float g,
                                    float b,
                                    FrameBuffer.Viewport vp)
        This method prints a String representation of the given pixel from a "horizontal" line that is being rasterized along the x-axis.
        Parameters:
        clippedMessage - String specifying if the pixel was clipped or not
        x_pp - horizontal coordinate of the pixel in the pixel-plane
        y_pp - vertical coordinate of the pixel in the pixel-plane
        x_vp - horizontal coordinate of the pixel in the FrameBuffer.Viewport
        y_vp - vertical coordinate of the pixel in the FrameBuffer.Viewport
        r - red component of the pixel's Color
        g - green component of the pixel's Color
        b - blue component of the pixel's Color
        vp - FrameBuffer.Viewport that the pixel is being placed in
      • logPixel

        public static void logPixel​(String clippedMessage,
                                    double x_pp,
                                    int y_pp,
                                    int x_vp,
                                    int y_vp,
                                    float r,
                                    float g,
                                    float b,
                                    FrameBuffer.Viewport vp)
        This method prints a String representation of the given pixel from a "vertical" line that is being rasterized along the y-axis.
        Parameters:
        clippedMessage - String specifying if the pixel was clipped or not
        x_pp - horizontal coordinate of the pixel in the pixel-plane
        y_pp - vertical coordinate of the pixel in the pixel-plane
        x_vp - horizontal coordinate of the pixel in the FrameBuffer.Viewport
        y_vp - vertical coordinate of the pixel in the FrameBuffer.Viewport
        r - red component of the pixel's Color
        g - green component of the pixel's Color
        b - blue component of the pixel's Color
        vp - FrameBuffer.Viewport that the pixel is being placed in
      • logPixelsAA

        public static void logPixelsAA​(String clippedMessage,
                                       int x_pp,
                                       double y_pp,
                                       int x_vp,
                                       int y1_vp,
                                       int y2_vp,
                                       float r1,
                                       float g1,
                                       float b1,
                                       float r2,
                                       float g2,
                                       float b2,
                                       FrameBuffer.Viewport vp)
        Log two anti-aliased pixels from a "horizontal" line that is being rasterized along the x-axis.
        Parameters:
        clippedMessage - String specifying if the pixel was clipped or not
        x_pp - horizontal coordinate of the pixel in the pixel-plane
        y_pp - vertical coordinate of the pixel in the pixel-plane
        x_vp - horizontal coordinate of the anti-aliased pixels in the FrameBuffer.Viewport
        y1_vp - vertical coordinate of the first anti-aliased pixel in the FrameBuffer.Viewport
        y2_vp - vertical coordinate of the second anti-aliased pixel in the FrameBuffer.Viewport
        r1 - red component of the first anti-aliased pixel's Color
        g1 - green component of the first anti-aliased pixel's Color
        b1 - blue component of the first anti-aliased pixel's Color
        r2 - red component of the second anti-aliased pixel's Color
        g2 - green component of the second anti-aliased pixel's Color
        b2 - blue component of the second anti-aliased pixel's Color
        vp - FrameBuffer.Viewport that the pixel is being placed in
      • logPixelsAA

        public static void logPixelsAA​(String clippedMessage,
                                       double x_pp,
                                       int y_pp,
                                       int x1_vp,
                                       int x2_vp,
                                       int y_vp,
                                       float r1,
                                       float g1,
                                       float b1,
                                       float r2,
                                       float g2,
                                       float b2,
                                       FrameBuffer.Viewport vp)
        Log two anti-aliased pixels from a "vertical" line that is being rasterized along the y-axis.
        Parameters:
        clippedMessage - String specifying if the pixel was clipped or not
        x_pp - horizontal coordinate of the pixel in the pixel-plane
        y_pp - vertical coordinate of the pixel in the pixel-plane
        x1_vp - horizontal coordinate of the first anti-aliased pixel in the FrameBuffer.Viewport
        x2_vp - horizontal coordinate of the second anti-aliased pixel in the FrameBuffer.Viewport
        y_vp - vertical coordinate of the anti-aliased pixels in the FrameBuffer.Viewport
        r1 - red component of the first anti-aliased pixel's Color
        g1 - green component of the first anti-aliased pixel's Color
        b1 - blue component of the first anti-aliased pixel's Color
        r2 - red component of the second anti-aliased pixel's Color
        g2 - green component of the second anti-aliased pixel's Color
        b2 - blue component of the second anti-aliased pixel's Color
        vp - FrameBuffer.Viewport that the pixel is being placed in