MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GetInfoDialog.h
Go to the documentation of this file.
1 
7 /*
8  * Copyright 2012 Joel Baxter
9  *
10  * This file is part of MeshTex.
11  *
12  * MeshTex is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * MeshTex is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with MeshTex. If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #if !defined(INCLUDED_GETINFODIALOG_H)
27 #define INCLUDED_GETINFODIALOG_H
28 
29 #include "GenericDialog.h"
30 #include "SetScaleDialog.h"
31 #include "MeshVisitor.h"
32 
33 #include "generic/referencecounted.h"
34 
46 {
47 private: // private types
48 
52  class GetInfoVisitor : public MeshVisitor
53  {
54  public:
55  GetInfoVisitor(const int *refRow,
56  const int *refCol,
57  const MeshEntity::TexInfoCallback *rowTexInfoCallback,
58  const MeshEntity::TexInfoCallback *colTexInfoCallback);
59  private:
60  bool Execute(MeshEntity& meshEntity) const;
61  private:
62  const int *_refRow;
63  const int *_refCol;
64  const MeshEntity::TexInfoCallback *_rowTexInfoCallback;
65  const MeshEntity::TexInfoCallback *_colTexInfoCallback;
66  };
67 
68 public: // public methods
69 
70  GetInfoDialog(const std::string& key,
71  SmartPointer<SetScaleDialog>& setScaleDialog);
73  bool Apply();
74 
75 private: // private member vars
76 
80  SmartPointer<SetScaleDialog> _setScaleDialog;
81 
86 
91 
96  SmartPointer<MeshVisitor> _nullVisitor;
97 };
98 
99 #endif // #if !defined(INCLUDED_GETINFODIALOG_H)