SoVRMLSpotLight Class |
Note: This API is now obsolete.
Node representing a spotlight source.
Namespace: OIV.Inventor.VRMLnodes
The SoVRMLSpotLight type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoVRMLSpotLight | Constructor. |
Name | Description | |
---|---|---|
![]() | AffectsState | Returns true if a node has an effect on the state during traversal. |
![]() | Callback | (Inherited from SoNode.) |
![]() | Copy | Calls Copy(false). (Inherited from SoNode.) |
![]() | Copy(Boolean) | Creates and returns an exact copy of the node. |
![]() | CopyFieldValues(SoFieldContainer) | Calls CopyFieldValues(fc, false). (Inherited from SoFieldContainer.) |
![]() | CopyFieldValues(SoFieldContainer, Boolean) | Copies the contents of fc's fields into this object's fields. |
![]() | Dispose |
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.) |
![]() | Distribute | (Inherited from SoNode.) |
![]() | DoAction | (Inherited from SoNode.) |
![]() | EnableNotify | Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false). |
![]() | Equals | (Inherited from Object.) |
![]() | FieldsAreEqual | Returns true if this object's fields are exactly equal to fc's fields. |
![]() | Get | Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string. |
![]() | GetAllFields | Returns a list of fields, including the eventIn's and eventOut's. |
![]() | GetAlternateRep | This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type). |
![]() | GetBoundingBox | (Inherited from SoNode.) |
![]() | GetEventIn | Returns a the eventIn with the given name. |
![]() | GetEventOut | Returns the eventOut with the given name. |
![]() | GetField | Returns a the field of this object whose name is fieldName. |
![]() | GetFieldName | Returns the name of the given field in the fieldName argument. |
![]() | GetFields | Appends references to all of this object's fields to resultList, and returns the number of fields appended. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetMatrix | (Inherited from SoNode.) |
![]() | GetName | Returns the name of an instance. |
![]() | GetPrimitiveCount | (Inherited from SoNode.) |
![]() | GetRenderUnitID | (Inherited from SoNode.) |
![]() | GetStringName | (Inherited from SoBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GLRender | (Overrides SoVRMLLightGLRender(SoGLRenderAction).) |
![]() | GLRenderBelowPath | (Inherited from SoNode.) |
![]() | GLRenderInPath | (Inherited from SoNode.) |
![]() | GLRenderOffPath | (Inherited from SoNode.) |
![]() | GrabEventsCleanup | (Inherited from SoNode.) |
![]() | GrabEventsSetup | (Inherited from SoNode.) |
![]() | HandleEvent | (Inherited from SoNode.) |
![]() | HasDefaultValues | Returns true if all of the object's fields have their default values. |
![]() | IsBoundingBoxIgnoring | This method is used by getBoundingBox action traversal to know if the current node must be traversed or not, ie the bounding should be ignored. |
![]() | IsNotifyEnabled | Notification is the process of telling interested objects that this object has changed. |
![]() | IsOverride | Returns the state of the override flag. |
![]() | IsSynchronizable | Gets the ScaleViz synchronizable state of this object. |
![]() | Pick | (Inherited from SoNode.) |
![]() | RayPick | (Inherited from SoNode.) |
![]() | Search | (Inherited from SoNode.) |
![]() | Set | Sets one or more fields in this object to the values specified in the given string, which should be a string in the Open Inventor file format. |
![]() | SetName | (Inherited from SoBase.) |
![]() | SetOverride | Turns the override flag on or off. |
![]() | SetSynchronizable | Sets this to be a ScaleViz synchronizable object. |
![]() | SetToDefaults | Sets all fields in this object to their default values. |
![]() | ToString |
Converts this SoBase structure to a human readable string.
(Inherited from SoBase.) |
![]() | Touch | Marks an instance as modified, simulating a change to it. |
![]() | Write | (Inherited from SoNode.) |
Name | Description | |
---|---|---|
![]() | ambientIntensity | Specifies the brightness of the ambient emissions of the light. |
![]() | attenuation | Attenuation coefficients. |
![]() | beamWidth | Inner solid angle of illumination. |
![]() | color | Specifies the spectral color properties of the light. |
![]() | cutOffAngle | Outer solid angle of illumination. |
![]() | direction | Direction vector of the light's central axis. |
![]() | intensity | Specifies the brightness of the direct emission from the light. |
![]() | IsDisposable | ISafeDisposable interface implementation.
(Inherited from SoDisposable.) |
![]() | location | Specifies a translation offset of the centerpoint of the light source from the light's local coordinate system origin. |
![]() | metadata | Specifies the metadata node. |
![]() | on | Specifies whether the light is on (true) or off (false). |
![]() | radius | (Note: Not implemented) Specifies the radial extent of the solid angle and the maximum distances from location that may be illuminated by the light source. |
![]() | UserData |
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.) |
The SoVRMLSpotLight node defines a light source that emits light from a specific point along a specific direction vector and constrained within a solid angle. SoVRMLSpotlights may illuminate geometry nodes that respond to light sources and intersect the solid angle. SoVRMLSpotlights are specified in their local coordinate system and are affected by parent transformations.
Note: SoVRMLSpotLights only illuminate objects in their enclosing parent group (similar to Directional lights). This is a slight deviation from the behavior described by the VRML97 specification.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at http://www.web3d.org.
The SoVRMLSpotLight node defines a light source that emits light from a specific point along a specific direction vector and constrained within a solid angle. SoVRMLSpotlights may illuminate geometry nodes that respond to light sources and intersect the solid angle. SoVRMLSpotlights are specified in their local coordinate system and are affected by parent transformations.
See "Concepts - Light Sources" for a detailed description of ambientIntensity , color , intensity , and VRML's lighting equations. See "Concepts - Lighting Model" for a detailed description of the VRML lighting equations.
The location field specifies a translation offset of the center point of the light source from the light's local coordinate system origin. This point is the apex of the solid angle which bounds light emission from the given light source. The direction field specifies the direction vector of the light's central axis defined in its own local coordinate system. The on field specifies whether the light source emits lightif true, then the light source is emitting light and may illuminate geometry in the scene, if false it does not emit light and does not illuminate any geometry. The radius field specifies the radial extent of the solid angle and the maximum distance from location than may be illuminated by the light source - the light source does not emit light outside this radius. The radius must be >= 0.0.
The cutOffAngle field specifies the outer bound of the solid angle. The light source does not emit light outside of this solid angle. The beamWidth field specifies an inner solid angle in which the light source emits light at uniform full intensity. The light source's emission intensity drops off from the inner solid angle (beamWidth) to the outer solid angle (cutOffAngle). The drop off function from the inner angle to the outer angle is a cosine raised to a power function:
intensity(angle) = intensity * (cosine(angle) ** exponent) where exponent = 0.5*log(0.5)/log(cos(beamWidth)), intensity is the SpotLight's field value, intensity(angle) is the light intensity at an arbitrary angle from the direction vector, and angle ranges from 0.0 at central axis to cutOffAngle.
If beamWidth > cutOffAngle, then beamWidth is assumed to be equal to cutOffAngle and the light source emits full intensity within the entire solid angle defined by cutOffAngle. Both beamWidth and cutOffAngle must be greater than 0.0 and less than or equal to pi/2. See the figure below for an illustration of the SoVRMLSpotLight's field semantics (note: this example uses the default attenuation).
The light's illumination falls off with distance as specified by three attenuation coefficients. The attenuation factor is 1/( attenuation [0] + attenuation [1]*r + attenuation [2]*r^2) , where r is the distance of the light to the surface being illuminated. The default is no attenuation. An attenuation value of 0 0 0 is identical to 1 0 0 . Attenuation values must be >= 0.0.
VRMLSpotLight {
ambientIntensity | 0 |
attenuation | 1 0 0 |
beamWidth | 1.570796 |
color | 1 1 1 |
cutOffAngle | 0.785398 |
direction | 0 0 -1 |
intensity | 1 |
location | 0 0 0 |
on | true |
radius | 100 |
metadata | NULL |
SoGLRenderAction Sets: SoGLLightIdElement
SoSFFloat | set_ambientIntensity |
SoSFVec3f | set_attenuation |
SoSFFloat | set_beamWidth |
SoSFColor | set_color |
SoSFFloat | set_cutOffAngle |
SoSFVec3f | set_direction |
SoSFFloat | set_intensity |
SoSFVec3f | set_location |
SoSFBool | set_on |
SoSFFloat | set_radius (Note: Not implemented) |
SoSFNode | set_metadata |
SoSFFloat | ambientIntensity_changed |
SoSFVec3f | attenuation_changed |
SoSFFloat | beamWidth_changed |
SoSFColor | color_changed |
SoSFFloat | cutOffAngle_changed |
SoSFVec3f | direction_changed |
SoSFFloat | intensity_changed |
SoSFVec3f | location_changed |
SoSFBool | on_changed |
SoSFFloat | radius_changed (Note: Not implemented) |
SoSFNode | metadata_changed |