Class SoImageVizEngineOutput<T extends SoSFFieldContainer,S extends SoFieldContainer>
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.engines.SoEngineOutput
-
- com.openinventor.imageviz.engines.SoImageVizEngineOutput<T,S>
-
- Direct Known Subclasses:
SoImageVizEngineAnalysisOutput
public class SoImageVizEngineOutput<T extends SoSFFieldContainer,S extends SoFieldContainer> extends SoEngineOutput
This class is similar to SoEngineOutput except that it keep a reference to output's value even if no one is connected. It allow to share output across multiple connections and provides direct access to the output without any engine connection by using the getValue() method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description S
getValue()
Returns the cached output value.static <V extends SoFieldContainer>
SoImageVizEngineOutput<? extends SoSFFieldContainer,V>newInstance(java.lang.Class<V> vClass, SoEngine engine, java.lang.String outputName)
Factory method to create a new imageviz engine output according its output type.void
setValue(S newValue)
Set the cached output value.-
Methods inherited from class com.openinventor.inventor.engines.SoEngineOutput
enable, getConnectionClass, getContainer, getNumConnections, isEnabled
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
newInstance
public static <V extends SoFieldContainer> SoImageVizEngineOutput<? extends SoSFFieldContainer,V> newInstance(java.lang.Class<V> vClass, SoEngine engine, java.lang.String outputName) throws java.lang.IllegalArgumentException
Factory method to create a new imageviz engine output according its output type.- Parameters:
vClass
- output type class.engine
- the container of this engine output.outputName
- the associated name to the output.- Returns:
- a new instance of an imageviz engine output.
- Throws:
java.lang.IllegalArgumentException
- if the output type is not supported.
-
getValue
public S getValue()
Returns the cached output value.- Returns:
- the cached output value.
-
setValue
public void setValue(S newValue)
Set the cached output value.- Parameters:
newValue
- the new cached output value.
-
-