API Reference > Classes > PRC Graphical Classes > OdPrcContentPointLight Class
OdPrcContentPointLight Class
OdPrcContentPointLightOdPrcContentPointLightOdPrcContentPointLightOdPrcContentPointLight
Syntax
C++
class OdPrcContentPointLight : public OdPrcContentLight;

PrcContentPointLight.h

 

Class representing a light of a scene from a point with attenuation factors.

 
Name 
Description 
 
Destroys an instance of a PRC entity. 
 
Name 
Description 
 
This is the overview for the attributeData method overload. 
 
Returns the OdGsCache object currently assigned to the PRC entity. 
 
id 
Returns the PRC entity ID. 
 
Returns whether the PRC entity is persistent (true) or not (false). 
 
name 
This is the overview for the name method overload. 
 
Returns the type of the PRC entity. 
 
Assigns the specified OdGsCache to the PRC entity.
 
OdPrcReferencedBase Class
 
Name 
Description 
 
Returns the current CAD identifier for the PRC object. 
 
Returns the current persistent CAD identifier for the PRC object. 
 
Returns an explicit unique name for "this" entity that can be referenced through PDF or JavaScript. In the case of error, it returns an empty string.
 
 
id 
Returns the current object identifier for the object. 
 
Returns true if the object is persistent or false in the other case. 
 
Returns the PRC object identifier. 
 
Sets a new CAD identifier value for the PRC object.  
 
Sets a new persistent CAD identifier value for the PRC object.  
 
Sets a new PRC object identifier.  
OdPrcContentLight Class
 
Name 
Description 
 
Returns the current value of the ambient index. 
 
Returns the current diffuse index value. 
 
Returns the current emissive index value. 
 
Returns ambient color. Will throw an exception in case of uninitialized object. 
 
Returns diffuse color. Will throw an exception in case of uninitialized object. 
 
Returns emissive color. Will throw an exception in case of uninitialized object. 
 
Returns the specular color. Will throw an exception in case of uninitialized object. 
 
This is the overview for the setAmbient method overload. 
 
This is the overview for the setDiffuse method overload. 
 
This is the overview for the setEmissive method overload. 
 
This is the overview for the setSpecular method overload. 
 
Returns the current specular index value. 
OdPrcContentPointLight Class
 
Name 
Description 
 
Returns the current value of the constant light attenuation factor. Returned value is in the range [0.0, 1.0]. 
 
Returns the current value of the linear light attenuation factor. Returned value is in the range [0.0, 1.0]. 
 
This is the overview for the location method overload. 
 
Returns the current value of the quadratic light attenuation factor. Returned value is in the range [0.0, 1.0]. 
 
Sets a new value of the constant light attenuation factor.
 
 
Sets a new value of the linear light attenuation factor.
 
 
Sets a new value of the quadratic light attenuation factor.
 
Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.