blob: c1cc18a58205c6ca116cdf68832dc65b3f590b97 (
plain)
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
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup freestyle
* \brief Class to display an oriented line representation.
*/
#include "LineRep.h"
#include "../system/FreestyleConfig.h"
namespace Freestyle {
class OrientedLineRep : public LineRep {
public:
OrientedLineRep() : LineRep()
{
}
/** Builds a single line from 2 vertices
* v1
* first vertex
* v2
* second vertex
*/
inline OrientedLineRep(const Vec3r &v1, const Vec3r &v2) : LineRep(v1, v2)
{
}
/** Builds a line rep from a vertex chain */
inline OrientedLineRep(const vector<Vec3r> &vertices) : LineRep(vertices)
{
}
/** Builds a line rep from a vertex chain */
inline OrientedLineRep(const list<Vec3r> &vertices) : LineRep(vertices)
{
}
virtual ~OrientedLineRep()
{
}
/** Accept the corresponding visitor */
virtual void accept(SceneVisitor &v);
};
} /* namespace Freestyle */
|