~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc7/src/Inventor/Qt/nodes/SoGuiMaterialEditor.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2006-02-06 22:34:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060206223400-g69m5soqa4zh0gkc
Tags: 1.3.0-3
debian/control: update libsoqt-dev depends.  Closes: #351700.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef COIN_SOGUIMATERIALEDITOR_H
 
2
#define COIN_SOGUIMATERIALEDITOR_H
 
3
 
 
4
/**************************************************************************\
 
5
 *
 
6
 *  This file is part of the Coin 3D visualization library.
 
7
 *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
 
8
 *
 
9
 *  This library is free software; you can redistribute it and/or
 
10
 *  modify it under the terms of the GNU General Public License
 
11
 *  ("GPL") version 2 as published by the Free Software Foundation.
 
12
 *  See the file LICENSE.GPL at the root directory of this source
 
13
 *  distribution for additional information about the GNU GPL.
 
14
 *
 
15
 *  For using Coin with software that can not be combined with the GNU
 
16
 *  GPL, and for taking advantage of the additional benefits of our
 
17
 *  support services, please contact Systems in Motion about acquiring
 
18
 *  a Coin Professional Edition License.
 
19
 *
 
20
 *  See <URL:http://www.coin3d.org/> for more information.
 
21
 *
 
22
 *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
 
23
 *  <URL:http://www.sim.no/>.
 
24
 *
 
25
\**************************************************************************/
 
26
 
 
27
#include <Inventor/fields/SoSFEnum.h>
 
28
#include <Inventor/fields/SoSFShort.h>
 
29
#include <Inventor/fields/SoSFNode.h>
 
30
#include <Inventor/nodekits/SoBaseKit.h>
 
31
 
 
32
class SoMaterial;
 
33
class SoGuiColorEditor;
 
34
 
 
35
typedef SoGuiColorEditor * SoGuiColorEditorOpenCB(void * closure);
 
36
typedef void SoGuiColorEditorCloseCB(void * closure, SoGuiColorEditor * editor);
 
37
 
 
38
class SoGuiMaterialEditor : public SoBaseKit {
 
39
  typedef SoBaseKit inherited;
 
40
  SO_KIT_HEADER(SoGuiMaterialEditor);
 
41
  SO_KIT_CATALOG_ENTRY_HEADER(root);
 
42
 
 
43
public:
 
44
  static void initClass(void);
 
45
  SoGuiMaterialEditor(void);
 
46
  
 
47
  enum UpdateFrequency {
 
48
    CONTINUOUS,
 
49
    AFTER_ACCEPT
 
50
  };
 
51
 
 
52
  SoSFNode material;
 
53
  SoSFShort index;
 
54
  SoSFEnum update;
 
55
 
 
56
  void setColorEditorCallbacks(SoGuiColorEditorOpenCB * open, SoGuiColorEditorCloseCB * close, void * closure);
 
57
  SoMaterial * getSphereMaterialNode(void) const;
 
58
 
 
59
protected:
 
60
  ~SoGuiMaterialEditor(void);
 
61
 
 
62
private:
 
63
  void * internals;
 
64
 
 
65
};
 
66
 
 
67
#endif // !COIN_SOGUIMATERIALEDITOR_H