The Robot Application Programming Interface Delegate Project
|
Visitor to print Frames of a tree to an OutputStream. More...
Public Member Functions | |
PrintFrameVisitor () | |
Default constructor. | |
PrintFrameVisitor (OutputStream stream) | |
Constructor with selection of only the OutputStream. | |
PrintFrameVisitor (OutputStream stream, boolean printDetails) | |
Constructor with only selection of the output stream and prettyPrint. | |
PrintFrameVisitor (OutputStream stream, boolean printDetails, boolean prettyPrint) | |
General constructor. | |
boolean | visit (FrameTreeNode node) |
Writes the frame information for the given node to the output stream. | |
void | down (FrameTreeNode node) |
in a depth first traversal, called before descent | |
void | up (FrameTreeNode node) |
in a depth first traversal, called on ascent | |
Protected Attributes | |
OutputStream | m_stream |
boolean | m_printDetails |
boolean | m_prettyPrint |
String | m_indent = "+-" |
Static Protected Attributes | |
static byte[] | s_newLine = System.getProperty("line.separator").getBytes() |
The visitor can be configured to print to the desired OutputStream, with our without the transform details and potentially using a indented format.
PrintFrameVisitor | ( | OutputStream | stream | ) |
stream | OutputStream to use |
PrintFrameVisitor | ( | OutputStream | stream, |
boolean | printDetails | ||
) |
stream | OutputStream to use |
printDetails | print the transform matrix or not |
PrintFrameVisitor | ( | OutputStream | stream, |
boolean | printDetails, | ||
boolean | prettyPrint | ||
) |
stream | OutputStream to use |
printDetails | print the details of the transform or not |
prettyPrint | print using indentation or not |
void down | ( | FrameTreeNode | node | ) |
Implements IFrameVisitor.
void up | ( | FrameTreeNode | node | ) |
Implements IFrameVisitor.
boolean visit | ( | FrameTreeNode | node | ) |
String m_indent = "+-" [protected] |
boolean m_prettyPrint [protected] |
boolean m_printDetails [protected] |
OutputStream m_stream [protected] |
byte [] s_newLine = System.getProperty("line.separator").getBytes() [static, protected] |