1#ifndef SOGTK_FULLVIEWER_H
2#define SOGTK_FULLVIEWER_H
38#include <Inventor/Gtk/viewers/SoGtkViewer.h>
50 BUILD_DECORATION = 0x01,
52 BUILD_ALL = (BUILD_DECORATION | BUILD_POPUP)
55 void setDecoration(
const SbBool on);
56 SbBool isDecoration(
void)
const;
58 void setPopupMenuEnabled(
const SbBool on);
59 SbBool isPopupMenuEnabled(
void)
const;
61 GtkWidget* getAppPushButtonParent(
void)
const;
62 void addAppPushButton(GtkWidget* newButton);
63 void insertAppPushButton(GtkWidget* newButton,
int index);
64 void removeAppPushButton(GtkWidget* oldButton);
65 int findAppPushButton(GtkWidget* oldButton)
const;
66 int lengthAppPushButton(
void)
const;
68 GtkWidget* getRenderAreaWidget(
void)
const;
85 GtkWidget* buildWidget(GtkWidget* parent);
87 virtual void buildDecoration(GtkWidget* parent);
88 virtual GtkWidget* buildLeftTrim(GtkWidget* parent);
89 virtual GtkWidget* buildBottomTrim(GtkWidget* parent);
90 virtual GtkWidget* buildRightTrim(GtkWidget* parent);
91 GtkWidget* buildAppButtons(GtkWidget* parent);
92 GtkWidget* buildViewerButtons(GtkWidget* parent);
93 virtual void createViewerButtons(GtkWidget* parent, SbPList * buttonlist);
95 virtual void buildPopupMenu(
void);
96 virtual void setPopupMenuString(
const char * title);
97 virtual void openPopupMenu(
const SbVec2s position);
99 virtual void leftWheelStart(
void);
100 virtual void leftWheelMotion(
float);
101 virtual void leftWheelFinish(
void);
102 float getLeftWheelValue(
void)
const;
103 void setLeftWheelValue(
const float value);
105 virtual void bottomWheelStart(
void);
106 virtual void bottomWheelMotion(
float);
107 virtual void bottomWheelFinish(
void);
108 float getBottomWheelValue(
void)
const;
109 void setBottomWheelValue(
const float value);
111 virtual void rightWheelStart(
void);
112 virtual void rightWheelMotion(
float);
113 virtual void rightWheelFinish(
void);
114 float getRightWheelValue(
void)
const;
115 void setRightWheelValue(
const float value);
117 void setLeftWheelString(
const char *
const name);
118 GtkWidget* getLeftWheelLabelWidget(
void)
const;
119 void setBottomWheelString(
const char *
const name);
120 GtkWidget* getBottomWheelLabelWidget(
void)
const;
121 void setRightWheelString(
const char *
const name);
122 const char * getRightWheelString()
const;
123 GtkWidget* getRightWheelLabelWidget(
void)
const;
155 class SoGtkFullViewerP * pimpl;
157 friend class SoGuiFullViewerP;
158 friend class SoGtkFullViewerP;
166 Widget buildFunctionsSubmenu(Widget popup);
167 Widget buildDrawStyleSubmenu(Widget popup);
171 SbPList * viewerButtonWidgets;
virtual void setComponentCursor(const SoGtkCursor &cursor)
Definition SoGtkComponent.cpp:951
The SoGtkCursor class is used to set cursors for GUI components.
Definition SoGtkCursor.h:41
The SoGtkFullViewer class adds some user interface components to the viewer canvas.
Definition SoGtkFullViewer.h:44
GtkWidget * bottomWheelLabel
Definition SoGtkFullViewer.h:144
float bottomWheelVal
Definition SoGtkFullViewer.h:146
GtkWidget * bottomWheel
Definition SoGtkFullViewer.h:130
BuildFlag
Definition SoGtkFullViewer.h:48
char * leftWheelStr
Definition SoGtkFullViewer.h:137
GtkWidget * rightWheelLabel
Definition SoGtkFullViewer.h:140
GtkWidget * rightDecoration
Definition SoGtkFullViewer.h:133
float leftWheelVal
Definition SoGtkFullViewer.h:138
GtkWidget * bottomDecoration
Definition SoGtkFullViewer.h:134
GtkWidget * leftDecoration
Definition SoGtkFullViewer.h:132
GtkWidget * rightWheel
Definition SoGtkFullViewer.h:129
char * bottomWheelStr
Definition SoGtkFullViewer.h:145
char * rightWheelStr
Definition SoGtkFullViewer.h:141
float rightWheelVal
Definition SoGtkFullViewer.h:142
GtkWidget * leftWheelLabel
Definition SoGtkFullViewer.h:136
GtkWidget * leftWheel
Definition SoGtkFullViewer.h:128
SoGtkPopupMenu * prefmenu
Definition SoGtkFullViewer.h:148
The SoGtkViewer class is the top level base viewer class.
Definition SoGtkViewer.h:90
virtual void setViewing(SbBool enable)
Definition SoGtkViewer.cpp:2149
virtual void sizeChanged(const SbVec2s &size)
Definition SoGtkViewer.cpp:3657
virtual SbBool processSoEvent(const SoEvent *const event)
Definition SoGtkViewer.cpp:3666