23#ifndef _SO_DIALOG_VIZ_
24#define _SO_DIALOG_VIZ_
27#if !defined(SOQT) || defined(LOAD_DIALOGVIZ_FOR_IVTUNE)
30# define __DIALOGVIZDLL __DIALOGVIZWINDLL
31# define __DIALOGVIZLIB __DIALOGVIZWINLIB
34# define __DIALOGVIZDLL __DIALOGVIZXTDLL
35# define __DIALOGVIZLIB __DIALOGVIZXTLIB
39# define __DIALOGVIZDLL __DIALOGVIZQTDLL
40# define __DIALOGVIZLIB __DIALOGVIZQTLIB
47# if !defined(DialogVizWin_EXPORTS) && !defined(DialogVizQt_EXPORTS)
48# ifndef OIV_DISABLE_AUTOLINK
49# pragma comment(lib,__DIALOGVIZLIB)
58#if !defined(LOAD_DIALOGVIZ_FOR_IVTUNE) || defined(SCALEVIZGUIQTBUILD)
288 static SbBool setSkinsDirectory(
SbString directory) { setSkin(directory);
return TRUE; }
289 static SbString getSkinsDirectory() {
return getSkinsDirectories(); }
291 static void initClass();
292 static void exitClass();
295 virtual void destroyWidget();
296 virtual void updateFromSensor(
SoSensor* sensor);
301 static DG_FONT getDialogVizFont();
305 static void setWidgetFont(
SoWidget widget);
306 virtual void resetSize() {};
307 virtual void destroy();
324 static void setStringToText3(
SoText3* myText,
const SbString& inString);
325 static void destroyByRef(
SoDialogViz* dialogToDestroy);
328 static void fieldChangedCB(
void *guiComponent ,
SoSensor* sensor);
329 static int getNumLines(
const SbString&
string);
332 virtual void changeEnable() {};
333 virtual void changeLabel() {};
334 virtual void changeLabelAlignment() {};
341 int getAuditorListLength();
345 static int s_initRefCount;
347 static const char *s_versionString;
350 static SbBool m_errorMsgDelivered;
361 static char* TextProperties;
362 static void change3DSkin();
363 static SbBool isSkinLoaded();
364 static void setSkinLoaded(
SbBool loaded);
365 static void free3DSkin(
SbString partName);
366 static void load3DSkin(
SbString partName);
369 SbVec3f get3DParentTranslation();
370 virtual void set3DParentTranslation(
SbVec3f& tsl);
371 void apply3DParentTranslation();
375 void setBuilt3D(
SbBool built);
378 virtual void change3DPosition() {};
379 virtual void change3DWidgetEnable(
SbBool state);
391 SbBool isLabelCachedBBox();
392 void setLabelCacheBBox(
SbBox3f bBox);
395 virtual void change3DEnable();
396 virtual void change3DLabel();
397 virtual void change3DLabelAlignment() {};
399 void loadFontProperties();
401#ifndef HIDDEN_FROM_DOC
402 void writeNode(
char* file);
405 static void readDefaultSkinsParts(
const SbString& fileName,
char* defaultSkin );
407 float compute3DDepth(
SoNode* node);
408 void apply3DTranslation(
SoNode* node,
float& variable,
SbVec3f& vec);
413 static void set3DCurrentActive(
SoDialogViz* dvNode);
414 virtual void set3DInactive();
416 static int insertTextTo3DText(
SbString addStr,
SoText3 * text,
int line,
int pos);
421 static SbBool m_isSkinLoaded;
431 void create3DDialogViz();
436 static XFontStruct *requestInstalledFont();
#define TRUE
Possible value of SbBool.
#define FALSE
Possible value of SbBool.
#define SO_DG_HEADER(className)
#define FIELD_SENSOR(field)
#define SO_DG_CATALOG_ENTRY_HEADER(resource)
List of generic (void *) pointers.
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class for a...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
SoSFString auditorID
Specifies the auditor ID of the node.
static void setSkinsDirectories(SbString directories)
Sets a list of directories where to search for skins.
static SbString getSkinsDirectories()
Returns the skins directory.
static void setFont(DG_FONT font)
Sets the DialogViz font.
SoSFBool enable
Enables component.
static bool isInitialized()
Returns TRUE if module is currently initialized.
static const char * getProductName()
Returns a character string identifying the name of the extension.
static void init()
Initalizes the DialogViz classes.
SoSFString label
Label string of the element.
static void setSkin(SbString skinName)
Sets the directory for 3D DialogViz component skins.
SoSFEnum labelAlignment
Specifies the label alignment.
@ CENTER
Label is center aligned.
@ LEFT
Label is left aligned.
static SoDEPRECATED const char * getVersion()
Returns a character string identifying the version of the extension.
static void finish()
Shuts down the DialogViz module, which includes freeing any internal static memory that it allocated.
static SoDialogViz * loadFromFile(SbString filename, SbString auditorID="")
Loads a DialogViz node from an Inventor file.
Base class for nodekits that move in response to click-drag-release mouse events.
Computes bounding box of a scene.
Computes transformation matrix for a subgraph.
Base class for all group nodes.
Surface material definition node.
Abstract base class for all database nodes.
Field containing a single Boolean value.
Field containing an enumerated value.
Field containing a string.
Searches for nodes in a scene graph.
Abstract base class for Open Inventor sensors.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Top Level Dialog...
Node representing a 3D translation.