Ignition Rendering

API Reference

0.1.0
OgreGrid.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Open Source Robotics Foundation
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 
18 #ifndef IGNITION_RENDERING_OGRE_OGREGRID_HH_
19 #define IGNITION_RENDERING_OGRE_OGREGRID_HH_
20 
21 
26 
27 namespace Ogre
28 {
29  class MovableObject;
30 }
31 
32 namespace ignition
33 {
34  namespace rendering
35  {
36  // Forward declaration
37  class OgreGridPrivate;
38 
40  class IGNITION_RENDERING_OGRE_VISIBLE OgreGrid
41  : public BaseGrid<OgreGeometry>
42  {
44  protected: OgreGrid();
45 
47  public: virtual ~OgreGrid();
48 
49  // Documentation inherited.
50  public: virtual void Init();
51 
52  // Documentation inherited.
53  public: virtual Ogre::MovableObject *OgreObject() const;
54 
55  // Documentation inherited.
56  public: virtual void PreRender();
57 
58  // Documentation inherited.
59  public: virtual MaterialPtr Material() const;
60 
61  // Documentation inherited.
62  public: virtual void SetMaterial(MaterialPtr _material, bool _unique);
63 
66  protected: virtual void SetMaterialImpl(OgreMaterialPtr _material);
67 
69  private: void Create();
70 
72  private: friend class OgreScene;
73 
75  private: std::unique_ptr<OgreGridPrivate> dataPtr;
76  };
77  }
78 }
79 #endif
Definition: OgreObject.hh:28
Definition: OgreScene.hh:34
Base implementation of a grid geometry.
Definition: BaseGrid.hh:30
Ogre implementation of a grid geometry.
Definition: OgreGrid.hh:40
Definition: ArrowVisual.hh:22
Represents a surface material of a Geometry.
Definition: Material.hh:34