man SoSpotLight () - node representing a spotlight source
NAME
SoSpotLight - node representing a spotlight source
INHERITS FROM
SoBase > SoFieldContainer > SoNode > SoLight > SoSpotLight
SYNOPSIS
#include <Inventor/nodes/SoSpotLight.h>
Fields from class SoSpotLight:
c
}
c
}
location
c
}
c
}
direction
c
}
c
}
dropOffRate
c
}
c
}
cutOffAngle
Fields from class SoLight:
c
}
c
}
on
c
}
c
}
intensity
c
}
c
}
color
Methods from class SoSpotLight:
c
}
c
}
SoSpotLight()
c
}
c
}
getClassTypeId()
Methods from class SoNode:
c
}
c
}
setOverride(SbBool state)
c
}
c
}
isOverride() const
c
}
c
}
copy(SbBool copyConnections = FALSE) const
c
}
c
}
affectsState() const
c
}
c
}
getByName(const SbName &name)
c
}
c
}
getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
c
}
c
}
setToDefaults()
c
}
c
}
hasDefaultValues() const
c
}
c
}
fieldsAreEqual(const SoFieldContainer *fc) const
c
}
c
}
copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)
c
}
c
}
set(const char *fieldDataString)
c
}
c
}
get(SbString &fieldDataString)
c
}
c
}
getFields(SoFieldList &resultList) const
c
}
c
}
getField(const SbName &fieldName) const
c
}
c
}
getFieldName(const SoField *field, SbName &fieldName) const
c
}
c
}
isNotifyEnabled() const
c
}
c
}
enableNotify(SbBool flag)
Methods from class SoBase:
c
}
c
}
ref()
c
}
c
}
unref() const
c
}
c
}
unrefNoDelete() const
c
}
c
}
touch()
c
}
c
}
getTypeId() const
c
}
c
}
isOfType(SoType type) const
c
}
c
}
setName(const SbName &name)
c
}
c
}
getName() const
DESCRIPTION
This node defines a spotlight style light source. A spotlight is placed at a fixed location in 3-space and illuminates in a cone along a particular direction. The intensity of the illumination drops off exponentially as a ray of light diverges from this direction toward the edges of the cone. The rate of drop-off and the angle of the cone are controlled by the dropOffRate and cutOffAngle fields.
FIELDS
c
}
c
}
location
Location of the source.
c
}
c
}
direction
Principal direction of illumination (center axis of cone).
c
}
c
}
dropOffRate
Rate of intensity drop-off per change in angle from primary direction: 0 = constant intensity, 1 = very sharp drop-off
c
}
c
}
cutOffAngle
Angle (in radians) outside of which intensity is zero, measured from the center axis of the cone to an edge.
METHODS
c
}
c
}
SoSpotLight()
Creates a spotlight source node with default settings.
c
}
c
}
getClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR
SoGLRenderAction
Activates this light (if so specified) during traversal. All shape nodes that come after this light in the scene graph are illuminated by this light. The light's location is affected by the current transformation.
FILE FORMAT/DEFAULTS
SpotLight { on TRUE intensity 1 color 1 1 1 location 0 0 1 direction 0 0 -1 dropOffRate 0 cutOffAngle 0.785398 }
SEE ALSO
SoDirectionalLight, SoPointLight