Package renderer.pipeline
Class PipelineLogger
- java.lang.Object
-
- renderer.pipeline.PipelineLogger
-
public class PipelineLogger extends Object
Methods used by the pipeline stages to log information.
-
-
Field Summary
Fields Modifier and Type Field Description static booleandebugPositionstatic booleandebugScene
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogColorList(String stage, Model model)static voidlogMessage(String message)Use this logger's debug variables to determine if the given message should be printed to stderr.static voidlogPixel(double x_pp, double y_pp, int x_vp, int y_vp, double r, double g, double b, FrameBuffer.Viewport vp)This method prints aStringrepresentation of the given pixel from a point that is being rasterized.static voidlogPixel(double x_pp, int y_pp, int x_vp, int y_vp, float r, float g, float b, FrameBuffer.Viewport vp)This method prints aStringrepresentation of the given pixel from a "vertical" line that is being rasterized along the y-axis.static voidlogPixel(int x_pp, double y_pp, int x_vp, int y_vp, float r, float g, float b, FrameBuffer.Viewport vp)This method prints aStringrepresentation of the given pixel from a "horizontal" line that is being rasterized along the x-axis.static voidlogPixel(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 aStringrepresentation of the given pixel from a point that is being rasterized.static voidlogPixelsAA(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.static voidlogPixelsAA(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.static voidlogPrimitive(String stage, Model model, Primitive p)static voidlogPrimitiveList(String stage, Model model)static voidlogVertexList(String stage, Model model)
-
-
-
Field Detail
-
debugScene
public static boolean debugScene
-
debugPosition
public static boolean debugPosition
-
-
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-Stringto output to stderr
-
logVertexList
public static void logVertexList(String stage, Model model)
- Parameters:
stage- name for the pipeline stagemodel- theModelwhose vertex list is to be printed
-
logColorList
public static void logColorList(String stage, Model model)
-
logPrimitiveList
public static void logPrimitiveList(String stage, Model model)
- Parameters:
stage- name for the pipeline stagemodel- theModelwhose primitive list is to be printed
-
logPrimitive
public static void logPrimitive(String stage, Model model, Primitive p)
-
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 aStringrepresentation of the given pixel from a point that is being rasterized.- Parameters:
clippedMessage-Stringspecifying if the pixel was clipped or notx_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex_vp- horizontal coordinate of the pixel in the viewporty_vp- vertical coordinate of the pixel in the viewportr- red component of the pixel'sColorg- green component of the pixel'sColorb- blue component of the pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
logPixel
public static void logPixel(double x_pp, double y_pp, int x_vp, int y_vp, double r, double g, double b, FrameBuffer.Viewport vp)
This method prints aStringrepresentation of the given pixel from a point that is being rasterized.- Parameters:
x_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex_vp- horizontal coordinate of the pixel in the viewporty_vp- vertical coordinate of the pixel in the viewportr- red component of the pixel'sColorg- green component of the pixel'sColorb- blue component of the pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
logPixel
public static void logPixel(int x_pp, double y_pp, int x_vp, int y_vp, float r, float g, float b, FrameBuffer.Viewport vp)
This method prints aStringrepresentation of the given pixel from a "horizontal" line that is being rasterized along the x-axis.- Parameters:
x_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex_vp- horizontal coordinate of the pixel in theFrameBuffer.Viewporty_vp- vertical coordinate of the pixel in theFrameBuffer.Viewportr- red component of the pixel'sColorg- green component of the pixel'sColorb- blue component of the pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
logPixel
public static void logPixel(double x_pp, int y_pp, int x_vp, int y_vp, float r, float g, float b, FrameBuffer.Viewport vp)
This method prints aStringrepresentation of the given pixel from a "vertical" line that is being rasterized along the y-axis.- Parameters:
x_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex_vp- horizontal coordinate of the pixel in theFrameBuffer.Viewporty_vp- vertical coordinate of the pixel in theFrameBuffer.Viewportr- red component of the pixel'sColorg- green component of the pixel'sColorb- blue component of the pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
logPixelsAA
public static void logPixelsAA(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:
x_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex_vp- horizontal coordinate of the anti-aliased pixels in theFrameBuffer.Viewporty1_vp- vertical coordinate of the first anti-aliased pixel in theFrameBuffer.Viewporty2_vp- vertical coordinate of the second anti-aliased pixel in theFrameBuffer.Viewportr1- red component of the first anti-aliased pixel'sColorg1- green component of the first anti-aliased pixel'sColorb1- blue component of the first anti-aliased pixel'sColorr2- red component of the second anti-aliased pixel'sColorg2- green component of the second anti-aliased pixel'sColorb2- blue component of the second anti-aliased pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
logPixelsAA
public static void logPixelsAA(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:
x_pp- horizontal coordinate of the pixel in the pixel-planey_pp- vertical coordinate of the pixel in the pixel-planex1_vp- horizontal coordinate of the first anti-aliased pixel in theFrameBuffer.Viewportx2_vp- horizontal coordinate of the second anti-aliased pixel in theFrameBuffer.Viewporty_vp- vertical coordinate of the anti-aliased pixels in theFrameBuffer.Viewportr1- red component of the first anti-aliased pixel'sColorg1- green component of the first anti-aliased pixel'sColorb1- blue component of the first anti-aliased pixel'sColorr2- red component of the second anti-aliased pixel'sColorg2- green component of the second anti-aliased pixel'sColorb2- blue component of the second anti-aliased pixel'sColorvp-FrameBuffer.Viewportthat the pixel is being placed in
-
-