Open Inventor
Release 2024.2.1
Loading...
Searching...
No Matches
SoSubDialogViz.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-2014 BY FEI S.A.S, ***
17
*** BORDEAUX, FRANCE ***
18
*** ALL RIGHTS RESERVED ***
19
**=======================================================================*/
20
/*=======================================================================
21
** Author : VSG (MMM YYYY)
22
**=======================================================================*/
23
#ifndef SOQT
24
#ifdef _WIN32
25
#define MAX_DIMENSION 0x7fffffff
// = max int32
26
#else
27
#define MAX_DIMENSION 65535
// = max unsigned short
28
#endif
29
#else
30
#define MAX_DIMENSION 32767
// = max short
31
#endif
32
33
#define FIELD_SENSOR(field) \
34
SoFieldSensor* SO__CONCAT(field, Sensor)
35
36
#define SENSOR(field) \
37
SO__CONCAT(field, Sensor)
38
39
#define SO_DG_HEADER(className) \
40
SO_KIT_HEADER(className)
41
42
#define SO_DG_SOURCE(className) \
43
SO_KIT_SOURCE(className)
44
45
#define SO_DG_CONSTRUCTOR(className) \
46
SO_KIT_CONSTRUCTOR(className)
47
48
#define SO_DG_ADD_FIELD(fieldName, defValue) \
49
SO_KIT_ADD_FIELD(fieldName, defValue)
50
51
#define SO_DG_ADD_CATALOG_ENTRY(partName, partClassName, nullByDefault, parentName, rightName, isPublicPart) \
52
SO_KIT_ADD_CATALOG_ENTRY(partName, partClassName, nullByDefault, parentName, rightName, isPublicPart)
53
54
#define SO_DG_DEFINE_ENUM_VALUE(field, value) \
55
SO_KIT_DEFINE_ENUM_VALUE(field, value)
56
57
#define SO_DG_SET_SF_ENUM_TYPE(field, typeStruct) \
58
SO_KIT_SET_SF_ENUM_TYPE(field, typeStruct)
59
60
#define SO_DG_CATALOG_ENTRY_HEADER(resource) \
61
SO_KIT_CATALOG_ENTRY_HEADER(resource)
62
63
#define SO_DG_INIT_INSTANCE() \
64
SO_KIT_INIT_INSTANCE()
65
66
#define SO__DG_INIT_CLASS(className, parentPrintClass, parentClass) \
67
SO__KIT_INIT_CLASS(className, parentPrintClass, parentClass)
68
69
#define SO_DG_INIT_CLASS(className, parentClass, parentPrintClass) \
70
SO_KIT_INIT_CLASS(className, parentClass, parentPrintClass)
71
72
#define SO__DG_EXIT_CLASS(className) \
73
SO__KIT_EXIT_CLASS(className)
74
75
#define SO_DG_EXIT_CLASS(className) \
76
SO__KIT_EXIT_CLASS(className)
77
78
#define ATTACH_FIELD(field) \
79
if (SO__CONCAT(field, Sensor) && SO__CONCAT(field, Sensor)->getAttachedField() != &field) \
80
SO__CONCAT(field, Sensor)->attach(&field)
81
82
#define DETACH_FIELD(field) \
83
if (SO__CONCAT(field, Sensor) && SO__CONCAT(field, Sensor)->getAttachedField()) \
84
SO__CONCAT(field, Sensor)->detach()
85
86
#define ADD_FIELD_SENSOR(field) \
87
SO__CONCAT(field, Sensor) = NULL
88
89
#define DELETE_FIELD_SENSOR(field) \
90
if (SO__CONCAT(field, Sensor)) \
91
delete SO__CONCAT(field, Sensor)
92
93
#define INIT_FIELD_SENSOR(field) \
94
if (SO__CONCAT(field, Sensor) == NULL) { \
95
SO__CONCAT(field, Sensor) = new SoFieldSensor(fieldChangedCB, this); \
96
SO__CONCAT(field, Sensor)->setPriority(0); \
97
ATTACH_FIELD(field); }
98
99
#ifndef SOQT
100
#ifdef _WIN32
101
#define DG_FONT HFONT
102
#else
103
#define DG_FONT char*
104
#endif
105
#else
106
#define DG_FONT QFont
107
#endif
108
109
110
111
DialogViz
dialog
SoSubDialogViz.h
Generated by
1.9.8