All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SelectionObj.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Nate Koenig
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _SELECTION_OBJ_
18 #define _SELECTION_OBJ_
19 
20 #include <string>
21 
22 #include "math/Vector3.hh"
23 #include "rendering/RenderTypes.hh"
24 
25 namespace gazebo
26 {
27  namespace rendering
28  {
29  class Scene;
30 
33 
39  {
42  public: SelectionObj(Scene *_scene);
43 
45  public: virtual ~SelectionObj();
46 
48  public: void Init();
49 
53  public: void Attach(VisualPtr _visual);
54 
56  public: void Clear();
57 
60  public: bool IsActive() const;
61 
65  public: void SetActive(bool _active);
66 
69  public: std::string GetVisualName() const;
70 
74  public: void SetHighlight(const std::string &_mod);
75 
77  private: VisualPtr node;
78 
80  private: Scene *scene;
81 
83  private: std::string visualName;
84 
86  private: bool active;
87 
89  private: double boxSize;
90  };
92  }
93 }
94 #endif