hrplib
hrpModel
Light.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3
* All rights reserved. This program is made available under the terms of the
4
* Eclipse Public License v1.0 which accompanies this distribution, and is
5
* available at http://www.eclipse.org/legal/epl-v10.html
6
* Contributors:
7
* National Institute of Advanced Industrial Science and Technology (AIST)
8
*/
9
#ifndef HRPMODEL_LIGHT_H_INCLUDED
10
#define HRPMODEL_LIGHT_H_INCLUDED
11
12
#include "
Link.h
"
13
14
namespace
hrp
{
15
16
class
Light
{
17
public
:
18
enum
LightType
{
19
POINT
,
20
DIRECTIONAL
,
21
SPOT
22
};
23
Light
(
Link
*parent,
int
lightType,
const
std::string &name_);
24
25
static
int
nextId
;
26
// common attributes
27
Link
*
link
;
28
int
type
;
29
std::string
name
;
30
Matrix33
localR
;
31
Vector3
localPos
;
32
int
id
;
// unique id in the world
33
double
ambientIntensity
,
intensity
;
34
Vector3
color
;
35
bool
on
;
36
// attributes for point light and spot light
37
Vector3
attenuation
,
location
;
38
double
radius
;
39
// attribute for directional light and spot light
40
Vector3
direction
;
41
// attributes for spot light
42
double
beamWidth
,
cutOffAngle
;
43
};
44
};
45
46
#endif
hrp::Light::DIRECTIONAL
@ DIRECTIONAL
Definition:
Light.h:20
hrp::Light::POINT
@ POINT
Definition:
Light.h:19
hrp::Light::radius
double radius
Definition:
Light.h:38
hrp::Light::type
int type
Definition:
Light.h:28
hrp::Light
Definition:
Light.h:16
hrp::Light::attenuation
Vector3 attenuation
Definition:
Light.h:37
hrp::Light::location
Vector3 location
Definition:
Light.h:37
hrp::Light::color
Vector3 color
Definition:
Light.h:34
hrp
Definition:
ColdetModel.h:28
Link.h
hrp::Light::intensity
double intensity
Definition:
Light.h:33
hrp::Light::localPos
Vector3 localPos
Definition:
Light.h:31
hrp::Link
Definition:
Link.h:40
hrp::Light::nextId
static int nextId
Definition:
Light.h:25
hrp::Light::LightType
LightType
Definition:
Light.h:18
hrp::Light::ambientIntensity
double ambientIntensity
Definition:
Light.h:33
hrp::Light::Light
Light(Link *parent, int lightType, const std::string &name_)
Definition:
Light.cpp:15
hrp::Vector3
Eigen::Vector3d Vector3
Definition:
EigenTypes.h:11
hrp::Light::link
Link * link
Definition:
Light.h:27
hrp::Light::direction
Vector3 direction
Definition:
Light.h:40
hrp::Light::name
std::string name
Definition:
Light.h:29
hrp::Light::localR
Matrix33 localR
Definition:
Light.h:30
hrp::Light::cutOffAngle
double cutOffAngle
Definition:
Light.h:42
hrp::Light::beamWidth
double beamWidth
Definition:
Light.h:42
hrp::Light::SPOT
@ SPOT
Definition:
Light.h:21
hrp::Matrix33
Eigen::Matrix3d Matrix33
Definition:
EigenTypes.h:12
hrp::Light::id
int id
Definition:
Light.h:32
hrp::Light::on
bool on
Definition:
Light.h:35
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03