Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoImageVizEngine.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Sep 2013)
22**=======================================================================*/
23#ifndef _SO_IMAGEVIZ_ENGINE_H_
24#define _SO_IMAGEVIZ_ENGINE_H_
25
26#include <ImageViz/SoImageViz.h>
27
31#include <Inventor/SbEventArg.h>
32
33class SoImageVizEngineImpl;
34class SoDEPRECATED SoImageVizEngine : public SoEngine
46{
48
49public:
57 MODE_2D = 0,
61 MODE_3D = 1,
66 MODE_AUTO = 2
67 };
68
72 CONNECTIVITY_6 = 0,
74 CONNECTIVITY_18 = 1,
76 CONNECTIVITY_26 = 2
77 };
78
84 struct EventArg : public SbEventArg
85 {
86#if 1 SoDEPRECATED
90 {
91 return m_engine;
92 }
93#endif
96 SoImageVizEngine* getSource() const { return m_engine; }
97
99 float getProgress() const { return m_progress; }
100
102 EventArg( SoImageVizEngine* engine, float progress )
103 : m_engine( engine ), m_progress( progress )
104 { }
105
108
109 private:
111 SoImageVizEngine* m_engine;
112
114 float m_progress;
115 };
116
121
128
135
140 virtual void startEvaluate();
141
145 virtual void waitEvaluate();
146
150 virtual void abortEvaluate();
151
155 virtual bool isEvaluating();
156
157private:
159 static void initClass();
161 static void exitClass();
162
164 SoImageVizEngineImpl* getImpl() const
165 { return m_impl; }
166
167private:
169 virtual void evaluate();
170
172 virtual void inputChanged(SoField *);
173
175 SoImageVizEngine(SoImageVizEngineImpl* impl);
176
178 virtual ~SoImageVizEngine();
179
180private:
182 SoImageVizEngine() {};
183
184 SoImageVizEngineImpl* m_impl;
185};
186
187#endif
#define SO_ENGINE_ABSTRACT_HEADER(className)
Base class for all event arguments.
Definition SbEventArg.h:41
Class representing an event.
Base class for all engines.
Definition SoEngine.h:133
Base class for all fields.
Definition SoField.h:234
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...
virtual void abortEvaluate()
Abort current processing as soon as possible.
ComputeMode
Compute Mode This enum specifies whether the main input will be interpreted as a 3D volume or a stack...
Neighborhood3d
Neighborhood Connectivity 3D.
virtual void waitEvaluate()
Wait for the end of engine evaluation.
virtual void startEvaluate()
Evaluate engine and dependencies in another thread without blocking the current one.
SbEventHandler< EventArg & > onBegin
Event raised when the processing begins.
SbEventHandler< EventArg & > onProgress
Event raised while processing is running.
SbEventHandler< EventArg & > onEnd
Event raised when processing ends and the result is available.
virtual bool isEvaluating()
Returns true if the engine evaluation is in progress.
Structure given to callback when an event is raised.
EventArg(SoImageVizEngine *engine, float progress)
Default constructor.
SoImageVizEngine * getSource() const
Return the source engine that raised the event.
float getProgress() const
Return progress of processing.
SoDEPRECATED SoImageVizEngine * getEngine() const
Returns the engine that raised event.