Assimp  v4.1. (December 2018)
CX3DImporter_NodeElement_Light Struct Reference

Inherits CX3DImporter_NodeElement.

Public Member Functions

 CX3DImporter_NodeElement_Light (EType pLightType, CX3DImporter_NodeElement *pParent)
 
- Public Member Functions inherited from CX3DImporter_NodeElement
virtual ~CX3DImporter_NodeElement ()
 The destructor, virtual. More...
 

Public Attributes

float AmbientIntensity
 Specifies the intensity of the ambient emission from the light. More...
 
aiVector3D Attenuation
 
float BeamWidth
 Specifies an inner solid angle in which the light source emits light at uniform full intensity. More...
 
aiColor3D Color
 specifies the spectral colour properties of both the direct and ambient light emission as an RGB value. More...
 
float CutOffAngle
 The light source's emission intensity drops off from the inner solid angle (beamWidth) to the outer solid angle (cutOffAngle). More...
 
aiVector3D Direction
 Specifies the direction vector of the illumination emanating from the light source in the local coordinate system. More...
 
bool Global
 
float Intensity
 Specifies the brightness of the direct emission from the light. More...
 
aiVector3D Location
 Specifies a translation offset of the centre point of the light source from the light's local coordinate system origin. More...
 
float Radius
 Specifies the radial extent of the solid angle and the maximum distance from location that may be illuminated by the light source. More...
 
- Public Attributes inherited from CX3DImporter_NodeElement
std::list< CX3DImporter_NodeElement * > Child
 Child elements. More...
 
std::string ID
 ID of the element. Can be empty. In X3D synonym for "ID" attribute. More...
 
CX3DImporter_NodeElementParent
 Parent element. If nullptr then this node is root. More...
 
const EType Type
 

Additional Inherited Members

- Public Types inherited from CX3DImporter_NodeElement
enum  EType {
  ENET_Group, ENET_MetaBoolean, ENET_MetaDouble, ENET_MetaFloat,
  ENET_MetaInteger, ENET_MetaSet, ENET_MetaString, ENET_Arc2D,
  ENET_ArcClose2D, ENET_Circle2D, ENET_Disk2D, ENET_Polyline2D,
  ENET_Polypoint2D, ENET_Rectangle2D, ENET_TriangleSet2D, ENET_Box,
  ENET_Cone, ENET_Cylinder, ENET_Sphere, ENET_ElevationGrid,
  ENET_Extrusion, ENET_Coordinate, ENET_Normal, ENET_TextureCoordinate,
  ENET_IndexedFaceSet, ENET_IndexedLineSet, ENET_IndexedTriangleSet, ENET_IndexedTriangleFanSet,
  ENET_IndexedTriangleStripSet, ENET_LineSet, ENET_PointSet, ENET_TriangleSet,
  ENET_TriangleFanSet, ENET_TriangleStripSet, ENET_Color, ENET_ColorRGBA,
  ENET_Shape, ENET_Appearance, ENET_Material, ENET_ImageTexture,
  ENET_TextureTransform, ENET_DirectionalLight, ENET_PointLight, ENET_SpotLight,
  ENET_Invalid
}
 
- Protected Member Functions inherited from CX3DImporter_NodeElement
 CX3DImporter_NodeElement (const EType pType, CX3DImporter_NodeElement *pParent)
 In constructor inheritor must set element type. More...
 

Detailed Description

This struct hold <TextureTransform> value.

Constructor & Destructor Documentation

◆ CX3DImporter_NodeElement_Light()

CX3DImporter_NodeElement_Light::CX3DImporter_NodeElement_Light ( EType  pLightType,
CX3DImporter_NodeElement pParent 
)
inline

Constructor

Parameters
[in]pParent- pointer to parent node.
[in]pLightType- type of the light source.

Member Data Documentation

◆ AmbientIntensity

float CX3DImporter_NodeElement_Light::AmbientIntensity

Specifies the intensity of the ambient emission from the light.

◆ Attenuation

CX3DImporter_NodeElement_Light::Attenuation

PointLight node's illumination falls off with distance as specified by three attenuation coefficients. The attenuation factor is: "1 / max(attenuation[0] + attenuation[1] * r + attenuation[2] * r2, 1)", where r is the distance from the light to the surface being illuminated.

◆ BeamWidth

float CX3DImporter_NodeElement_Light::BeamWidth

Specifies an inner solid angle in which the light source emits light at uniform full intensity.

◆ Color

aiColor3D CX3DImporter_NodeElement_Light::Color

specifies the spectral colour properties of both the direct and ambient light emission as an RGB value.

◆ CutOffAngle

float CX3DImporter_NodeElement_Light::CutOffAngle

The light source's emission intensity drops off from the inner solid angle (beamWidth) to the outer solid angle (cutOffAngle).

◆ Direction

aiVector3D CX3DImporter_NodeElement_Light::Direction

Specifies the direction vector of the illumination emanating from the light source in the local coordinate system.

◆ Global

CX3DImporter_NodeElement_Light::Global

Field that determines whether the light is global or scoped. Global lights illuminate all objects that fall within their volume of lighting influence. Scoped lights only illuminate objects that are in the same transformation hierarchy as the light.

◆ Intensity

float CX3DImporter_NodeElement_Light::Intensity

Specifies the brightness of the direct emission from the light.

◆ Location

aiVector3D CX3DImporter_NodeElement_Light::Location

Specifies a translation offset of the centre point of the light source from the light's local coordinate system origin.

◆ Radius

float CX3DImporter_NodeElement_Light::Radius

Specifies the radial extent of the solid angle and the maximum distance from location that may be illuminated by the light source.


The documentation for this struct was generated from the following file: