scg3  0.6
LightPosition.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright 2014 Volker Ahlers
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  */
25 
26 #ifndef LIGHTPOSITION_H_
27 #define LIGHTPOSITION_H_
28 
29 
30 #include "Leaf.h"
31 #include "scg_internals.h"
32 
33 namespace scg {
34 
35 
44 class LightPosition: public Leaf {
45 
46 public:
47 
51  LightPosition(LightSP light);
52 
56  virtual ~LightPosition();
57 
61  static LightPositionSP create(LightSP light);
62 
66  LightSP getLight();
67 
73 
77  void accept(Traverser* traverser);
78 
79 protected:
80 
82 
83 };
84 
85 
86 } /* namespace scg */
87 
88 #endif /* LIGHTPOSITION_H_ */
Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).
virtual ~LightPosition()
static LightPositionSP create(LightSP light)
A light to be applied to all nodes of its sub-tree (composite node).
Definition: Light.h:54
Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).
Definition: Leaf.h:36
LightPosition(LightSP light)
Base class for all traversers (visitor pattern, abstract).
Definition: Traverser.h:36
void accept(Traverser *traverser)
Definition: Animation.h:28
Internal definitions required by most classes.
LightPosition * setLight(LightSP light)
A light position node to define the position of an associated light within the scene graph (leaf node...
Definition: LightPosition.h:44