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

SoObliqueSlice.h
1 #ifndef SIMVOLEON_SOOBLIQUESLICE_H
2 #define SIMVOLEON_SOOBLIQUESLICE_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/fields/SoSFEnum.h>
28 #include <Inventor/fields/SoSFNode.h>
29 #include <Inventor/fields/SoSFPlane.h>
30 #include <Inventor/nodes/SoShape.h>
31 
32 #include <VolumeViz/C/basic.h>
33 
34 // *************************************************************************
35 
36 class SIMVOLEON_DLL_API SoObliqueSlice : public SoShape {
37  typedef SoShape inherited;
38 
39  SO_NODE_HEADER(SoObliqueSlice);
40 
41 public:
42  static void initClass(void);
43  SoObliqueSlice(void);
44 
45  enum Interpolation { NEAREST, LINEAR };
46  enum AlphaUse { ALPHA_AS_IS, ALPHA_OPAQUE, ALPHA_BINARY };
47 
48  SoSFPlane plane;
49  SoSFEnum interpolation;
50  SoSFEnum alphaUse;
51  SoSFNode alternateRep;
52 
53 protected:
54  ~SoObliqueSlice();
55 
56  virtual void GLRender(SoGLRenderAction * action);
57  virtual void rayPick(SoRayPickAction * action);
58  virtual void generatePrimitives(SoAction * action);
59  virtual void computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center);
60  virtual void write(SoWriteAction * action);
61 
62  virtual SbBool readInstance(SoInput * in, unsigned short flags);
63 
64 private:
65  friend class SoObliqueSliceP;
66  class SoObliqueSliceP * pimpl;
67 };
68 
69 #endif // !SIMVOLEON_SOOBLIQUESLICE_H
Interpolation
Definition: SoObliqueSlice.h:45
SoSFEnum alphaUse
Definition: SoObliqueSlice.h:50
AlphaUse
Definition: SoObliqueSlice.h:46
SoSFPlane plane
Definition: SoObliqueSlice.h:48
Definition: SoObliqueSlice.h:45
SoSFEnum interpolation
Definition: SoObliqueSlice.h:49
SoSFNode alternateRep
Definition: SoObliqueSlice.h:51
Render a slice of the volume data, with any orientation.
Definition: SoObliqueSlice.h:36

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

Generated on Fri Jul 31 2015 13:47:24 for SIMVoleon by Doxygen. 1.8.9.1