Ignition Rendering

API Reference

4.0.0
Ogre2ParticleEmitter.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 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 #ifndef IGNITION_RENDERING_OGRE2_OGRE2PARTICLEEMITTER_HH_
18 #define IGNITION_RENDERING_OGRE2_OGRE2PARTICLEEMITTER_HH_
19 
20 #include <string>
23 
24 namespace ignition
25 {
26  namespace rendering
27  {
28  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
29  //
30  // Forward declaration
31  class Ogre2ParticleEmitterPrivate;
32 
34  class IGNITION_RENDERING_OGRE2_VISIBLE Ogre2ParticleEmitter :
35  public BaseParticleEmitter<Ogre2Visual>
36  {
38  protected: Ogre2ParticleEmitter();
39 
41  public: virtual ~Ogre2ParticleEmitter();
42 
43  // Documentation inherited.
44  public: void Destroy() override;
45 
46  // Documentation inherited.
47  public: virtual void SetType(const EmitterType _type) override;
48 
49  // Documentation inherited.
50  public: virtual void SetEmitterSize(
51  const ignition::math::Vector3d &_size) override;
52 
53  // Documentation inherited.
54  public: virtual void SetRate(double _rate) override;
55 
56  // Documentation inherited.
57  public: virtual void SetDuration(double _duration) override;
58 
59  // Documentation inherited.
60  public: virtual void SetEmitting(bool _enable) override;
61 
62  // Documentation inherited.
63  public: virtual void SetParticleSize(
64  const ignition::math::Vector3d &_size) override;
65 
66  // Documentation inherited.
67  public: virtual void SetLifetime(double _lifetime) override;
68 
69  // Documentation inherited.
70  public: virtual void SetMaterial(const MaterialPtr &_material) override;
71 
72  // Documentation inherited.
73  public: virtual void SetVelocityRange(double _minVelocity,
74  double _maxVelocity) override;
75 
76  // Documentation inherited.
77  public: virtual void SetColorRange(
78  const ignition::math::Color &_colorStart,
79  const ignition::math::Color &_colorEnd) override;
80 
81  // Documentation inherited.
82  public: virtual void SetScaleRate(double _scaleRate) override;
83 
84  // Documentation inherited.
85  public: virtual void SetColorRangeImage(const std::string &_image)
86  override;
87 
88  // Documentation inherited.
89  protected: virtual void Init() override;
90 
92  private: friend class Ogre2Scene;
93 
96  };
97  }
98  }
99 }
100 #endif
EmitterType
Enum for emitter types.
Definition: ParticleEmitter.hh:36
Ogre2.x implementation of the scene class.
Definition: Ogre2Scene.hh:45
STL class.
A base implementation of the ParticleEmitter class.
Definition: BaseParticleEmitter.hh:37
Class to manage a particle emitter.
Definition: Ogre2ParticleEmitter.hh:34