The Robot Application Programming Interface Delegate Project
RAPID Logo

PrintFrameVisitor Class Reference

Visitor to print Frames of a tree to an OutputStream. More...

Inheritance diagram for PrintFrameVisitor:
Collaboration diagram for PrintFrameVisitor:

List of all members.

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()

Detailed Description

The visitor can be configured to print to the desired OutputStream, with our without the transform details and potentially using a indented format.


Constructor & Destructor Documentation

PrintFrameVisitor ( OutputStream  stream)
Parameters:
streamOutputStream to use
PrintFrameVisitor ( OutputStream  stream,
boolean  printDetails 
)
Parameters:
streamOutputStream to use
printDetailsprint the transform matrix or not
PrintFrameVisitor ( OutputStream  stream,
boolean  printDetails,
boolean  prettyPrint 
)
Parameters:
streamOutputStream to use
printDetailsprint the details of the transform or not
prettyPrintprint using indentation or not

Member Function Documentation

void down ( FrameTreeNode  node)

Implements IFrameVisitor.

void up ( FrameTreeNode  node)

Implements IFrameVisitor.

boolean visit ( FrameTreeNode  node)

Implements IFrameVisitor.

Here is the call graph for this function:


Member Data Documentation

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]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines