public final class PvLight extends PgJvxSrc implements PvLightIf
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGSLIGHT_AMBIENT, LIGHT_DIRECTION, LIGHT_HEAD, LIGHT_POINT, LIGHT_SHADOW, LIGHT_SKY, LIGHT_SPOT, MODEL_LIGHT, MODEL_SURFACE, REFERENCE_CAMERA, REFERENCE_SCENE, SHADING_FULLSPHERE, SHADING_HALFSPHERE, SHADING_SYMMETRICAMBIENT_H2_HYPERBOLIC, AMBIENT_H3_HYPERBOLIC, AMBIENT_H4_HYPERBOLIC, AMBIENT_PROJECTIONS, AMBIENT_R1_EUCLIDEAN, AMBIENT_R2_EUCLIDEAN, AMBIENT_R3_EUCLIDEAN, AMBIENT_R4_EUCLIDEAN, AMBIENT_R5_EUCLIDEAN, AMBIENT_S1_SPHERE, AMBIENT_S2_SPHERE, AMBIENT_S3_SPHERE, AMBIENT_S4_SPHERE, AMBIENT_SPACES, BLEND_ALPHA, BLEND_MATERIAL, BLEND_REPLACE, FILTER_DIRECT, FILTER_LINEAR, FILTER_QUADRATIC, HAS_METHOD_MENU, INSPECTOR_CONTROL, INSPECTOR_CONTROL_EXT, INSPECTOR_MATERIAL, INSPECTOR_MATERIAL_EXT, INSPECTOR_TEXTURE, INSPECTOR_TEXTURE_EXT, LABEL_BASE, LABEL_CENTER, LABEL_HEAD, LABEL_MIDDLE, LABEL_TAIL, LABEL_TOP, m_numLabelTypes, METHOD_EXT, PERIODIC_BOTH, PERIODIC_HEIGHT, PERIODIC_NONE, PERIODIC_WIDTH, PROJ_KLEIN_BALL, PROJ_PARALLEL, PROJ_POINCARE_BALL, PROJ_STEREOGRAPHIC, PROJ_UPPER_HALFSPACE, SIDE_BACK, SIDE_BOTH, SIDE_FRONT, SIDE_NONE| Constructor and Description | 
|---|
| PvLight(PvDisplayIf disp)Constructor of light. | 
| PvLight(PvDisplayIf disp,
       int type)Constructor of a light with type like
  LIGHT_AMBIENT. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | clone()Duplicate geometry by recursively cloning all instance variables
 except inspector panels and lists of registered listeners. | 
| double | getAngle()Get angle of spot cone of light. | 
| java.awt.Color | getColor()Get color of light. | 
| double | getCorona()Get angle of corona of spot cone. | 
| PvDisplayIf | getDisplay()Get parent display of this light. | 
| double | getExponent()Get exponent which determines the size of a highlight. | 
| double | getFalloff()Get fall off angle of spot cone. | 
| double | getIntensity()Get intensity of light. | 
| PdVector | getInterest()Get interest of the light, the point at which the light shines. | 
| int | getLightType()Get type of the light among public variables like
  LIGHT_AMBIENT. | 
| PdVector | getPosition()Get position of light. | 
| int | getReference()Get reference coordinate system of the light among public variables like
  REFERENCE_SCENE. | 
| int | getShading()Get shading type of the light among public variables like
  SHADING_SYMMETRIC. | 
| void | init()Initializes and resets current camera. | 
| boolean | isHighlight()Determines if light throws a highlight. | 
| boolean | isSwitchedOn()Get flag if light is currently switched on within the scene,
 i.e. whether is contributes to the total light. | 
| void | setAngle(double angle)Set angle of spot cone of light. | 
| void | setColor(java.awt.Color color)Set color of light. | 
| void | setCorona(double corona)Set angle of corona of spot cone. | 
| void | setExponent(double exp)Set exponent which determines the size of a highlight. | 
| void | setFalloff(double falloff)Set fall off angle of spot cone. | 
| void | setHighlight(boolean bHighlight)Enables if light throws a highlight. | 
| void | setIntensity(double intensity)Set intensity of light. | 
| void | setInterest(double x,
           double y,
           double z)Set interest of the light, the point at which the light shines. | 
| void | setInterest(PdVector interest)Set interest of the light, the point at which the light shines. | 
| void | setLightType(int lightType)Set type of the light among public variables like
  LIGHT_AMBIENT. | 
| void | setPosition(double x,
           double y,
           double z)Set position of light. | 
| void | setPosition(PdVector position)Set position of light. | 
| void | setReference(int reference)Set reference coordinate system of the light among public variables like
  REFERENCE_SCENE. | 
| void | setShading(int shading)Set shading type of the light among public variables like
  SHADING_SYMMETRIC. | 
| void | setSwitchedOn(boolean flag)Set flag if light is currently switched on within the scene,
 i.e. whether is contributes to the total light. | 
| boolean | update(java.lang.Object event)Catch update events sent by children. | 
addElement, addPolygon, addVertex, assureEdgeColors, assureEdgeSizes, assureElementBackColors, assureElementColors, assureElementEdges, assureElementNormals, assureElementTextures, assureNeighbours, assurePolygonColors, assurePolygonNormals, assurePolygonSizes, assureVectorColors, assureVertexColors, assureVertexNormals, assureVertexSizes, assureVertexTextures, clearTagVertex, copy, getAmbientBounds, getBlendingMode, getBndColor, getBndElementInd, getBndName, getBndNeighbourLocInd, getBndNumVertices, getBndSize, getBndVertexInd, getBndVertices, getBounds, getCreaseAngle, getDimOfElements, getDimOfPolygons, getDimOfTextures, getDimOfVectors, getEdgeColors, getEdges, getEdgeSizes, getElement, getElementBackColors, getElementColors, getElementEdges, getElementNormals, getElements, getElementTextures, getFilterType, getGlobalBndColor, getGlobalBndSize, getGlobalBndTagColor, getGlobalEdgeColor, getGlobalEdgeNormalColor, getGlobalEdgeNormalLength, getGlobalEdgeNormalSize, getGlobalEdgeSize, getGlobalEdgeTagColor, getGlobalElementBackColor, getGlobalElementColor, getGlobalElementNormalColor, getGlobalElementNormalLength, getGlobalElementNormalSize, getGlobalElementTagColor, getGlobalPolygonColor, getGlobalPolygonNormalColor, getGlobalPolygonNormalLength, getGlobalPolygonNormalSize, getGlobalPolygonSize, getGlobalPolygonTagColor, getGlobalVectorColor, getGlobalVectorLength, getGlobalVectorSize, getGlobalVertexColor, getGlobalVertexNormalColor, getGlobalVertexNormalLength, getGlobalVertexNormalSize, getGlobalVertexSize, getGlobalVertexTagColor, getJvx, getNeighbours, getNumBndPolygons, getNumEdges, getNumElements, getNumPolygons, getNumVectorFields, getNumVectors, getNumVertices, getPolygon, getPolygonColors, getPolygonNormals, getPolygons, getPolygonSizes, getShininess, getSpecularColor, getTextureImage, getTextureImageBnd, getTextureImageName, getTexturePeriodic, getTextureSide, getTextureTiling, getTransparency, getVectorFieldColors, getVectorFieldName, getVectors, getVertex, getVertexColors, getVertexFunctions, getVertexNormals, getVertexSizes, getVertexTextures, getVertices, hasEdgeColors, hasTagVertex, isDefaultLabelEnabled, isEnabledIndexLabels, isShowingBackface, isShowingBnd, isShowingBndMaterials, isShowingBoundaries, isShowingEdgeColorFromElements, isShowingEdgeColorFromVertices, isShowingEdgeColors, isShowingEdgeLabels, isShowingEdges, isShowingEdgeSizes, isShowingElementBackColor, isShowingElementBackColors, isShowingElementColors, isShowingElementFromVertexColors, isShowingElementLabels, isShowingElementNormalArrow, isShowingElementNormals, isShowingElements, isShowingElementTexture, isShowingIndices, isShowingIndividualMaterial, isShowingPolygonColors, isShowingPolygonEndArrow, isShowingPolygonLabels, isShowingPolygonNormalArrow, isShowingPolygonNormals, isShowingPolygons, isShowingPolygonSizes, isShowingPolygonStartArrow, isShowingSilhouette, isShowingSmoothEdgeColors, isShowingSmoothElementColors, isShowingSmoothLighting, isShowingTaggedElements, isShowingTaggedPolygons, isShowingTaggedVertices, isShowingTransparency, isShowingVectorArrows, isShowingVectorColors, isShowingVectorField, isShowingVectorFieldMaterials, isShowingVectorFields, isShowingVertexColors, isShowingVertexLabels, isShowingVertexNormalArrow, isShowingVertexNormals, isShowingVertexOutline, isShowingVertexSizes, isShowingVertexTexture, isShowingVertices, isVectorElementBased, makeElementColorsFromXYZ, makeElementFromVertexColors, makeElementNormals, makeQuadrConn, makeVertexNormals, paint, reflect, removePolygonSizes, setBlendingMode, setBndColor, setBndElementInd, setBndName, setBndNeighbourLocInd, setBndNumVertices, setBndSize, setBndVertexInd, setBndVertices, setCreaseAngle, setDefaultLabelEnabled, setDimOfElements, setDimOfPolygons, setDimOfTextures, setDimOfVertices, setEdgeColors, setEdges, setEdgeSizes, setElement, setElementBackColors, setElementColors, setElementEdges, setElementNormals, setElements, setElementTextures, setEnabledIndexLabels, setFilterType, setGlobalBndColor, setGlobalBndSize, setGlobalBndTagColor, setGlobalEdgeColor, setGlobalEdgeNormalColor, setGlobalEdgeNormalLength, setGlobalEdgeNormalSize, setGlobalEdgeSize, setGlobalEdgeTagColor, setGlobalElementBackColor, setGlobalElementColor, setGlobalElementNormalColor, setGlobalElementNormalLength, setGlobalElementNormalSize, setGlobalElementTagColor, setGlobalPolygonColor, setGlobalPolygonNormalColor, setGlobalPolygonNormalLength, setGlobalPolygonNormalSize, setGlobalPolygonSize, setGlobalPolygonTagColor, setGlobalVectorColor, setGlobalVectorLength, setGlobalVectorSize, setGlobalVertexColor, setGlobalVertexNormalColor, setGlobalVertexNormalLength, setGlobalVertexNormalSize, setGlobalVertexSize, setGlobalVertexTagColor, setJvx, setNeighbours, setNumBndPolygons, setNumEdges, setNumElements, setNumPolygons, setNumVectorFields, setNumVectors, setNumVertices, setPolygon, setPolygonColors, setPolygonNormals, setPolygons, setPolygonSizes, setShininess, setSpecularColor, setState, setTagVertex, setTextureImage, setTextureImageBnd, setTextureImageName, setTexturePeriodic, setTextureSide, setTextureTiling, setTransparency, setVectorColors, setVectorElementBased, setVectorFieldName, setVectors, setVertex, setVertexColors, setVertexFunctions, setVertexNormals, setVertexSizes, setVertexTextures, setVertices, showBackface, showBnd, showBndMaterials, showBoundaries, showEdgeColorFromElements, showEdgeColorFromVertices, showEdgeColors, showEdgeLabels, showEdges, showEdgeSizes, showElementBackColor, showElementBackColors, showElementColors, showElementFromVertexColors, showElementLabels, showElementNormalArrow, showElementNormals, showElements, showElementTexture, showIndices, showIndividualMaterial, showPolygonColors, showPolygonEndArrow, showPolygonLabels, showPolygonNormalArrow, showPolygonNormals, showPolygons, showPolygonSizes, showPolygonStartArrow, showSilhouette, showSmoothEdgeColors, showSmoothElementColors, showSmoothLighting, showTaggedElements, showTaggedPolygons, showTaggedVertices, showTransparency, showVectorArrows, showVectorColors, showVectorField, showVectorFieldMaterials, showVectorFields, showVertexColors, showVertexLabels, showVertexNormalArrow, showVertexNormals, showVertexOutline, showVertexSizes, showVertexTexture, showVerticesaddDisplay, applyAmbientMatrix, applyModelingMatrix, blend, clearTagElement, clearTagPolygon, convertWorldToModel, copy, fillMethodMenu, fillMethodMenu, getAmbientInvMatrix, getAmbientMatrix, getAmbientProjection, getAmbientSpace, getAuthorInfo, getAuthors, getCenter, getCenterOfElement, getControlPanel, getDiameter, getDimOfSimplex, getDimOfVertices, getDisplayList, getDisplays, getGeometryInfo, getLabelAttribute, getLabelColor, getLabelFont, getLabelSize, getLabelStyle, getMaterialPanel, getModelMatrix, getState, getTitle, getType, getVersion, getVersionType, hasAmbientMatrix, hasDisplay, hasModelMatrix, hasTagElement, hasTagPolygon, intersectionWithLine, isConfigurable, isEnabledInstanceSharing, isShowingBndBox, isShowingCenter, isShowingName, isShowingTitle, isVisible, merge, projectFromAmbientSpace, removeDisplay, removeElement, removeMethodMenus, removePolygon, removeVertex, setAmbientMatrix, setAmbientProjection, setAmbientSpace, setAuthorInfo, setAuthors, setCenter, setDimOfSimplex, setEnabledInstanceSharing, setGeometryInfo, setLabelAttribute, setLabelAttribute, setLabelColor, setLabelFont, setLabelSize, setLabelStyle, setModelMatrix, setTagElement, setTagPolygon, setTitle, setType, setVersion, setVersionType, setVisible, showBndBox, showCenter, showName, showTitle, toStringaddInspector, addUpdateListener, assureInspector, clearTag, clone, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, updatePanelsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDisplay, addElement, addPolygon, addVertex, assureInspector, blend, clearTagElement, clearTagPolygon, clearTagVertex, fillMethodMenu, fillMethodMenu, getAmbientInvMatrix, getAmbientMatrix, getAmbientProjection, getAmbientSpace, getAuthorInfo, getControlPanel, getDimOfSimplex, getDimOfVertices, getDisplays, getElement, getGeometryInfo, getInfoPanel, getJvx, getMaterialPanel, getModelMatrix, getName, getPolygon, getTextureImage, getTextureImageName, getTitle, getType, getVertex, hasAmbientMatrix, hasDisplay, hasModelMatrix, hasTag, hasTagElement, hasTagPolygon, hasTagVertex, intersectionWithLine, isConfigurable, isVisible, merge, paint, reflect, removeDisplay, removeElement, removeMethodMenus, removePolygon, removeVertex, setAmbientMatrix, setAmbientProjection, setAmbientSpace, setAuthorInfo, setElement, setGeometryInfo, setJvx, setModelMatrix, setPolygon, setState, setTagElement, setTagPolygon, setTagVertex, setTextureImage, setTextureImageName, setTitle, setVertex, setVisible, toStringgetFather, setParentpublic PvLight(PvDisplayIf disp, int type)
LIGHT_AMBIENT.disp - display which contains this lighttype - type of this lightpublic PvLight(PvDisplayIf disp)
disp - display which contains this lightpublic boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PgGeometryevent - carries a lot of informationPsObject.setParent(PsUpdateIf), 
PsObject.getFather(), 
PsObject.addUpdateListener(PsUpdateIf)public java.lang.Object clone()
null.clone in interface PgGeometryIfclone in class PgJvxSrcPgGeometry.copy(jv.object.PsObject)public PvDisplayIf getDisplay()
public int getReference()
REFERENCE_SCENE.getReference in interface PvLightIfpublic void setReference(int reference)
REFERENCE_SCENE.setReference in interface PvLightIfreference - new reference coordinate system of this light sourcepublic int getShading()
SHADING_SYMMETRIC.getShading in interface PvLightIfpublic void setShading(int shading)
SHADING_SYMMETRIC.setShading in interface PvLightIfshading - new shading type of this lightpublic int getLightType()
LIGHT_AMBIENT.getLightType in interface PvLightIfpublic void setLightType(int lightType)
LIGHT_AMBIENT.setLightType in interface PvLightIflightType - new type of this light sourcepublic boolean isSwitchedOn()
isSwitchedOn in interface PvLightIfpublic void setSwitchedOn(boolean flag)
setSwitchedOn in interface PvLightIfflag - lights must be switch on in order to illuminate a scene.public PdVector getPosition()
getPosition in interface PvLightIfpublic void setPosition(PdVector position)
setPosition in interface PvLightIfposition - new position of this lightpublic void setPosition(double x,
               double y,
               double z)
setPosition in interface PvLightIfx - x-coordinate of position of lighty - y-coordinate of position of lightz - z-coordinate of position of lightpublic PdVector getInterest()
getInterest in interface PvLightIfpublic void setInterest(PdVector interest)
setInterest in interface PvLightIfinterest - interest of the lightpublic void setInterest(double x,
               double y,
               double z)
setInterest in interface PvLightIfx - x-coordinate of interest of lighty - y-coordinate of interest of lightz - z-coordinate of interest of lightpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
public double getIntensity()
getIntensity in interface PvLightIfpublic void setIntensity(double intensity)
setIntensity in interface PvLightIfintensity - new intensity of lightpublic double getAngle()
public void setAngle(double angle)
public double getCorona()
public void setCorona(double corona)
public double getFalloff()
getFalloff in interface PvLightIfpublic void setFalloff(double falloff)
setFalloff in interface PvLightIffalloff - fall off angle of spot conepublic double getExponent()
getExponent in interface PvLightIfpublic void setExponent(double exp)
setExponent in interface PvLightIfexp - specular exponentpublic boolean isHighlight()
isHighlight in interface PvLightIfpublic void setHighlight(boolean bHighlight)
setHighlight in interface PvLightIfbHighlight - flag"