1SoPrimitiveVertex(3IV)()                              SoPrimitiveVertex(3IV)()
2
3
4

NAME

6       SoPrimitiveVertex — represents a vertex of a generated primitive
7

INHERITS FROM

9       SoPrimitiveVertex
10

SYNOPSIS

12       #include <Inventor/SoPrimitiveVertex.h>
13
14          Methods from class SoPrimitiveVertex:
15
16                          SoPrimitiveVertex()
17                          SoPrimitiveVertex(const SoPrimitiveVertex &pv)
18                          ~SoPrimitiveVertex()
19     const SbVec3f &      getPoint() const
20     const SbVec3f &      getNormal() const
21     const SbVec4f &      getTextureCoords() const
22     int                  getMaterialIndex() const
23     const SoDetail *     getDetail() const
24     SoPrimitiveVertex &  operator =(const SoPrimitiveVertex &pv)
25
26

DESCRIPTION

28       An SoPrimitiveVertex represents a vertex of a primitive (triangle, line
29       segment, or point) that is being generated by an  SoCallbackAction.  It
30       contains  an  object-space point, normal, texture coordinates, material
31       index, and a pointer to an  instance  of  an  SoDetail  subclass.  This
32       detail  may contain more information about the vertex, or may be a NULL
33       pointer if there is no such info.
34
35       Instances of SoPrimitiveVertex are typically created on  the  stack  by
36       shape classes while they are generating primitives. Anyone who wants to
37       save them as return values from SoCallbackAction should  probably  make
38       copies of them.
39

METHODS

41                          SoPrimitiveVertex()
42                          SoPrimitiveVertex(const SoPrimitiveVertex &pv)
43                          ~SoPrimitiveVertex()
44          Constructors  and  destructor.  Note that copying a primitive vertex
45          copies the detail pointer, and not the detail itself.
46
47     const SbVec3f &      getPoint() const
48     const SbVec3f &      getNormal() const
49     const SbVec4f &      getTextureCoords() const
50          These return the surface point, normal, and texture  coordinates  in
51          object space.
52
53     int                  getMaterialIndex() const
54          Returns  the index into the current set of materials of the material
55          active at the vertex.
56
57     const SoDetail *     getDetail() const
58          Returns the detail giving more information about  the  vertex.  Note
59          that this pointer may be NULL if there is no more info.
60
61     SoPrimitiveVertex &  operator =(const SoPrimitiveVertex &pv)
62          Copies the given vertex. Note that just the pointer to the detail is
63          copied, and not the detail itself.
64
65
66
67
68                                                      SoPrimitiveVertex(3IV)()
Impressum