SoSelectOne Class Reference

Selects one value from a multiple-value field. More...

#include <Inventor/engines/SoSelectOne.h>

Inheritance diagram for SoSelectOne:
SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoSelectOne (SoType mfInputType)

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFInt32 index

Detailed Description

Selects one value from a multiple-value field.

This engine selects a single value from a multiple-value field, based on the input field index. The type of the input field can be any subclass of SoMField, and the type of the output is the corresponding subclass of SoSField. For example, if the input type is SoMFVec3f, the output type will be SoSFVec3f. The type is specified when an instance of the class is created. For example, SoSelectOne( SoMFFloat::getClassTypeId() ) creates an engine that selects one floating-point value.

Note that by default input does not contain any values, and no value is output from the engine.

Note that unlike most other engine fields, the input field and output are pointers.



SoEngineOutput, SoConcatenate, SoGate

Constructor & Destructor Documentation

SoSelectOne::SoSelectOne ( SoType  mfInputType  ) 


The argument specifies the type of the multiple-value input field.

Member Function Documentation

static SoType SoSelectOne::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoEngine.

virtual SoType SoSelectOne::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.

Member Data Documentation

Index of the value to select from the multiple-value field.

The multiple-value field from which the value will be selected.

( lt ) The single value selected.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 1 Nov 2022
Copyright © Thermo Fisher Scientific All rights reserved.