Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PoLabelHintsElement.h
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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Mar 1999)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _PO_LABEL_HINTS_ELEMENT_
26#define _PO_LABEL_HINTS_ELEMENT_
27
28
29#include <Inventor/elements/SoReplacedElement.h>
30#include <MeshViz/nodes/PoLabelHints.h>
31
36
37 SO_ELEMENT_HEADER(PoLabelHintsElement);
38
39 public:
40 // Set the current label hints.
41 //
42 // @UNICODE_WARNING
43 SoNONUNICODE static void set(SoState *state, SoNode *node,
46 const char *addString,
47 SbBool isAddStringIgnored,
48 SbBool isLabelLineVisible);
49
50
51 // Set the current label hints.
52 static void set(SoState *state, SoNode *node,
55 const SbString& addString,
56 SbBool isAddStringIgnored,
57 SbBool isLabelLineVisible);
58
64 SoNONUNICODE static void get(SoState *state,
65 PoLabelHints::LabelPath &labelPath,
67 const char *&addString,
68 SbBool &isLabelLineVisible);
69
73 static void get(SoState *state,
74 PoLabelHints::LabelPath &labelPath,
76 SbString& addString,
77 SbBool &isLabelLineVisible);
78
84 SoNONUNICODE static void getDefault(PoLabelHints::LabelPath &labelPath,
86 char *&addString,
87 SbBool &isLabelLineVisible);
88
92 static void getDefault(PoLabelHints::LabelPath &labelPath,
94 SbString& addString,
95 SbBool &isLabelLineVisible);
96
97 private:
98 // Initializes the class
99 static void initClass();
100 static void exitClass() ;
101
102 private:
103 virtual ~PoLabelHintsElement();
104
106 virtual void init(SoState *state);
107
108 private:
109 PoLabelHints::LabelPath m_labelPath;
111 SbString m_addString;
112 SbBool m_isLabelLineVisible;
113};
114/*----------------------------------------------------------------------------*/
115
116#endif // _PO_LABEL_HINTS_ELEMENT_
117
118
static void set(SoState *state, SoNode *node, PoLabelHints::LabelPath labelPath, PoLabelHints::Justification justif, const SbString &addString, SbBool isAddStringIgnored, SbBool isLabelLineVisible)
static SoNONUNICODE void getDefault(PoLabelHints::LabelPath &labelPath, PoLabelHints::Justification &justif, char *&addString, SbBool &isLabelLineVisible)
Default values.
static SoNONUNICODE void set(SoState *state, SoNode *node, PoLabelHints::LabelPath labelPath, PoLabelHints::Justification justif, const char *addString, SbBool isAddStringIgnored, SbBool isLabelLineVisible)
static void getDefault(PoLabelHints::LabelPath &labelPath, PoLabelHints::Justification &justif, SbString &addString, SbBool &isLabelLineVisible)
Default values.
static void get(SoState *state, PoLabelHints::LabelPath &labelPath, PoLabelHints::Justification &justif, SbString &addString, SbBool &isLabelLineVisible)
Return the current label hints from the state.
static SoNONUNICODE void get(SoState *state, PoLabelHints::LabelPath &labelPath, PoLabelHints::Justification &justif, const char *&addString, SbBool &isLabelLineVisible)
Return the current label hints from the state.
Justification
Label justification type.
LabelPath
Label path type.
Class for smart character strings.
Definition SbString.h:202
Abstract base class for all database nodes.
Definition SoNode.h:145
Abstract base class for each state element whose value is replaced whenever it is set.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87