23#ifndef _SO_IMAGE_PROCESSING_OUTPUT_H_
24#define _SO_IMAGE_PROCESSING_OUTPUT_H_
35#ifndef HIDDEN_FROM_DOC
40template<
class OutputFieldType,
class OutputType>
class SoDEPRECATED ImageVizEngineOutputHelper
44 static OutputType
getValue(
const OutputFieldType *field)
46 return static_cast<OutputType
> ( field->getValue() );
85 assert(getContainer()!=NULL);
86 getContainer()->evaluateWrapper();
87 return ImageVizEngineOutputHelper<OutputFieldType, OutputType>::getValue(&m_data);
97 m_data.setValue( value );
102 virtual bool updateConnection()
107 int numConnectedField = getForwardConnections(connectedFieldList);
108 for (
int connectionIdx=0;connectionIdx<numConnectedField;++connectionIdx)
110 OutputFieldType* connectedField =
dynamic_cast<OutputFieldType*
>(connectedFieldList[connectionIdx]);
111 if ( connectedField )
113 if ( !connectedField->isReadOnly() )
114 connectedField->copyFrom(m_data);
127 OutputFieldType m_data;
129 friend class SoImageVizEngineOutputPrivateAccessor;
157 assert( getContainer() != NULL );
158 getContainer()->evaluateWrapper();
159 return static_cast< OutputType
>( m_data.getValues( 0 ) );
165 assert( getContainer() != NULL );
166 getContainer()->evaluateWrapper();
167 return m_data.getNum();
177 m_data.deleteValues( 0 );
178 m_data.setValues( 0,
size, value );
184 virtual bool updateConnection()
189 int numConnectedField = getForwardConnections( connectedFieldList );
190 for (
int connectionIdx = 0; connectionIdx < numConnectedField; ++connectionIdx )
192 OutputFieldType* connectedField =
dynamic_cast<OutputFieldType*
>( connectedFieldList[connectionIdx] );
193 if ( connectedField )
195 if ( !connectedField->isReadOnly() )
196 connectedField->copyFrom( m_data );
209 OutputFieldType m_data;
211 friend class SoImageVizEngineMFieldOutputPrivateAccessor;
valueRef getValue() const
static void post(const char *methodName, const char *formatString ...)
Posts an error.
Class for all engine outputs.
Maintains a list of pointers to fields.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Image Processing outpu...
virtual ~SoImageVizEngineMFieldOutput()
Destructor.
void setValue(OutputType value, int size)
Set the cached output value.
SoImageVizEngineMFieldOutput()
Constructor.
OutputType getValue() const
Return the cached output value.
size_t getSize() const
Return the cached output value.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Image Processing outpu...
virtual ~SoImageVizEngineOutput()
Destructor.
OutputType getValue() const
Return the cached output value.
void setValue(OutputType value)
Set the cached output value.
SoImageVizEngineOutput()
Constructor.