Class SoImageVizEngineOutput<T extends SoSFFieldContainer,​S extends SoFieldContainer>

  • 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.
    • Method Detail

      • newInstance

        public static <V extends SoFieldContainerSoImageVizEngineOutput<? 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.