Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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::Link
Definition:
Link.h:40
type
png_infop png_charp png_int_32 png_int_32 int * type
Definition:
png.h:2332
hrp::Light::Light
Light(Link *parent, int lightType, const std::string &name_)
Definition:
Light.cpp:15
name
png_infop png_charpp name
Definition:
png.h:2382
hrp::Light::link
Link * link
Definition:
Light.h:27
hrp::Link::lights
std::vector< Light * > lights
lights attached to this link
Definition:
Link.h:199
Light.h
hrp::Light::nextId
static int nextId
Definition:
Light.h:25
hrp
Definition:
ColdetModel.h:28
id
id
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:23