Debian Codegraph @

doc/man/man3/ivm/engines/SoSelectOne.ivm

raw
1 NAME SoSelectOne SoSelOne "" {
2 selects one value from a multiple-value field.
3 }
4
5 DESC {
6 This engine selects a single value from a multiple-value field,
7 based on the input field \vindex\..
8 The type of the input field can be any subclass of \cSoMField\.,
9 and the type of the output is the corresponding subclass of
10 \cSoSField\.. For example, if the input type is \cSoMFVec3f\., the
11 output type will be \cSoSFVec3f\..
12 The type is specified when an instance of the class is created.
13 For example,
14 \+\cSoSelectOne(SoMFFloat::getClassTypeId())\.\.
15 \-\cSoSelOneCreate(SoMFloatGetClassTypeId())\.\.
16 creates an engine that selects one floating-point value.
17 \p
18 Note that unlike most other engine fields, the \vinput\. field and
19 \voutput\. are pointers.
20 Note also that by default \vinput\. does not contain any values,
21 and no value is output from the engine.
22 }
23
24
25 INCLUDE engines/SoSelectOne.h
26
27 INPUT index { Index of the value to select from the multiple-value field. }
28 INPUT input { The multiple-value field from which the value will be selected. }
29
30 OUTPUT output { The single value selected. }
31
32 METHOD SoSelOneCreate SoSelectOne(SoType inputType)
33 { Constructor. The argument specifies the type of the multiple-value
34 input field. }
35
36
37 ALSO { SoEngineOutput, SoConcatenate, SoGate }