ImagingTools Core SDK
Main Page
Related Pages
Topics
Namespaces
Classes
Examples
ImtCore
Include
imt3dgui
CWireShape.h
1
// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2
#pragma once
3
4
5
// STL includes
6
#include <set>
7
8
// ACF includes
9
#include <istd/TRange.h>
10
11
// ImtCore includes
12
#include <imt3dgui/CShape3dBase.h>
13
#include <imt3d/IMesh3d.h>
14
15
16
namespace
imt3dgui
17
{
18
19
23
class
CWireShape
:
public
imt3dgui::CShape3dBase
24
{
25
typedef
imt3dgui::CShape3dBase
BaseClass
;
26
27
public
:
28
CWireShape
();
29
30
void
SetColor(
const
QVector3D& color);
31
void
SetInfoBoxEnabled(
bool
isEnabled =
true
);
32
33
protected
:
34
// reimplemented (imt3dgui::CShape3dBase)
35
virtual
void
UpdateShapeGeometry(
const
istd::IChangeable::ChangeSet& changeSet)
override
;
36
virtual
void
DrawShapeGl(QOpenGLShaderProgram& program, QOpenGLFunctions& functions)
override
;
37
38
// reimplemented (imt3dview::IDrawable)
39
virtual
void
Draw(QPainter& painter)
override
;
40
41
// reimplemented (imt3dgui::IShape3d)
42
virtual
QVector3D GetColor()
const override
;
43
44
private
:
45
46
private
:
47
QVector3D m_color;
48
bool
m_isInfoBoxEnabled;
49
};
50
51
52
}
// namespace imt3dgui
53
54
imt3dgui::CShape3dBase
Definition
CShape3dBase.h:35
imt3dgui::CWireShape
Definition
CWireShape.h:24
Generated by
1.9.8