SOMFVEC4F(3iv)
β¨ SoMFVec4f(3IV) β¨
okay bestie, welcome to the manual page for SoMFVec4f β that's the title, that's the manual (3IV), and yes we're doing the whole thing together. grab a snack π
π NAME π
SoMFVec4f β a multiple-value field containing any number of four-dimensional vectors. that's her. that's the whole vibe. π
πΈ INHERITS FROM πΈ
SoField > SoMField > SoMFVec4f
she comes from a whole line of iconic ancestors, we love a family tree π
β¨ SYNOPSIS β¨
#include <Inventor/fields/SoMFVec4f.h>
π«Ά Methods from class SoMFVec4f π«Ά
void setValues(int start, int num, const float xyzw[][4])
void set1Value(int index, float x, float y, float z, float
w)
void set1Value(int index, const float xyzw[4])
void setValue(float x, float y, float z, float w)
void setValue(const float xyzw[4])
static SoType getClassTypeId()
virtual void getTypeId() const
const SbVec4f & operator [](int i) const
const SbVec4f * getValues(int start) const
int find(const SbVec4f & targetValue, SbBool addIfNotFound
= FALSE)
void setValues(int start, int num, const SbVec4f
*newValues)
void set1Value(int index, const SbVec4f & newValue)
const SbVec4f & operator =(const SbVec4f & newValue)
void setValue(const SbVec4f & newValue)
int operator ==(const SoMFVec4f &f) const
int operator !=(const SoMFVec4f &f) const
SbVec4f * startEditing()
void finishEditing()
π Methods from class SoMField π
int getNum() const
void setNum(int num)
virtual void deleteValues(int start, int num = -1)
virtual void insertSpace(int start, int num)
SbBool set1(int index, const char *valueString)
void get1(int index, SbString &valueString)
π¦ 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 π
so what is she? a multiple-value field that contains any number of four-dimensional vectors. lowkey simple, highkey powerful. πͺ
SoMFVec4fs are written to file as one or more triples of floating point values separated by whitespace. (yep β the page says triples, bestie, i'm quoting it exactly π«Ά)
when more than one value is present, all of the values are enclosed in square brackets and separated by commas, like:
[ 0 0 0, 1.2 3.4 5.6, 98.6 -4e1 212 ]
look at her go β¨
π METHODS π
void setValues(int start, int num, const float xyzw[][4])β setsnumvalues starting at indexstartto the given floating point values. and heads up: there must benum*4values in the passed array, no cap. πvoid set1Value(int index, float x, float y, float z, float w)void set1Value(int index, const float xyzw[4])β sets theindex'th value to the given floating point values. just the one, bestie. πvoid setValue(float x, float y, float z, float w)void setValue(const float xyzw[4])β sets the field to contain the given value and only the given value. if the array had multiple values before? they're deleted. gone. bye. it's giving main character energy only. πstatic SoType getClassTypeId()virtual void getTypeId() constβ returns the type for this class, or for a particular object of this class. it's giving "who am i" but make it typed. βconst SbVec4f & operator [](int i) constβ returns thei'th value of the field. β οΈ but indexing past the end of the field (passing inigreater thangetNum()) will return garbage. not a cute surprise, just garbage. don't do it. ποΈconst SbVec4f * getValues(int start) constβ returns a pointer into the array of values in the field, starting at indexstart. these values are read-only, bestie β if you wanna modify values in place, go see thestartEditing()/finishEditing()methods. πint find(const SbVec4f & targetValue, SbBool addIfNotFound = FALSE)β finds the given value in the array and returns the index of that value in the array. if the value is not found,-1is returned. ifaddIfNotFoundis set, thentargetValueis added to the end of the array (but-1is still returned). yes she adds it and still tells you she didn't find it. iconic behaviour honestly. πvoid setValues(int start, int num, const SbVec4f *newValues)β setsnumvalues starting at indexstartto the values innewValues. the array will automatically be made larger to accomodate the new values, if necessary. she grows for you, no notes. π±void set1Value(int index, const SbVec4f & newValue)β sets theindex'th value in the array tonewValue. the array will be automatically expanded, if necessary. β¨const SbVec4f & operator =(const SbVec4f & newValue)void setValue(const SbVec4f & newValue)β sets the first value in the array tonewValue, and deletes the second and subsequent values. first place only, everyone else pack it up. πint operator ==(const SoMFVec4f &f) constint operator !=(const SoMFVec4f &f) constβ returnsTRUEif all of the values of this field equal (do not equal) those of the given field. if the fields are different types,FALSEwill always be returned β even if one field is anSoMFFloatwith one value of1.0and the other is anSoMFIntwith a value of1, for example. no cross-type romances here, she's strict. π«πSbVec4f * startEditing()void finishEditing()βstartEditing()returns a pointer to the internally-maintained array that can be modified. the values in the array may be changed, but values cannot be added or removed. and it is illegal to call any other editing methods betweenstartEditing()andfinishEditing()(e.g.set1Value(),setValue(), etc). do not test her. π¨
fields, engines or sensors connected to this field and sensors are not notified that this field has changed until finishEditing() is called. calling finishEditing() always sets the isDefault() flag to FALSE and informs engines and sensors that the field changed β even if none of the values actually were changed. she's telling everyone regardless, and honestly? respect. π£
and that's the whole page, bestie!! every flag, every signature, every warning, all of it, slayed. π
the lil stamp at the bottom of this page reads SoMFVec4f(3IV) β that's the source/version she's filed under, with no date attached (timeless, fr fr). mwah, go forth and set some vectors π§β¨
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms