SoPrimitiveVertex - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin

NAMESoPrimitiveVertex − The SoPrimitiveVertex class represents a single vertex of a generated primitive​.

SYNOPSIS
#include <Inventor/SoPrimitiveVertex​.h>

Public Member FunctionsSoPrimitiveVertex (void)
SoPrimitiveVertex (const SoPrimitiveVertex &pv)
~SoPrimitiveVertex (void)
const SbVec3f & getPoint (void) const
const SbVec3f & getNormal (void) const
const SbVec4f & getTextureCoords (void) const
int getMaterialIndex (void) const
const SoDetail * getDetail (void) const
SoPrimitiveVertex & operator= (const SoPrimitiveVertex &pv)
void setPoint (const SbVec3f &point)
void setPoint (float x, float y, float z)
void setNormal (const SbVec3f &normal)
void setNormal (float nx, float ny, float nz)
void setTextureCoords (const SbVec2f &texcoords)
void setTextureCoords (float tx, float ty)
void setTextureCoords (const SbVec3f &texcoords)
void setTextureCoords (float tx, float ty, float tz)
void setTextureCoords (const SbVec4f &texcoords)
void setTextureCoords (float tx, float ty, float tz, float tw)
void setMaterialIndex (const int index)
void setDetail (SoDetail *const d)

Detailed DescriptionThe SoPrimitiveVertex class represents a single vertex of a generated primitive​. Instances of SoPrimitiveVertex are constructed when generating primitive data, primarily during an SoCallbackAction traversal​. Depending on the context the vertex could represent a single 3D point, one of the two vertices in a line or one of the three vertices in a triangle​.

Constructor & Destructor Documentation

SoPrimitiveVertex::SoPrimitiveVertex (void)Default constructor, sets up a 'void' instance​.

SoPrimitiveVertex::SoPrimitiveVertex (const SoPrimitiveVertex & pv)Copy constructor​. Does a shallow copy​. See also SoPrimitiveVertex::operator=()

SoPrimitiveVertex::~SoPrimitiveVertex (void)Destructor​. The detail instance is owned by client code and will not be destructed here​.

Member Function Documentation

const SbVec3f & SoPrimitiveVertex::getPoint (void) constReturns vertex coordinates, positioned in object space​. Referenced by SoShape::invokeLineSegmentCallbacks(), SoShape::invokePointCallbacks(), and SoShape::invokeTriangleCallbacks()​.

const SbVec3f & SoPrimitiveVertex::getNormal (void) constReturns normal vector, oriented in object space​. Referenced by SoShape::invokeLineSegmentCallbacks(), SoShape::invokePointCallbacks(), and SoShape::invokeTriangleCallbacks()​.

const SbVec4f & SoPrimitiveVertex::getTextureCoords (void) constReturns texture coordinates for vertex, specified in object space​. Referenced by SoShape::invokeLineSegmentCallbacks(), SoShape::invokePointCallbacks(), and SoShape::invokeTriangleCallbacks()​.

int SoPrimitiveVertex::getMaterialIndex (void) constReturns index of the vertex into the currently active material, if any​. Referenced by SoVRMLIndexedLineSet::generatePrimitives(), SoShape::invokeLineSegmentCallbacks(), SoShape::invokePointCallbacks(), and SoShape::invokeTriangleCallbacks()​.

const SoDetail * SoPrimitiveVertex::getDetail (void) constReturns pointer to detail instance with more information about the vertex​. A detail instance may not be available, and if so NULL is returned​. Referenced by SoShape::createPointDetail(), SoAsciiText::createTriangleDetail(), and SoText3::createTriangleDetail()​.

SoPrimitiveVertex & SoPrimitiveVertex::operator= (const SoPrimitiveVertex & pv)Copy operator​. When pv is copied into this instance, a shallow copy is made​. Ie, only the reference to the detail instance is copied (if any), not the detail itself​.

void SoPrimitiveVertex::setPoint (const SbVec3f & pointref)Used internally from library client code setting up an SoPrimitiveVertex instance​. Referenced by SoAsciiText::generatePrimitives(), SoFaceSet::generatePrimitives(), SoImage::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoPointSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), SoVRMLExtrusion::generatePrimitives(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLIndexedLineSet::generatePrimitives(), SoVRMLPointSet::generatePrimitives(), SoVRMLText::generatePrimitives(), and SoShape::generateVertex()​.

void SoPrimitiveVertex::setPoint (float x, float y, float z) [inline]Used internally from library client code setting up an SoPrimitiveVertex instance​. References SbVec3f::setValue()​.

void SoPrimitiveVertex::setNormal (const SbVec3f & normalref)Used internally from library client code setting up an SoPrimitiveVertex instance​. Referenced by SoAsciiText::generatePrimitives(), SoFaceSet::generatePrimitives(), SoImage::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoPointSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), SoVRMLExtrusion::generatePrimitives(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLText::generatePrimitives(), and SoShape::generateVertex()​.

void SoPrimitiveVertex::setNormal (float nx, float ny, float nz) [inline]Used internally from library client code setting up an SoPrimitiveVertex instance​.

void SoPrimitiveVertex::setTextureCoords (const SbVec2f & texcoords)Used internally from library client code setting up an SoPrimitiveVertex instance​. Covenience function​. Will fill in 0 and 1 in the last two texture coords in the internal SbVec4f texture coordinate instance​. Referenced by SoAsciiText::generatePrimitives(), SoFaceSet::generatePrimitives(), SoImage::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoPointSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), SoVRMLExtrusion::generatePrimitives(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLText::generatePrimitives(), and SoShape::generateVertex()​.

void SoPrimitiveVertex::setTextureCoords (float tx, float ty) [inline]Used internally from library client code setting up an SoPrimitiveVertex instance​. Covenience function​. Will fill in 0 and 1 in the last two texture coords in the internal SbVec4f texture coordinate instance​. Since Coin 2​.5

void SoPrimitiveVertex::setTextureCoords (const SbVec3f & texcoords)Covenience function​. Will fill in 1 in the last coord​. 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

void SoPrimitiveVertex::setTextureCoords (float tx, float ty, float tz) [inline]Covenience function​. Will fill in 1 in the last coord​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Since Coin 2​.5

void SoPrimitiveVertex::setTextureCoords (const SbVec4f & texcoords)Used internally from library client code setting up an SoPrimitiveVertex instance​.

void SoPrimitiveVertex::setTextureCoords (float tx, float ty, float tz, float tw) [inline]Covenience function​. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Since Coin 2​.5

void SoPrimitiveVertex::setMaterialIndex (const int index)Used internally from library client code setting up an SoPrimitiveVertex instance​. Referenced by SoAsciiText::generatePrimitives(), SoFaceSet::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoPointSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLIndexedLineSet::generatePrimitives(), SoVRMLPointSet::generatePrimitives(), and SoVRMLText::generatePrimitives()​.

void SoPrimitiveVertex::setDetail (SoDetail *const detailptr)Used internally from library client code setting up an SoPrimitiveVertex instance​. Note that it's the client's responsibility to do the deallocation of the detail instance after the SoPrimitiveVertex instance has gone out of scope​. Referenced by SoAsciiText::generatePrimitives(), SoFaceSet::generatePrimitives(), SoIndexedFaceSet::generatePrimitives(), SoIndexedTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoPointSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoVRMLElevationGrid::generatePrimitives(), SoVRMLIndexedFaceSet::generatePrimitives(), SoVRMLIndexedLineSet::generatePrimitives(), SoVRMLPointSet::generatePrimitives(), and SoVRMLText::generatePrimitives()​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   36,272 byte
man-SoPrimitiveVertex.3coin2Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 202,382
Visitor ID   :     :  
Visitor IP   :   3.21.12.122   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.