Hierarchical Edge Bundle 1.0
|
#include <Light.h>
Public Types | |
enum | LightType { LT_POINT = 0, LT_CONIC = 1, LT_SPOTLIGHT = 2, LT_NONE } |
Public Member Functions | |
Light (void) | |
~Light (void) | |
void | On () |
void | Off () |
bool | IsOn () |
void | ShadowOn () |
void | ShadowOff () |
bool | IsShadowOn () |
void | SetShadowElements (int elements) |
bool | AreVerticesInShadow () |
bool | AreGridsInShadow () |
bool | AreHierarchyEdgeInShadow () |
bool | AreRelationEdgeInShadow () |
void | SetType (int type) |
void | SetPosition (vec3 position) |
void | SetSpotDirection (vec3 spotdirection) |
void | SetRadius (float radius) |
void | SetAttentuate (float attentuate) |
float | GetType () |
vec3 | GetPosition () |
vec3 | GetSpotDirection () |
float | GetRadius () |
float | GetAttentuate () |
This class creates a light. We support a standard point a light, a spot light, and a conic light
enum Light::LightType |
Light::Light | ( | void | ) |
standard constructor
Light::~Light | ( | void | ) |
standard deconstructor
bool Light::AreGridsInShadow | ( | ) |
Returns true, if the the grid should be a part of the shadow. return [bool] true... if the grid should be a part of the shadow
bool Light::AreHierarchyEdgeInShadow | ( | ) |
Returns true, if the hierarchy edge should be a part of the shadow. return [bool] true... if hiearchy edge should be a part of the shadow
bool Light::AreRelationEdgeInShadow | ( | ) |
Returns true, if the hierarchy edge should be a part of the shadow. return [bool] true... if hiearchy edge should be a part of the shadow
bool Light::AreVerticesInShadow | ( | ) |
Returns true, if the vertices should be a part of the shadow. return [bool] true... if vertices should be a part of the shadow
float Light::GetAttentuate | ( | ) |
Returns attentuate of the light
vec3 Light::GetPosition | ( | ) |
Returns the position of the light
float Light::GetRadius | ( | ) |
Returns the radius of the light
vec3 Light::GetSpotDirection | ( | ) |
Return the Spot direction of the light
float Light::GetType | ( | ) |
Return the light type
bool Light::IsOn | ( | ) |
Is the light on?
bool Light::IsShadowOn | ( | ) |
Returns the shadow state
void Light::Off | ( | ) |
Set the light off
void Light::On | ( | ) |
Set the light on
void Light::SetAttentuate | ( | float | attentuate | ) |
Set the light attentuate
attentuate | [float] light attentuate |
void Light::SetPosition | ( | vec3 | position | ) |
This method sets the light position
position | [vec3] position |
void Light::SetRadius | ( | float | radius | ) |
This method sets the light radius
radius | [float] radius of the light |
void Light::SetShadowElements | ( | int | elements | ) |
This method sets the element, which should be a part of the shadow. The input follows the idea of a bit array.
elements | [int] elements which should be draw. |
void Light::SetSpotDirection | ( | vec3 | spotdirection | ) |
This method sets the spot direction
spotdirection | [vec3] Spotdirection |
void Light::SetType | ( | int | type | ) |
This method sets the light type
position | [vec3] position |
void Light::ShadowOff | ( | ) |
Set shadow off
void Light::ShadowOn | ( | ) |
Set shadow on