libetonyek::KEYOutput Class Reference

A context for drawing instances of KEYObject. More...

#include <KEYOutput.h>

List of all members.

Public Member Functions

 KEYOutput (KEYPresentationInterface *painter, KEYStyleContext &context)
 Create an initial KEYOutput.
 KEYOutput (const KEYOutput &output, const KEYTransformation &tr)
 Apply a transformation to the current output.
 KEYOutput (const KEYOutput &output, const KEYStylePtr_t &style)
 Apply a style to the current output.
 KEYOutput (const KEYOutput &output, const KEYTransformation &tr, const KEYStylePtr_t &style)
 Apply a transformation and a style to the current output.
 KEYOutput (const KEYOutput &other)
 Create a KEYOutput as a copy of an existing one.
 ~KEYOutput ()
 Destroy a KEYOutput instance.
KEYPresentationInterface * getPainter () const
 Get the painter.
const KEYTransformationgetTransformation () const
 Get the current transformation.
const KEYStyleContextgetStyleContext () const
 Get the style context.

Private Member Functions

KEYOutputoperator= (const KEYOutput &other)

Private Attributes

KEYPresentationInterface *const m_painter
KEYStyleContextm_styleContext
KEYTransformation m_transformation
bool m_stylePushed

Detailed Description

A context for drawing instances of KEYObject.


Constructor & Destructor Documentation

libetonyek::KEYOutput::KEYOutput ( KEYPresentationInterface *  painter,
KEYStyleContext context 
)

Create an initial KEYOutput.

This should only be used once at the beginning of an output operation.

  • [in] painter a painter
  • [in] context a style context
libetonyek::KEYOutput::KEYOutput ( const KEYOutput output,
const KEYTransformation tr 
)

Apply a transformation to the current output.

  • [in] output the current output
  • [in] tr a transformation
libetonyek::KEYOutput::KEYOutput ( const KEYOutput output,
const KEYStylePtr_t style 
)

Apply a style to the current output.

The style is pushed to the style context.

  • [in] output the current output
  • [in] style a style

KEYStyleContext

libetonyek::KEYOutput::KEYOutput ( const KEYOutput output,
const KEYTransformation tr,
const KEYStylePtr_t style 
)

Apply a transformation and a style to the current output.

The style is pushed to the style context.

  • [in] output the current output
  • [in] tr a transformation
  • [in] style a style

KEYStyleContext

Create a KEYOutput as a copy of an existing one.

Destroy a KEYOutput instance.

If this KEYOutput instance pushed a style to the style context, it will be popped.


Member Function Documentation

KEYPresentationInterface * libetonyek::KEYOutput::getPainter ( ) const

Get the painter.

Returns:
the painter

Referenced by libetonyek::KEYTable::draw().

Get the style context.

Returns:
the style context.

Get the current transformation.

Returns:
the currently active transformation

Referenced by libetonyek::KEYTable::draw().

KEYOutput& libetonyek::KEYOutput::operator= ( const KEYOutput other) [private]

Member Data Documentation

KEYPresentationInterface* const libetonyek::KEYOutput::m_painter [private]

Referenced by getPainter().


The documentation for this class was generated from the following files: