TBTK
Need a break? Support the development by playing
Polarity Puzzles
PNGCanvas3D.h
1
/* Copyright 2019 Kristofer Björnson
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
17
24
#ifndef COM_DAFER45_TBTK_PNG_CANVAS_3D
25
#define COM_DAFER45_TBTK_PNG_CANVAS_3D
26
27
#include "TBTK/Canvas3D.h"
28
#include "
TBTK/TBTKMacros.h
"
29
30
#include <string>
31
#include <tuple>
32
33
namespace
TBTK{
34
35
class
PNGCanvas3D :
public
Canvas3D{
36
public
:
38
PNGCanvas3D(
const
Canvas3D &canvas);
39
41
virtual
~PNGCanvas3D();
42
46
void
flush(
const
std::string &filename);
47
private
:
49
static
std::string convertColorToHex(
50
const
std::vector<unsigned char> &color
51
);
52
};
53
54
};
//End namespace TBTK
55
56
#endif
57
TBTKMacros.h
Precompiler macros.
TBTK
Lib
include
Plotter2
TBTK
PNGCanvas3D.h
Generated on Sat Jul 27 2024 12:03:36 for TBTK by
1.8.17