SoSphere(3IV)
SoSphere (SoSphere) - sphere shape node
As shipped in IRIX 6.5.22. Added in IRIX 6.5.22.
NAME SoSphere (SoSphere) - sphere shape node INHERITS FROM SoBase > SoFieldContainer > SoNode > SoShape > SoSphere SYNOPSIS #include <Inventor_c/nodes/SoSphere.h> Fields from class SoSphere: SoSFFloat radius Functions from class SoSphere: SoSphere * SoSphereCreate() SoType SoSphereGetClassTypeId() Functions from class SoNode: void SoSphereSetOverride(SoSphere *this, SbBool state) SbBool SoSphereIsOverride(const SoSphere *this) SoNode * SoSphereCopy(const SoSphere *this, SbBool copyConnections = FALSE) SbBool SoSphereAffectsState(const SoSphere *this) SoNode * SoSphereGetByName(const char *name) int SoSphereGetByNameList(const char *name, SoNodeList *list) Functions from class SoFieldContainer: void SoSphereSetToDflts(SoSphere *this) SbBool SoSphereHasDfltVals(const SoSphere *this) SbBool SoSphereFldsAreEq(const SoSphere *this, const SoFieldContainer *fc) void SoSphereCopyFieldVals(SoSphere *this, const SoFieldContainer *fc, SbBool copyConnections = FALSE) SbBool SoSphereSet(SoSphere *this, const char *fieldDataString) void SoSphereGet(SoSphere *this, SbString *fieldDataString) int SoSphereGetFields(const SoSphere *this, SoFieldList *resultList) SoField * SoSphereGetField(const SoSphere *this, const char *fieldName) SbBool SoSphereGetFieldName(const SoSphere *this, const SoField *field, SbName *fieldName) SbBool SoSphereIsNotifyEnabled(const SoSphere *this) SbBool SoSphereEnableNotify(SoSphere *this, SbBool flag) Functions from class SoBase: void SoSphereRef(SoSphere *this) void SoSphereUnref(const SoSphere *this) void SoSphereUnrefNoDelete(const SoSphere *this) void SoSphereTouch(SoSphere *this) SoType SoSphereGetTypeId(const SoSphere *this) SbBool SoSphereIsOfType(const SoSphere *this, SoType type) void SoSphereSetName(SoSphere *this, const char *name) SbName SoSphereGetName(const SoSphere *this) DESCRIPTION This node represents a sphere. By default, the sphere is centered at the origin and has a radius of 1. The sphere is transformed by the current cumulative transformation and is drawn with the current lighting model, drawing style, material, and geometric complexity. A sphere does not have faces or parts. Therefore, the sphere ignores material and normal bindings, using the first material for the entire sphere and using its own normals. When a texture is applied to a sphere, the texture covers the entire surface, wrapping counterclockwise from the back of the sphere. The texture has a seam at the back on the yz-plane. FIELDS SoSFFloat radius Radius of sphere. This must be greater than 0. FUNCTIONS SoSphere * SoSphereCreate() Creates a sphere node with default settings. SoType SoSphereGetClassTypeId() Returns type identifier for this class. ACTION BEHAVIOR SoGLRenderAction Draws sphere based on the current coordinates, materials, drawing style, and so on. SoRayPickAction Intersects the ray with the sphere. No details are created for intersections. SoGetBoundingBoxAction Computes the bounding box that encloses the sphere. SoCallbackAction If any triangle callbacks are registered with the action, they will be invoked for each successive triangle that approximates the sphere. FILE FORMAT/DEFAULTS Sphere { radius 1 } SEE ALSO SoCone, SoCube, SoCylinder