hrplib
hrpModel
Light.cpp
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
#include "
Light.h
"
10
11
using namespace
hrp
;
12
13
int
Light::nextId
=0;
14
15
Light::Light
(
Link
*parent,
int
lightType,
const
std::string &name_) :
16
link(parent),
type
(lightType),
name
(name_), id(nextId){
17
link
->
lights
.push_back(
this
);
18
nextId
++;
19
}
20
hrp
Definition:
ColdetModel.h:28
hrp::Link
Definition:
Link.h:40
hrp::Light::nextId
static int nextId
Definition:
Light.h:25
type
png_infop png_charp png_int_32 png_int_32 int * type
Definition:
png.h:2330
hrp::Light::Light
Light(Link *parent, int lightType, const std::string &name_)
Definition:
Light.cpp:15
hrp::Link::lights
std::vector< Light * > lights
lights attached to this link
Definition:
Link.h:199
Light.h
hrp::Light::link
Link * link
Definition:
Light.h:27
name
png_infop png_charpp name
Definition:
png.h:2379
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