KEYOutput.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef KEYOUTPUT_H_INCLUDED
11 #define KEYOUTPUT_H_INCLUDED
12 
13 #include "KEYStyle.h"
14 #include "KEYTransformation.h"
15 
16 namespace libetonyek
17 {
18 
19 class KEYPresentationInterface;
20 class KEYStyleContext;
21 
24 class KEYOutput
25 {
26  // disable assignment
27  KEYOutput &operator=(const KEYOutput &other);
28 
29 public:
38  KEYOutput(KEYPresentationInterface *painter, KEYStyleContext &context);
39 
45  KEYOutput(const KEYOutput &output, const KEYTransformation &tr);
46 
56  KEYOutput(const KEYOutput &output, const KEYStylePtr_t &style);
57 
68  KEYOutput(const KEYOutput &output, const KEYTransformation &tr, const KEYStylePtr_t &style);
69 
74  KEYOutput(const KEYOutput &other);
75 
81  ~KEYOutput();
82 
87  KEYPresentationInterface *getPainter() const;
88 
93  const KEYTransformation &getTransformation() const;
94 
99  const KEYStyleContext &getStyleContext() const;
100 
101 private:
102  KEYPresentationInterface *const m_painter;
106 };
107 
108 }
109 
110 #endif // KEYOUTPUT_H_INCLUDED
111 
112 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
KEYPresentationInterface * getPainter() const
Get the painter.
Definition: KEYOutput.cpp:66
boost::shared_ptr< KEYStyle > KEYStylePtr_t
Definition: KEYStyle.h:49
~KEYOutput()
Destroy a KEYOutput instance.
Definition: KEYOutput.cpp:60
KEYOutput(KEYPresentationInterface *painter, KEYStyleContext &context)
Create an initial KEYOutput.
Definition: KEYOutput.cpp:16
KEYTransformation m_transformation
Definition: KEYOutput.h:104
Definition: KEY2Token.h:795
const KEYTransformation & getTransformation() const
Get the current transformation.
Definition: KEYOutput.cpp:71
bool m_stylePushed
Definition: KEYOutput.h:105
A context for drawing instances of KEYObject.
Definition: KEYOutput.h:24
const KEYStyleContext & getStyleContext() const
Get the style context.
Definition: KEYOutput.cpp:76
KEYPresentationInterface *const m_painter
Definition: KEYOutput.h:102
KEYOutput & operator=(const KEYOutput &other)
KEYStyleContext & m_styleContext
Definition: KEYOutput.h:103
Represents an affine transformation.
Definition: KEYTransformation.h:29
Representation of a dynamic inheritance of styles.
Definition: KEYStyleContext.h:34

Generated for libetonyek by doxygen 1.8.5