All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Vector3Stats.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 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_VECTOR3_STATS_HH_
18 #define _IGNITION_VECTOR3_STATS_HH_
19 
20 #include <string>
21 #include <ignition/math/Helpers.hh>
23 #include <ignition/math/Vector3.hh>
24 
25 namespace ignition
26 {
27  namespace math
28  {
30  class Vector3StatsPrivate;
31 
35  {
37  public: Vector3Stats();
38 
40  public: ~Vector3Stats();
41 
44  public: void InsertData(const Vector3d &_data);
45 
55  public: bool InsertStatistic(const std::string &_name);
56 
64  public: bool InsertStatistics(const std::string &_names);
65 
67  public: void Reset();
68 
71  public: SignalStats X() const;
72 
75  public: SignalStats Y() const;
76 
79  public: SignalStats Z() const;
80 
83  public: SignalStats Mag() const;
84 
87  public: SignalStats &X();
88 
91  public: SignalStats &Y();
92 
95  public: SignalStats &Z();
96 
99  public: SignalStats &Mag();
100 
103  };
104  }
105 }
106 #endif
107 
#define IGNITION_VISIBLE
Use to represent &quot;symbol visible&quot; if supported.
Definition: Helpers.hh:408
Collection of statistics for a Vector3 signal.
Definition: Vector3Stats.hh:34
Private data class for the Vector3Stats class.
Definition: Vector3StatsPrivate.hh:27
Collection of statistics for a scalar signal.
Definition: SignalStats.hh:171
Vector3StatsPrivate * dataPtr
Pointer to private data.
Definition: Vector3Stats.hh:102