~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Mesh/Gui/ViewProviderTransform.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (c) 2004 Werner Mayer <werner.wm.mayer@gmx.de>              *
 
3
 *                                                                         *
 
4
 *   This file is part of the FreeCAD CAx development system.              *
 
5
 *                                                                         *
 
6
 *   This library is free software; you can redistribute it and/or         *
 
7
 *   modify it under the terms of the GNU Library General Public           *
 
8
 *   License as published by the Free Software Foundation; either          *
 
9
 *   version 2 of the License, or (at your option) any later version.      *
 
10
 *                                                                         *
 
11
 *   This library  is distributed in the hope that it will be useful,      *
 
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
14
 *   GNU Library General Public License for more details.                  *
 
15
 *                                                                         *
 
16
 *   You should have received a copy of the GNU Library General Public     *
 
17
 *   License along with this library; see the file COPYING.LIB. If not,    *
 
18
 *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
 
19
 *   Suite 330, Boston, MA  02111-1307, USA                                *
 
20
 *                                                                         *
 
21
 ***************************************************************************/
 
22
 
 
23
#ifndef __VIEWPROVIDERMESHTRANSFORM_H__
 
24
#define __VIEWPROVIDERMESHTRANSFORM_H__
 
25
 
 
26
class SoSeparator;
 
27
class SbVec3f;
 
28
class SoSwitch;
 
29
class SoCoordinate3;
 
30
class SoNormal;
 
31
class SoIndexedFaceSet;
 
32
class SoFaceSet;
 
33
class SoPath;
 
34
class SoLocateHighlight;
 
35
class SoTransformerManip;
 
36
 
 
37
namespace Gui {
 
38
  class View3DInventorViewer;
 
39
}
 
40
 
 
41
 
 
42
#include "ViewProvider.h"
 
43
 
 
44
namespace MeshGui {
 
45
 
 
46
/** Like Mesh viewprovider but with manipulator
 
47
 */
 
48
class ViewProviderMeshTransform : public ViewProviderMesh
 
49
{
 
50
  PROPERTY_HEADER(MeshGui::ViewProviderMeshTransform);
 
51
 
 
52
public:
 
53
  ViewProviderMeshTransform();
 
54
  virtual ~ViewProviderMeshTransform();
 
55
 
 
56
 
 
57
  /** 
 
58
   * Extracts the mesh data from the feature \a pcFeature and creates
 
59
   * an Inventor node \a SoNode with these data. 
 
60
   */
 
61
  virtual void attach(App::DocumentObject *);
 
62
 
 
63
  /// set the viewing mode
 
64
  virtual void setDisplayMode(const char* ModeName);
 
65
  /// get the default display mode
 
66
  virtual const char* getDefaultDisplayMode() const;
 
67
  /// returns a list of all possible modes
 
68
  virtual std::vector<std::string> getDisplayModes(void) const;
 
69
  /// Update the Mesh representation
 
70
  virtual void updateData(const App::Property*);
 
71
 
 
72
protected:
 
73
 
 
74
  SoTransformerManip *pcTransformerDragger;
 
75
 
 
76
 
 
77
};
 
78
 
 
79
} // namespace MeshGui
 
80
 
 
81
 
 
82
#endif // __VIEWPROVIDERMESHTRANSFORM_H__
 
83