Coin Logo http://www.sim.no
http://www.coin3d.org

SoOrthoSlice.h
1 #ifndef SIMVOLEON_SOORTHOSLICE_H
2 #define SIMVOLEON_SOORTHOSLICE_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the SIM Voleon visualization library.
7  * Copyright (C) 2003-2004 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 SIM Voleon with software that can not be combined with
16  * the GNU GPL, and for taking advantage of the additional benefits
17  * of our support services, please contact Systems in Motion about
18  * acquiring a SIM Voleon 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/nodes/SoShape.h>
28 #include <Inventor/fields/SoSFUInt32.h>
29 #include <Inventor/fields/SoSFEnum.h>
30 #include <Inventor/fields/SoSFBool.h>
31 #include <Inventor/fields/SoSFNode.h>
32 
33 #include <VolumeViz/C/basic.h>
34 
35 // *************************************************************************
36 
37 class SIMVOLEON_DLL_API SoOrthoSlice : public SoShape {
38  typedef SoShape inherited;
39 
40  SO_NODE_HEADER(SoOrthoSlice);
41 
42 public:
43  static void initClass(void);
44 
45  SoOrthoSlice(void);
46 
47  enum Axis { X = 0, Y, Z };
48  enum Interpolation { NEAREST, LINEAR };
49  enum AlphaUse { ALPHA_AS_IS, ALPHA_OPAQUE, ALPHA_BINARY };
50  enum ClippingSide { FRONT, BACK };
51 
52  SoSFUInt32 sliceNumber;
53  SoSFEnum axis;
54  SoSFEnum interpolation;
55  SoSFEnum alphaUse;
56  SoSFEnum clippingSide;
57  SoSFBool clipping;
58  SoSFNode alternateRep;
59 
60  virtual SbBool affectsState(void) const;
61 
62 protected:
63  ~SoOrthoSlice();
64 
65  virtual void doAction(SoAction * action);
66  virtual void GLRender(SoGLRenderAction * action);
67  virtual void rayPick(SoRayPickAction * action);
68  virtual void generatePrimitives(SoAction * action);
69  virtual void computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center);
70  virtual void write(SoWriteAction * action);
71 
72  virtual SbBool readInstance(SoInput * in, unsigned short flags);
73 
74 private:
75  friend class SoOrthoSliceP;
76  class SoOrthoSliceP * pimpl;
77 };
78 
79 #endif // !SIMVOLEON_SOORTHOSLICE_H

Copyright © 1998-2004 by Systems in Motion AS. All rights reserved.

Generated on Wed Jul 18 2012 20:32:32 for SIMVoleon by Doxygen. 1.8.1.1