---
name: "SoSFInt32"
section: "3iv"
platform: "linux"
package: "inventor-doc"
version: "2.1.6+ds-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SoSFInt32/3iv"
---

# SoSFInt32(3iv)

field containing a int32\_t integer

## NAME

SoSFInt32 — field containing a int32\_t integer

## INHERITS FROM

SoField \> SoSField \> SoSFInt32

## SYNOPSIS

**#include \<Inventor/fields/SoSFInt32.h\>**

Methods from class SoSFInt32:

**static SoType**	**getClassTypeId()**\
 **virtual void**	**getTypeId() const**\
 **int32\_t**	**getValue() const**\
 **int32\_t**	**operator =(int32\_t newValue)**\
 **void**	**setValue(int32\_t newValue)**\
 **int**	**operator ==(const SoSFInt32 &f) const**\
 **int**	**operator !=(const SoSFInt32 &f) const**

Methods from class SoField:

**void**	**setIgnored(SbBool ignore)**\
 **SbBool**	**isIgnored() const**\
 **SbBool**	**isDefault() const**\
 **virtual SbBool**	**isOfType(SoType type) const**\
 **SbBool**	**set(const char \*valueString)**\
 **void**	**get(SbString &valueString)**\
 **void**	**touch()**\
 **SbBool**	**connectFrom(SoField \*fromField)**\
 **SbBool**	**connectFrom(SoEngineOutput \*fromEngine)**\
 **void**	**disconnect()**\
 **SbBool**	**isConnected() const**\
 **SbBool**	**isConnectedFromField() const**\
 **SbBool**	**getConnectedField(SoField \*&writingField) const**\
 **SbBool**	**isConnectedFromEngine() const**\
 **SbBool**	**getConnectedEngine(SoEngineOutput \*&engineOutput) const**\
 **void**	**enableConnection(SbBool flag)**\
 **SbBool**	**isConnectionEnabled() const**\
 **int**	**getForwardConnections(SoFieldList &list) const**\
 **SoFieldContainer \***	**getContainer() const**

## DESCRIPTION

**A field containing a single long (32-bit) integer.**

**SoSFInt32s** are written to file as an integer in decimal, hexadecimal (beginning with '0x') or octal (beginning with '0') format.

## METHODS

**static SoType**	**getClassTypeId()**\
 **virtual void**	**getTypeId() const**\
 Returns the type for this class or a particular object of this class.

**int32\_t**	**getValue() const**\
 Returns this field's value.

**int32\_t**	**operator =(int32\_t newValue)**\
 **void**	**setValue(int32\_t newValue)**\
 Sets this field to **newValue**.

**int**	**operator ==(const SoSFInt32 &f) const**\
 **int**	**operator !=(const SoSFInt32 &f) const**\
 Returns TRUE if **f** is of the same type and has the same value as this field.

## SEE ALSO

**SoField, SoSField, SoMFInt32, SoSFUInt32**
