File: exportGeometryDialog.h

package info (click to toggle)
ball 1.4.3~beta1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 318,984 kB
  • sloc: cpp: 346,579; ansic: 4,097; python: 2,664; yacc: 1,778; lex: 1,099; xml: 964; sh: 688; sql: 316; awk: 118; makefile: 108
file content (110 lines) | stat: -rw-r--r-- 2,071 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef BALL_VIEW_DIALOGS_EXPORTGEOMETRYDIALOG_H
#define BALL_VIEW_DIALOGS_EXPORTGEOMETRYDIALOG_H

#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif

#ifndef  BALL_VIEW_KERNEL_CLIPPING_PLANE_H
# include <BALL/VIEW/KERNEL/clippingPlane.h>
#endif

#include <BALL/VIEW/UIC/ui_exportGeometryDialog.h>

#include <QtGui/QDialog>

namespace BALL
{
	namespace VIEW
	{

		class BALL_VIEW_EXPORT ExportGeometryDialog
			: public QDialog,
				public Ui_ExportGeometryDialogData
		{
			Q_OBJECT

			public:

			//Constructor
			ExportGeometryDialog(QWidget *parent = NULL, const char *name = "ExportGeometryDialog" );

			//Destructor
			virtual ~ExportGeometryDialog();

			/**
			for transfer of continous filenumber from scene to dialog
			*/
			void setFilename(QString filename)	{filename_ = filename;}

			QString getFilename() { return filename_; }

			/** for information whether vrml export was chosen
			*/
			bool export_vrml();

			/** for information whether stl export was chosen
			*/
			bool export_stl();

			/** for information whether representations have to be split into several files
			*/
			bool split();

			/** for information which representations in scene have to be exported
			*/
//			bool* reps() {return reps;}

			/** for the information which reps have to be restored for the basestate
			*/
//			bool* basestats() {return basestats;}

			bool reps[100];

			bool basestats[100];

			public slots:

			/** Show and raise the dialog
			*/
			void exec();

			///
			void accept();

			//@}
			/** @name Protected slots
			*/
			//@{

			protected slots:

			/**	Opens the file decision dialog
			*/
			void browseFiles();

			/** If unprintable files should be not checkable
			*/
			void protomode();

			/** Normal mode without test on prototype-ability
			*/
			void viewmode();


			private:
			/**	Makes it possible to use the filename changed by the browseFiles() method 
			*/
			QString filename_;

			bool vrml_;

			bool stl_;

			bool split_;

		};

} } // namespaces

#endif // BALL_VIEW_DIALOGS_EXPORTGEOMETRYDIALOG_H