SoTextureC...ateElement(3)
π¦ NAME π¦
SoTextureCoordinateElement β the class that is, and I quote the devs here, "yet to be documented." π no cap. That's the whole name section. We move.
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoTextureCoordinateElement.h>
Inherits SoReplacedElement.
Inherited by SoGLTextureCoordinateElement.
π Public Types π
enum CoordType { NONE = 0, TEXGEN = 0, EXPLICIT = 1, FUNCTION = 2,
DEFAULT = 3 }
πΈ Public Member Functions πΈ
virtual void init (SoState *state)βFIXME: write doc.virtual CoordType getType (void) constβFIXME: write doc.const SbVec4f & get (const SbVec3f &point, const SbVec3f &normal) constβ yeah bestie, that's the whole thing, no blurb attached.int32_t getNum (void) constβFIXME: write doc.SbBool is2D (void) constβFIXME: write doc.(for backwards compability. UsegetDimension()instead).int32_t getDimension (void) constβ no extra note on this one, just the signature.const SbVec2f & get2 (const int index) constβFIXME: write doc.const SbVec3f & get3 (const int index) constβ just vibes, no doc text.const SbVec4f & get4 (const int index) constβFIXME: write doc.const SbVec2f * getArrayPtr2 (void) constβ no accompanying text, sorry bestie.const SbVec3f * getArrayPtr3 (void) constβ nothing here either.const SbVec4f * getArrayPtr4 (void) constβ also blank.
π Public Member Functions inherited from SoReplacedElement π
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo () constuint32_t getNodeId () constvirtual void print (FILE *file) const
π Public Member Functions inherited from SoElement π
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void setDepth (const int depth)int getDepth (void) constvirtual ~SoElement ()
π Static Public Member Functions π
static SoType getClassTypeId (void)β no blurb, just a signature living its truth.static int getClassStackIndex (void)β same deal.static void * createInstance (void)β same deal.static void initClass (void)β same deal.static void setDefault (SoState *const state, SoNode *const node)βFIXME: write doc.static void setFunction (SoState *const state, SoNode *const node, SoTextureCoordinateFunctionCB *const func, void *const userdata)βFIXME: write doc.static void set2 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec2f *const coords)βFIXME: write doc.static void set3 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec3f *const coords)β bare signature, no notes.static void set4 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec4f *const coords)βFIXME: write doc.static CoordType getType (SoState *const state)β bare signature.static const SoTextureCoordinateElement * getInstance (SoState *const state)βFIXME: write doc.
π§ Static Public Member Functions inherited from SoReplacedElement π§
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)
π§ Static Public Member Functions inherited from SoElement π§
static void initClass (void)static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initElements (void)static int getNumStackIndices (void)static SoType getIdFromStackIndex (const int stackIndex)
π Protected Member Functions π
virtual ~SoTextureCoordinateElement ()β that's it, that's the list.
π«Ά Protected Member Functions inherited from SoReplacedElement π«Ά
virtual ~SoReplacedElement ()
π«Ά Protected Member Functions inherited from SoElement π«Ά
SoElement (void)void capture (SoState *const state) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π Protected Attributes π
CoordType whatKindSoTextureCoordinateFunctionCB * funcCBvoid * funcCBDataint32_t numCoordsconst SbVec2f * coords2const SbVec3f * coords3const SbVec4f * coords4SbBool coordsDimensionSbVec2f convert2SbVec3f convert3SbVec4f convert4
β Protected Attributes inherited from SoReplacedElement β
uint32_t nodeId
β Protected Attributes inherited from SoElement β
SoType typeIdint stackIndexint depth
π Additional Inherited Members π
π₯ Static Protected Member Functions inherited from SoReplacedElement π₯
static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
π₯ Static Protected Member Functions inherited from SoElement π₯
static SoElement * getElement (SoState *const state, const int stackIndex)static const SoElement * getConstElement (SoState *const state, const int stackIndex)static int createStackIndex (const SoType id)
π₯ Static Protected Attributes inherited from SoElement π₯
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
So the SoTextureCoordinateElement class is, in the official words, "yet to be documented." π
FIXME: write doc.
Heads up bestie: be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. That's a real thing, don't get caught lacking.
Since : Coin 2.2
FIXME: write doc.
π Member Enumeration Documentation π
enum SoTextureCoordinateElement::CoordType
FIXME: write doc.
π¦ Constructor & Destructor Documentation π¦
SoTextureCoordinateElement::~SoTextureCoordinateElement () [protected], [virtual]
The destructor. That's the whole note. Short queen. π
β¨ Member Function Documentation β¨
void * SoTextureCoordinateElement::createInstance (void ) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. iykyk β if you're reaching for this, maybe don't.
void SoTextureCoordinateElement::initClass (void ) [static]
This static method initializes static data for the SoTextureCoordinateElement class. Iconic little housekeeping moment. β¨
void SoTextureCoordinateElement::init (SoState * state) [virtual]
FIXME: write doc.
- Reimplemented from SoReplacedElement.
- Reimplemented in SoGLTextureCoordinateElement.
void SoTextureCoordinateElement::set3 (SoState *const state, SoNode *const node, const int32_t numCoords, const SbVec3f *const coords) [static]
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
SoTextureCoordinateElement::CoordType SoTextureCoordinateElement::getType (SoState *const state) [static]
This method is used by shapes. Three return values are possible, and here they are, no gatekeeping:
- DEFAULT means that the shapes should generate their own texture coordinates.
- EXPLICIT means that discrete texture coordinates are stored, and should be fetched with
get2(),get3()orget4(). - FUNCTION means that
get(point, normal)must be used to generate texture coordinates.
SoTextureCoordinateElement::CoordType SoTextureCoordinateElement::getType (void ) const [virtual]
FIXME: write doc.
- Reimplemented in SoGLTextureCoordinateElement.
const SbVec4f & SoTextureCoordinateElement::get (const SbVec3f & point, const SbVec3f & normal) const
This method returns texture coordinate for the given point and normal. The coordinate is returned as a 4D vector where the r and q coordinates may be set to 0 and 1 respecively depending on what texture coordinate dimension we're using. (Yes, "respecively" β we keep the original spelling bestie, we don't touch the lore. π)
Important: this method should only be used if the CoordType is FUNCTION. Otherwise? don't. π«
int32_t SoTextureCoordinateElement::getDimension (void ) const
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
const SbVec3f & SoTextureCoordinateElement::get3 (const int index) const
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
const SbVec2f * SoTextureCoordinateElement::getArrayPtr2 (void ) const
Returns a pointer to the 2D texture coordinate array. This method is not part of the OIV API. π
const SbVec3f * SoTextureCoordinateElement::getArrayPtr3 (void ) const
Returns a pointer to the 3D texture coordinate array.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
const SbVec4f * SoTextureCoordinateElement::getArrayPtr4 (void ) const
Returns a pointer to the 4D texture coordinate array. This method is not part of the OIV API. π
πΈ Member Data Documentation πΈ
CoordType SoTextureCoordinateElement::whatKind [protected]
FIXME: write doc.
SoTextureCoordinateFunctionCB* SoTextureCoordinateElement::funcCB [protected]
FIXME: write doc.
void* SoTextureCoordinateElement::funcCBData [protected]
FIXME: write doc.
int32_t SoTextureCoordinateElement::numCoords [protected]
FIXME: write doc.
const SbVec2f* SoTextureCoordinateElement::coords2 [protected]
FIXME: write doc.
const SbVec3f* SoTextureCoordinateElement::coords3 [protected]
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
const SbVec4f* SoTextureCoordinateElement::coords4 [protected]
FIXME: write doc.
SbBool SoTextureCoordinateElement::coordsDimension [protected]
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
SbVec2f SoTextureCoordinateElement::convert2 [protected]
FIXME: write doc.
SbVec3f SoTextureCoordinateElement::convert3 [protected]
FIXME: write doc.
Coin-only alert: this function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since : Coin 2.0
SbVec4f SoTextureCoordinateElement::convert4 [protected]
FIXME: write doc.
π Author π
Generated automatically by Doxygen for Coin from the source code. It's giving β¨ machine-written β¨ and honestly? respect.
okay that's the whole page bestie, we ate and left no crumbs π
β this one came from Coin, Version 3.1.3, and it's the SoTextureC...ateElement(3) page from the Library Functions Manual. mwah π«Άπ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms