1 #ifndef COIN_SOPRIMITIVEVERTEX_H 2 #define COIN_SOPRIMITIVEVERTEX_H 36 #include <Inventor/SbVec2f.h> 37 #include <Inventor/SbVec3f.h> 38 #include <Inventor/SbVec4f.h> 39 #include <Inventor/system/inttypes.h> 59 void setPoint(
float x,
float y,
float z) { point.setValue(x, y, z); }
61 void setNormal(
float nx,
float ny,
float nz) { normal.setValue(nx, ny, nz); }
63 void setTextureCoords(
float tx,
float ty) { textureCoords.setValue(tx, ty, 0.0f, 1.0f); }
65 void setTextureCoords(
float tx,
float ty,
float tz) { textureCoords.setValue(tx, ty, tz, 1.0f); }
67 void setTextureCoords(
float tx,
float ty,
float tz,
float tw) { textureCoords.
setValue(tx, ty, tz, tw); }
83 #endif // !COIN_SOPRIMITIVEVERTEX_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec2f.h:49
The SoPrimitiveVertex class represents a single vertex of a generated primitive.Instances of SoPrimit...
Definition: SoPrimitiveVertex.h:43
The SbVec4f class is a 4 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec4f.h:49
void setMaterialIndex(int index)
Definition: SoPrimitiveVertex.h:69
SbVec4f & setValue(const float v[4])
Definition: SbVec4f.h:59
void setTextureCoords(const SbVec3f &tex)
Definition: SoPrimitiveVertex.h:64
void setTextureCoords(const SbVec2f &tex)
Definition: SoPrimitiveVertex.h:62
void setNormal(float nx, float ny, float nz)
Definition: SoPrimitiveVertex.h:61
void setNormal(const SbVec3f &n)
Definition: SoPrimitiveVertex.h:60
const SbVec3f & getPoint(void) const
Definition: SoPrimitiveVertex.h:51
void setPackedColor(uint32_t rgba)
Definition: SoPrimitiveVertex.h:70
void setPoint(const SbVec3f &pt)
Definition: SoPrimitiveVertex.h:58
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
void setTextureCoords(const SbVec4f &tex)
Definition: SoPrimitiveVertex.h:66
void setTextureCoords(float tx, float ty)
Definition: SoPrimitiveVertex.h:63
const SbVec4f & getTextureCoords(void) const
Definition: SoPrimitiveVertex.h:53
const SbVec3f & getNormal(void) const
Definition: SoPrimitiveVertex.h:52
const SoDetail * getDetail(void) const
Definition: SoPrimitiveVertex.h:56
void setDetail(SoDetail *d)
Definition: SoPrimitiveVertex.h:71
void setTextureCoords(float tx, float ty, float tz)
Definition: SoPrimitiveVertex.h:65
int getMaterialIndex(void) const
Definition: SoPrimitiveVertex.h:54
void setPoint(float x, float y, float z)
Definition: SoPrimitiveVertex.h:59
uint32_t getPackedColor(void) const
Definition: SoPrimitiveVertex.h:55
The SoDetail class is the superclass for all classes storing detailed information about particular sh...
Definition: SoDetail.h:39