Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PbMiscTextAttr.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PB_MISC_TEXT_ATTR_
25#define _PB_MISC_TEXT_ATTR_
26
28#include <Inventor/SbString.h>
29
39class PbMiscTextAttr : public PbBase {
40
41
42 public:
43
44
45
47 PbMiscTextAttr(const PbMiscTextAttr &miscTextAttr) ;
48
55
77 void setLineLength(char endLineChar, int lineLength) ;
78
83 void getLineLength(char &endLineChar, int &lineLength) const
84 { endLineChar = m_endCharLine ; lineLength = m_lineLength ; }
85
91 SoNONUNICODE void setFontName(const char *name) ;
92
96 void setFontName(const SbString& name) ;
97
101 SbString getFontName() const { return m_fontName; }
102
104
113 { return m_isProfileEnabled ; }
114
116
125 { return m_isPredefinedProfile ; }
126
131
132 /*----------------------------------------------------------------------------*/
133 private:
134
135 // Enable/disable outlining.
136 void enableOutlining(SbBool flag) ;
137
138 SbBool isOutliningEnabled() const
139 {return m_isOutliningEnabled ;}
140
141 private:
142 void copy(const PbMiscTextAttr &miscTextAttr, SbBool isConstructorPerCopy) ;
143 // Used by constructor per copy and affectation operator
144
145 char m_endCharLine ;
146 int m_lineLength ;
147 SbString m_fontName ;
148 SbBool m_isProfileEnabled, m_isPredefinedProfile, m_isOutliningEnabled ;
149} ;
150
151/*---------------------------------------------------------------------------*/
152
153#endif /* _PB_MISC_TEXT_ATTR_ */
154
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for all b...
Definition PbBase.h:49
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to define a numeri...
void setFontName(const SbString &name)
Sets the font name for texts.
PbMiscTextAttr & operator=(const PbMiscTextAttr &miscTextAttr)
Assignment operator.
PbMiscTextAttr(const PbMiscTextAttr &miscTextAttr)
void setLineLength(char endLineChar, int lineLength)
Sets line length attributes.
void getLineLength(char &endLineChar, int &lineLength) const
Gets line length attributes.
void enableProfile(SbBool flag)
void enablePredefinedProfile(SbBool flag)
SoNONUNICODE void setFontName(const char *name)
Sets the font name for texts.
SbBool isPredefinedProfileEnabled() const
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf enableProfile(...
@ LINE_LENGTH_MIN
The lines are limited to one word.
@ LINE_LENGTH_MAX
The lines are not limited.
SbBool isProfileEnabled() const
Enables/Disables the appearance of a profile for 3D Text.
SbString getFontName() const
Gets the font name for texts.
Class for smart character strings.
Definition SbString.h:202
int SbBool
Boolean type.
Definition SbBase.h:87