FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ORNLSlicer/include/graphics/objects/text_object.h at develop · ORNLSlicer/ORNLSlicer · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ORNLSlicer
/
ORNLSlicer
Public
Notifications
You must be signed in to change notification settings
Fork
20
Star
92
Code
Issues
21
Pull requests
9
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ORNLSlicer
/
include
/
graphics
/
objects
/
text_object.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 776 Bytes
Breadcrumbs
ORNLSlicer
/
include
/
graphics
/
objects
/
text_object.h
Copy path
File metadata and controls
28 lines (23 loc) · 776 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
pragma
once
#
include
<
qhashfunctions.h
>
#
include
"
graphics/graphics_object.h
"
namespace
ORNL
{
/*
!
* \brief A graphic that renders a cube with a text texture. The object billboards to the camera if enabled.
*/
class
TextObject
:
public
GraphicsObject
{
public:
//
! \brief Constructor
//
! \param view: The view this object renders to.
//
! \param str: String to display.
//
! \param scale: Scale of the object.
//
! \param billboarding: If the object billboards or not.
TextObject
(BaseView* view, QString str,
float
scale =
1
,
bool
billboarding =
true
);
//
! \brief Sets the text on the object.
//
! \param str: String to display.
void
setText
(QString str);
private:
//
! \brief String
QString m_str;
};
}
//
namespace ORNL
Back
|
FazBrowse Home
|
New Git URL