1SoSphere(3IV)()                                                SoSphere(3IV)()
2
3
4

NAME

6       SoSphere — sphere shape node
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoShape > SoSphere
10

SYNOPSIS

12       #include <Inventor/nodes/SoSphere.h>
13
14          Fields from class SoSphere:
15
16     SoSFFloat           radius
17
18          Methods from class SoSphere:
19
20                         SoSphere()
21     static SoType       getClassTypeId()
22
23          Methods from class SoNode:
24
25     void                setOverride(SbBool state)
26     SbBool              isOverride() const
27     SoNode *            copy(SbBool copyConnections = FALSE) const
28     virtual SbBool      affectsState() const
29     static SoNode *     getByName(const SbName &name)
30     static int          getByName(const SbName &name, SoNodeList &list)
31
32          Methods from class SoFieldContainer:
33
34     void                setToDefaults()
35     SbBool              hasDefaultValues() const
36     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
37     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
38                              copyConnections = FALSE)
39     SbBool              set(const char *fieldDataString)
40     void                get(SbString &fieldDataString)
41     virtual int         getFields(SoFieldList &resultList) const
42     virtual SoField *   getField(const SbName &fieldName) const
43     SbBool              getFieldName(const SoField *field, SbName &fieldName)
44                              const
45     SbBool              isNotifyEnabled() const
46     SbBool              enableNotify(SbBool flag)
47
48          Methods from class SoBase:
49
50     void                ref()
51     void                unref() const
52     void                unrefNoDelete() const
53     void                touch()
54     virtual SoType      getTypeId() const
55     SbBool              isOfType(SoType type) const
56     virtual void        setName(const SbName &name)
57     virtual SbName      getName() const
58
59

DESCRIPTION

61       This  node  represents  a sphere. By default, the sphere is centered at
62       the origin and has a radius of 1. The sphere is transformed by the cur‐
63       rent  cumulative  transformation and is drawn with the current lighting
64       model, drawing style, material, and geometric complexity.
65
66       A sphere does not have faces or parts. Therefore,  the  sphere  ignores
67       material  and  normal bindings, using the first material for the entire
68       sphere and using its own normals.  When  a  texture  is  applied  to  a
69       sphere,  the  texture covers the entire surface, wrapping counterclock‐
70       wise from the back of the sphere. The texture has a seam at the back on
71       the yz-plane.
72

FIELDS

74     SoSFFloat           radius
75          Radius of sphere. This must be greater than 0.
76
77

METHODS

79                         SoSphere()
80          Creates a sphere node with default settings.
81
82     static SoType       getClassTypeId()
83          Returns type identifier for this class.
84
85

ACTION BEHAVIOR

87       SoGLRenderAction
88          Draws  sphere  based  on the current coordinates, materials, drawing
89          style, and so on.
90
91     SoRayPickAction
92          Intersects the ray with the  sphere.  No  details  are  created  for
93          intersections.
94
95     SoGetBoundingBoxAction
96          Computes the bounding box that encloses the sphere.
97
98     SoCallbackAction
99          If  any triangle callbacks are registered with the action, they will
100          be invoked  for  each  successive  triangle  that  approximates  the
101          sphere.
102
103

FILE FORMAT/DEFAULTS

105       Sphere {
106          radius  1
107     }
108

SEE ALSO

110       SoCone, SoCube, SoCylinder
111
112
113
114
115                                                               SoSphere(3IV)()
Impressum