-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathFrame.cc
More file actions
70 lines (53 loc) · 1.51 KB
/
Frame.cc
File metadata and controls
70 lines (53 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation nor
* does it submit to any jurisdiction.
*/
/*! \file Frame.h
\brief Implementation of the Template class Frame.
Magics Team - ECMWF 2004
Started: Mon 29-Mar-2004
Changes:
*/
#include "Frame.h"
#include "PaperPoint.h"
#include "Polyline.h"
using namespace magics;
Frame::Frame() {}
Frame::~Frame() {}
/*!
Class information are given to the output-stream.
*/
void Frame::print(ostream& out) const {
out << "Frame[";
FrameAttributes::print(out);
out << "]";
}
void NoFrame::print(ostream& out) const {
out << "NoFrame[]";
}
void Frame::set(Polyline& frame) {
frame.setColour(*colour_);
frame.setLineStyle(style_);
frame.setThickness(thickness_);
}
void Frame::blank(Polyline& frame) {
// if (blanking_) {
FillShadingProperties* shading = new FillShadingProperties();
shading->left_ = Colour("BACKGROUND");
shading->right_ = *colour_;
frame.setShading(shading);
frame.setFilled(true);
frame.setColour(*colour_);
frame.setFillColour(Colour("BACKGROUND"));
//}
}
FrameBase* Frame::clone() const {
Frame* frame = new Frame();
frame->copy(*this);
return frame;
}