SelectionObj.hh
00001 /* 00002 * Copyright 2011 Nate Koenig & Andrew Howard 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 * 00016 */ 00017 #ifndef SELECTION_OBJ 00018 #define SELECTION_OBJ 00019 00020 #include "math/Vector3.hh" 00021 #include "rendering/RenderTypes.hh" 00022 00023 namespace gazebo 00024 { 00025 namespace rendering 00026 { 00027 class Scene; 00028 00031 00033 class SelectionObj 00034 { 00036 public: SelectionObj(Scene *scene_); 00037 00039 public: virtual ~SelectionObj(); 00040 00041 public: void Init(); 00042 00044 public: void Attach( VisualPtr visual ); 00045 public: void Clear( ); 00046 00048 public: bool IsActive() const; 00049 00051 public: void SetActive( bool _active ); 00052 00054 public: std::string GetVisualName() const; 00055 00057 public: void SetHighlight( const std::string &_mod ); 00058 00059 private: void CreateMaterials(); 00060 00061 private: VisualPtr node; 00062 private: Scene *scene; 00063 private: std::string visualName; 00064 00065 private: bool active; 00066 }; 00068 } 00069 } 00070 #endif

1.7.5.1