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 boolean
debugPosition
static boolean
debugScene
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
logColorList(String stage, Model model)
static void
logMessage(String message)
Use this logger's debug variables to determine if the given message should be printed to stderr.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 aString
representation of the given pixel from a point that is being rasterized.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 aString
representation of the given pixel from a "vertical" line that is being rasterized along the y-axis.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 aString
representation of the given pixel from a "horizontal" line that is being rasterized along the x-axis.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.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.static void
logPrimitive(String stage, Model model, Primitive p)
static void
logPrimitiveList(String stage, Model model)
static void
logVertexList(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
-String
to output to stderr
-
logVertexList
public static void logVertexList(String stage, Model model)
- Parameters:
stage
- name for the pipeline stagemodel
- theModel
whose 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
- theModel
whose 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 aString
representation of the given pixel from a point that is being rasterized.- Parameters:
clippedMessage
-String
specifying 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'sColor
g
- green component of the pixel'sColor
b
- blue component of the pixel'sColor
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 aString
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 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 theFrameBuffer.Viewport
y_vp
- vertical coordinate of the pixel in theFrameBuffer.Viewport
r
- red component of the pixel'sColor
g
- green component of the pixel'sColor
b
- blue component of the pixel'sColor
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 aString
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 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 theFrameBuffer.Viewport
y_vp
- vertical coordinate of the pixel in theFrameBuffer.Viewport
r
- red component of the pixel'sColor
g
- green component of the pixel'sColor
b
- blue component of the pixel'sColor
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 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 anti-aliased pixels in theFrameBuffer.Viewport
y1_vp
- vertical coordinate of the first anti-aliased pixel in theFrameBuffer.Viewport
y2_vp
- vertical coordinate of the second anti-aliased pixel in theFrameBuffer.Viewport
r1
- red component of the first anti-aliased pixel'sColor
g1
- green component of the first anti-aliased pixel'sColor
b1
- blue component of the first anti-aliased pixel'sColor
r2
- red component of the second anti-aliased pixel'sColor
g2
- green component of the second anti-aliased pixel'sColor
b2
- blue component of the second anti-aliased pixel'sColor
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 notx_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.Viewport
x2_vp
- horizontal coordinate of the second anti-aliased pixel in theFrameBuffer.Viewport
y_vp
- vertical coordinate of the anti-aliased pixels in theFrameBuffer.Viewport
r1
- red component of the first anti-aliased pixel'sColor
g1
- green component of the first anti-aliased pixel'sColor
b1
- blue component of the first anti-aliased pixel'sColor
r2
- red component of the second anti-aliased pixel'sColor
g2
- green component of the second anti-aliased pixel'sColor
b2
- blue component of the second anti-aliased pixel'sColor
vp
-FrameBuffer.Viewport
that the pixel is being placed in
-
-