MeVisLab Toolbox Reference
SoMLTexture2.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef SO_MLTEXTURE2_H
14 #define SO_MLTEXTURE2_H
15 
16 #include "SoUtilsSystem.h"
17 #include <Inventor/nodes/SoTexture2.h>
18 #include <Inventor/fields/SoSFUInt32.h>
19 #include <SoSFMLImage.h>
20 
21 class SOUTILS_EXPORT SoMLTexture2 : public SoTexture2
22 {
23  typedef SoTexture2 inherited;
24 
25  SO_NODE_HEADER(SoMLTexture2);
26 
27  public:
28 
31 
33  SoSFUInt32 startZ;
34 
36  SoSFUInt32 startT;
37 
39  SoSFUInt32 startU;
40 
43 
44  SoINTERNAL public:
45 
47  static void initClass();
48 
49  protected:
50 
52  ~SoMLTexture2() override;
53 
54  private:
55 
56  void mlImageChangedCB(SoField* field);
57 };
58 
59 #endif // _SO_ML_TEXTURE_2_
#define SOUTILS_EXPORT
System dependent includes. Disables some compiler/linker warnings.
Definition: SoUtilsSystem.h:31
SoMLTexture2()
Constructor.
SoSFMLImage mlImage
ML image connector.
Definition: SoMLTexture2.h:30
SoSFUInt32 startT
Origin of the 2d slice in T dimension. Default is 0.
Definition: SoMLTexture2.h:36
static void initClass()
Initialize class with runtime type system.
SoSFUInt32 startZ
Origin of the 2d slice in Z dimension. Default is 0.
Definition: SoMLTexture2.h:33
SoSFUInt32 startU
Origin of the 2d slice in U dimension. Default is 0.
Definition: SoMLTexture2.h:39
~SoMLTexture2() override
Destructor.
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
Definition: SoSFMLImage.h:70