SoSFName Class Reference
[Fields]

Field containing a name. More...

#include <Inventor/fields/SoSFName.h>

Inheritance diagram for SoSFName:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFNameoperator= (const SoSFName &f)
 SoSFName ()
virtual ~SoSFName ()
const SbNamegetValue () const
void setValue (const SbName &newValue)
const SbNameoperator= (const SbName &newValue)
int operator== (const SoSFName &f) const
int operator!= (const SoSFName &f) const
virtual size_t getValueSize () const
void setValue (const char *string)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Field containing a name.

A field containing a name. Names are short series of characters generally used for labels or names, and are stored in a special table designed to allow fast lookup and comparison. For most purposes, an SoSFString field is probably more appropriate.

SoSFNames are written to file as a string of characters. Names must begin with an underscore or alphabetic character, and must consist entirely of underscores, alphabetic characters, or numbers.

SEE ALSO

SoField, SoSField, SoMFName


Constructor & Destructor Documentation

SoSFName::SoSFName (  ) 

Default constructor.

virtual SoSFName::~SoSFName (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoSFName::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoSField.

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

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbName& SoSFName::getValue (  )  const [inline]

Returns this field's value.

virtual size_t SoSFName::getValueSize (  )  const [inline, virtual]

Get size of the value.

Reimplemented from SoField.

int SoSFName::operator!= ( const SoSFName f  )  const [inline]

Returns FALSE if otherField is of the same type and has the same value as this field.

Reimplemented from SoField.

const SbName& SoSFName::operator= ( const SbName newValue  )  [inline]

Sets this field to newValue.

const SoSFName& SoSFName::operator= ( const SoSFName f  ) 

Copy from another field of same type.

int SoSFName::operator== ( const SoSFName f  )  const

Returns TRUE if otherField is of the same type and has the same value as this field.

Reimplemented from SoField.

void SoSFName::setValue ( const char *  string  ) 

Sets this field to the name equivalent to the given string.

void SoSFName::setValue ( const SbName newValue  ) 

Sets this field to newValue.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/