{
AdjustTrihedrons(false);
}
+
+//----------------------------------------------------------------------------
+QImage
+SVTK_RenderWindow
+::dumpView()
+{
+ QPixmap px = QPixmap::grabWindow( winId() );
+ return px.convertToImage();
+}
#define SVTK_RenderWindow_h
#include <qmainwindow.h>
+#include <qimage.h>
#include "SVTK.h"
void onAdjustTrihedron();
void onAdjustCubeAxes();
+ void onDumpView();
+
+ public:
+ QImage dumpView();
+
protected:
enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, RotationId,
FrontId, BackId, TopId, BottomId, LeftId, RightId, ResetId, ViewTrihedronId };
void createActions();
void createToolBar();
+ protected:
vtkRenderer* myRenderer;
vtkRenderWindow* myRenderWindow;