Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/light.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/light.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #include "ignition/msgs/pose.pb.h"
37 #include "ignition/msgs/color.pb.h"
38 #ifndef _MSC_VER
39 #pragma GCC system_header
40 #else
41 #pragma warning(push)
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #endif
44 #ifdef __linux__
45 #include <sys/sysmacros.h>
46 #endif
47 #include <memory>
48 #include <ignition/msgs/Export.hh>
49 // @@protoc_insertion_point(includes)
50 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2flight_2eproto IGNITION_MSGS_VISIBLE
51 
53 // Internal implementation detail -- do not use these members.
54 struct IGNITION_MSGS_VISIBLE TableStruct {
55  static const ::google::protobuf::internal::ParseTableField entries[];
56  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
57  static const ::google::protobuf::internal::ParseTable schema[1];
58  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
59  static const ::google::protobuf::internal::SerializationTable serialization_table[];
60  static const ::google::protobuf::uint32 offsets[];
61 };
62 void IGNITION_MSGS_VISIBLE AddDescriptors();
63 } // namespace protobuf_ignition_2fmsgs_2flight_2eproto
64 namespace ignition {
65 namespace msgs {
66 class Light;
67 class LightDefaultTypeInternal;
68 IGNITION_MSGS_VISIBLE extern LightDefaultTypeInternal _Light_default_instance_;
69 } // namespace msgs
70 } // namespace ignition
71 namespace google {
72 namespace protobuf {
73 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Light* Arena::CreateMaybeMessage<::ignition::msgs::Light>(Arena*);
74 } // namespace protobuf
75 } // namespace google
76 namespace ignition {
77 namespace msgs {
78 
85 };
86 IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value);
90 
91 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Light_LightType_descriptor();
92 inline const ::std::string& Light_LightType_Name(Light_LightType value) {
93  return ::google::protobuf::internal::NameOfEnum(
95 }
97  const ::std::string& name, Light_LightType* value) {
98  return ::google::protobuf::internal::ParseNamedEnum<Light_LightType>(
99  Light_LightType_descriptor(), name, value);
100 }
101 // ===================================================================
102 
103 class IGNITION_MSGS_VISIBLE Light : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Light) */ {
104  public:
105  Light();
106  virtual ~Light();
107 
108  Light(const Light& from);
109 
110  inline Light& operator=(const Light& from) {
111  CopyFrom(from);
112  return *this;
113  }
114  #if LANG_CXX11
115  Light(Light&& from) noexcept
116  : Light() {
117  *this = ::std::move(from);
118  }
119 
120  inline Light& operator=(Light&& from) noexcept {
121  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
122  if (this != &from) InternalSwap(&from);
123  } else {
124  CopyFrom(from);
125  }
126  return *this;
127  }
128  #endif
129  static const ::google::protobuf::Descriptor* descriptor();
130  static const Light& default_instance();
131 
132  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
133  static inline const Light* internal_default_instance() {
134  return reinterpret_cast<const Light*>(
136  }
137  static constexpr int kIndexInFileMessages =
138  0;
139 
140  void Swap(Light* other);
141  friend void swap(Light& a, Light& b) {
142  a.Swap(&b);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline Light* New() const final {
148  return CreateMaybeMessage<Light>(NULL);
149  }
150 
151  Light* New(::google::protobuf::Arena* arena) const final {
152  return CreateMaybeMessage<Light>(arena);
153  }
154  void CopyFrom(const ::google::protobuf::Message& from) final;
155  void MergeFrom(const ::google::protobuf::Message& from) final;
156  void CopyFrom(const Light& from);
157  void MergeFrom(const Light& from);
158  void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  bool MergePartialFromCodedStream(
163  ::google::protobuf::io::CodedInputStream* input) final;
164  void SerializeWithCachedSizes(
165  ::google::protobuf::io::CodedOutputStream* output) const final;
166  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
167  bool deterministic, ::google::protobuf::uint8* target) const final;
168  int GetCachedSize() const final { return _cached_size_.Get(); }
169 
170  private:
171  void SharedCtor();
172  void SharedDtor();
173  void SetCachedSize(int size) const final;
174  void InternalSwap(Light* other);
175  private:
176  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
177  return NULL;
178  }
179  inline void* MaybeArenaPtr() const {
180  return NULL;
181  }
182  public:
183 
184  ::google::protobuf::Metadata GetMetadata() const final;
185 
186  // nested types ----------------------------------------------------
187 
189  static const LightType POINT =
191  static const LightType SPOT =
193  static const LightType DIRECTIONAL =
195  static inline bool LightType_IsValid(int value) {
196  return Light_LightType_IsValid(value);
197  }
198  static const LightType LightType_MIN =
200  static const LightType LightType_MAX =
202  static const int LightType_ARRAYSIZE =
204  static inline const ::google::protobuf::EnumDescriptor*
207  }
208  static inline const ::std::string& LightType_Name(LightType value) {
209  return Light_LightType_Name(value);
210  }
211  static inline bool LightType_Parse(const ::std::string& name,
212  LightType* value) {
213  return Light_LightType_Parse(name, value);
214  }
215 
216  // accessors -------------------------------------------------------
217 
218  // string name = 2;
219  void clear_name();
220  static const int kNameFieldNumber = 2;
221  const ::std::string& name() const;
222  void set_name(const ::std::string& value);
223  #if LANG_CXX11
224  void set_name(::std::string&& value);
225  #endif
226  void set_name(const char* value);
227  void set_name(const char* value, size_t size);
228  ::std::string* mutable_name();
229  ::std::string* release_name();
230  void set_allocated_name(::std::string* name);
231 
232  // .ignition.msgs.Header header = 1;
233  bool has_header() const;
234  void clear_header();
235  static const int kHeaderFieldNumber = 1;
236  private:
237  const ::ignition::msgs::Header& _internal_header() const;
238  public:
239  const ::ignition::msgs::Header& header() const;
240  ::ignition::msgs::Header* release_header();
241  ::ignition::msgs::Header* mutable_header();
242  void set_allocated_header(::ignition::msgs::Header* header);
243 
244  // .ignition.msgs.Pose pose = 4;
245  bool has_pose() const;
246  void clear_pose();
247  static const int kPoseFieldNumber = 4;
248  private:
249  const ::ignition::msgs::Pose& _internal_pose() const;
250  public:
251  const ::ignition::msgs::Pose& pose() const;
252  ::ignition::msgs::Pose* release_pose();
253  ::ignition::msgs::Pose* mutable_pose();
254  void set_allocated_pose(::ignition::msgs::Pose* pose);
255 
256  // .ignition.msgs.Color diffuse = 5;
257  bool has_diffuse() const;
258  void clear_diffuse();
259  static const int kDiffuseFieldNumber = 5;
260  private:
261  const ::ignition::msgs::Color& _internal_diffuse() const;
262  public:
263  const ::ignition::msgs::Color& diffuse() const;
264  ::ignition::msgs::Color* release_diffuse();
265  ::ignition::msgs::Color* mutable_diffuse();
266  void set_allocated_diffuse(::ignition::msgs::Color* diffuse);
267 
268  // .ignition.msgs.Color specular = 6;
269  bool has_specular() const;
270  void clear_specular();
271  static const int kSpecularFieldNumber = 6;
272  private:
273  const ::ignition::msgs::Color& _internal_specular() const;
274  public:
275  const ::ignition::msgs::Color& specular() const;
276  ::ignition::msgs::Color* release_specular();
277  ::ignition::msgs::Color* mutable_specular();
278  void set_allocated_specular(::ignition::msgs::Color* specular);
279 
280  // .ignition.msgs.Vector3d direction = 10;
281  bool has_direction() const;
282  void clear_direction();
283  static const int kDirectionFieldNumber = 10;
284  private:
285  const ::ignition::msgs::Vector3d& _internal_direction() const;
286  public:
287  const ::ignition::msgs::Vector3d& direction() const;
288  ::ignition::msgs::Vector3d* release_direction();
289  ::ignition::msgs::Vector3d* mutable_direction();
290  void set_allocated_direction(::ignition::msgs::Vector3d* direction);
291 
292  // .ignition.msgs.Light.LightType type = 3;
293  void clear_type();
294  static const int kTypeFieldNumber = 3;
296  void set_type(::ignition::msgs::Light_LightType value);
297 
298  // float attenuation_constant = 7;
299  void clear_attenuation_constant();
300  static const int kAttenuationConstantFieldNumber = 7;
301  float attenuation_constant() const;
302  void set_attenuation_constant(float value);
303 
304  // float attenuation_linear = 8;
305  void clear_attenuation_linear();
306  static const int kAttenuationLinearFieldNumber = 8;
307  float attenuation_linear() const;
308  void set_attenuation_linear(float value);
309 
310  // float attenuation_quadratic = 9;
311  void clear_attenuation_quadratic();
312  static const int kAttenuationQuadraticFieldNumber = 9;
313  float attenuation_quadratic() const;
314  void set_attenuation_quadratic(float value);
315 
316  // float range = 11;
317  void clear_range();
318  static const int kRangeFieldNumber = 11;
319  float range() const;
320  void set_range(float value);
321 
322  // bool cast_shadows = 12;
323  void clear_cast_shadows();
324  static const int kCastShadowsFieldNumber = 12;
325  bool cast_shadows() const;
326  void set_cast_shadows(bool value);
327 
328  // float spot_inner_angle = 13;
329  void clear_spot_inner_angle();
330  static const int kSpotInnerAngleFieldNumber = 13;
331  float spot_inner_angle() const;
332  void set_spot_inner_angle(float value);
333 
334  // float spot_outer_angle = 14;
335  void clear_spot_outer_angle();
336  static const int kSpotOuterAngleFieldNumber = 14;
337  float spot_outer_angle() const;
338  void set_spot_outer_angle(float value);
339 
340  // float spot_falloff = 15;
341  void clear_spot_falloff();
342  static const int kSpotFalloffFieldNumber = 15;
343  float spot_falloff() const;
344  void set_spot_falloff(float value);
345 
346  // uint32 id = 16;
347  void clear_id();
348  static const int kIdFieldNumber = 16;
349  ::google::protobuf::uint32 id() const;
350  void set_id(::google::protobuf::uint32 value);
351 
352  // uint32 parent_id = 17;
353  void clear_parent_id();
354  static const int kParentIdFieldNumber = 17;
355  ::google::protobuf::uint32 parent_id() const;
356  void set_parent_id(::google::protobuf::uint32 value);
357 
358  // float intensity = 18;
359  void clear_intensity();
360  static const int kIntensityFieldNumber = 18;
361  float intensity() const;
362  void set_intensity(float value);
363 
364  // @@protoc_insertion_point(class_scope:ignition.msgs.Light)
365  private:
366 
367  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
368  ::google::protobuf::internal::ArenaStringPtr name_;
369  ::ignition::msgs::Header* header_;
370  ::ignition::msgs::Pose* pose_;
371  ::ignition::msgs::Color* diffuse_;
372  ::ignition::msgs::Color* specular_;
373  ::ignition::msgs::Vector3d* direction_;
374  int type_;
375  float attenuation_constant_;
376  float attenuation_linear_;
377  float attenuation_quadratic_;
378  float range_;
379  bool cast_shadows_;
380  float spot_inner_angle_;
381  float spot_outer_angle_;
382  float spot_falloff_;
383  ::google::protobuf::uint32 id_;
384  ::google::protobuf::uint32 parent_id_;
385  float intensity_;
386  mutable ::google::protobuf::internal::CachedSize _cached_size_;
387  friend struct ::protobuf_ignition_2fmsgs_2flight_2eproto::TableStruct;
388 };
389 // ===================================================================
390 
391 
392 // ===================================================================
393 
394 #ifdef __GNUC__
395  #pragma GCC diagnostic push
396  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
397 #endif // __GNUC__
398 // Light
399 
400 // .ignition.msgs.Header header = 1;
401 inline bool Light::has_header() const {
402  return this != internal_default_instance() && header_ != NULL;
403 }
404 inline const ::ignition::msgs::Header& Light::_internal_header() const {
405  return *header_;
406 }
407 inline const ::ignition::msgs::Header& Light::header() const {
408  const ::ignition::msgs::Header* p = header_;
409  // @@protoc_insertion_point(field_get:ignition.msgs.Light.header)
410  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
412 }
413 inline ::ignition::msgs::Header* Light::release_header() {
414  // @@protoc_insertion_point(field_release:ignition.msgs.Light.header)
415 
416  ::ignition::msgs::Header* temp = header_;
417  header_ = NULL;
418  return temp;
419 }
420 inline ::ignition::msgs::Header* Light::mutable_header() {
421 
422  if (header_ == NULL) {
423  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
424  header_ = p;
425  }
426  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.header)
427  return header_;
428 }
430  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
431  if (message_arena == NULL) {
432  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
433  }
434  if (header) {
435  ::google::protobuf::Arena* submessage_arena = NULL;
436  if (message_arena != submessage_arena) {
437  header = ::google::protobuf::internal::GetOwnedMessage(
438  message_arena, header, submessage_arena);
439  }
440 
441  } else {
442 
443  }
444  header_ = header;
445  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.header)
446 }
447 
448 // string name = 2;
449 inline void Light::clear_name() {
450  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
451 }
452 inline const ::std::string& Light::name() const {
453  // @@protoc_insertion_point(field_get:ignition.msgs.Light.name)
454  return name_.GetNoArena();
455 }
456 inline void Light::set_name(const ::std::string& value) {
457 
458  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
459  // @@protoc_insertion_point(field_set:ignition.msgs.Light.name)
460 }
461 #if LANG_CXX11
462 inline void Light::set_name(::std::string&& value) {
463 
464  name_.SetNoArena(
465  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
466  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Light.name)
467 }
468 #endif
469 inline void Light::set_name(const char* value) {
470  GOOGLE_DCHECK(value != NULL);
471 
472  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
473  // @@protoc_insertion_point(field_set_char:ignition.msgs.Light.name)
474 }
475 inline void Light::set_name(const char* value, size_t size) {
476 
477  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
478  ::std::string(reinterpret_cast<const char*>(value), size));
479  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Light.name)
480 }
481 inline ::std::string* Light::mutable_name() {
482 
483  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.name)
484  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
485 }
486 inline ::std::string* Light::release_name() {
487  // @@protoc_insertion_point(field_release:ignition.msgs.Light.name)
488 
489  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
490 }
492  if (name != NULL) {
493 
494  } else {
495 
496  }
497  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
498  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.name)
499 }
500 
501 // .ignition.msgs.Light.LightType type = 3;
502 inline void Light::clear_type() {
503  type_ = 0;
504 }
506  // @@protoc_insertion_point(field_get:ignition.msgs.Light.type)
507  return static_cast< ::ignition::msgs::Light_LightType >(type_);
508 }
510 
511  type_ = value;
512  // @@protoc_insertion_point(field_set:ignition.msgs.Light.type)
513 }
514 
515 // .ignition.msgs.Pose pose = 4;
516 inline bool Light::has_pose() const {
517  return this != internal_default_instance() && pose_ != NULL;
518 }
519 inline const ::ignition::msgs::Pose& Light::_internal_pose() const {
520  return *pose_;
521 }
522 inline const ::ignition::msgs::Pose& Light::pose() const {
523  const ::ignition::msgs::Pose* p = pose_;
524  // @@protoc_insertion_point(field_get:ignition.msgs.Light.pose)
525  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Pose*>(
527 }
528 inline ::ignition::msgs::Pose* Light::release_pose() {
529  // @@protoc_insertion_point(field_release:ignition.msgs.Light.pose)
530 
531  ::ignition::msgs::Pose* temp = pose_;
532  pose_ = NULL;
533  return temp;
534 }
535 inline ::ignition::msgs::Pose* Light::mutable_pose() {
536 
537  if (pose_ == NULL) {
538  auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
539  pose_ = p;
540  }
541  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.pose)
542  return pose_;
543 }
545  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
546  if (message_arena == NULL) {
547  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
548  }
549  if (pose) {
550  ::google::protobuf::Arena* submessage_arena = NULL;
551  if (message_arena != submessage_arena) {
552  pose = ::google::protobuf::internal::GetOwnedMessage(
553  message_arena, pose, submessage_arena);
554  }
555 
556  } else {
557 
558  }
559  pose_ = pose;
560  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.pose)
561 }
562 
563 // .ignition.msgs.Color diffuse = 5;
564 inline bool Light::has_diffuse() const {
565  return this != internal_default_instance() && diffuse_ != NULL;
566 }
567 inline const ::ignition::msgs::Color& Light::_internal_diffuse() const {
568  return *diffuse_;
569 }
570 inline const ::ignition::msgs::Color& Light::diffuse() const {
571  const ::ignition::msgs::Color* p = diffuse_;
572  // @@protoc_insertion_point(field_get:ignition.msgs.Light.diffuse)
573  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Color*>(
575 }
576 inline ::ignition::msgs::Color* Light::release_diffuse() {
577  // @@protoc_insertion_point(field_release:ignition.msgs.Light.diffuse)
578 
579  ::ignition::msgs::Color* temp = diffuse_;
580  diffuse_ = NULL;
581  return temp;
582 }
583 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
584 
585  if (diffuse_ == NULL) {
586  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
587  diffuse_ = p;
588  }
589  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.diffuse)
590  return diffuse_;
591 }
593  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
594  if (message_arena == NULL) {
595  delete reinterpret_cast< ::google::protobuf::MessageLite*>(diffuse_);
596  }
597  if (diffuse) {
598  ::google::protobuf::Arena* submessage_arena = NULL;
599  if (message_arena != submessage_arena) {
600  diffuse = ::google::protobuf::internal::GetOwnedMessage(
601  message_arena, diffuse, submessage_arena);
602  }
603 
604  } else {
605 
606  }
607  diffuse_ = diffuse;
608  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.diffuse)
609 }
610 
611 // .ignition.msgs.Color specular = 6;
612 inline bool Light::has_specular() const {
613  return this != internal_default_instance() && specular_ != NULL;
614 }
615 inline const ::ignition::msgs::Color& Light::_internal_specular() const {
616  return *specular_;
617 }
618 inline const ::ignition::msgs::Color& Light::specular() const {
619  const ::ignition::msgs::Color* p = specular_;
620  // @@protoc_insertion_point(field_get:ignition.msgs.Light.specular)
621  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Color*>(
623 }
624 inline ::ignition::msgs::Color* Light::release_specular() {
625  // @@protoc_insertion_point(field_release:ignition.msgs.Light.specular)
626 
627  ::ignition::msgs::Color* temp = specular_;
628  specular_ = NULL;
629  return temp;
630 }
631 inline ::ignition::msgs::Color* Light::mutable_specular() {
632 
633  if (specular_ == NULL) {
634  auto* p = CreateMaybeMessage<::ignition::msgs::Color>(GetArenaNoVirtual());
635  specular_ = p;
636  }
637  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.specular)
638  return specular_;
639 }
641  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
642  if (message_arena == NULL) {
643  delete reinterpret_cast< ::google::protobuf::MessageLite*>(specular_);
644  }
645  if (specular) {
646  ::google::protobuf::Arena* submessage_arena = NULL;
647  if (message_arena != submessage_arena) {
648  specular = ::google::protobuf::internal::GetOwnedMessage(
649  message_arena, specular, submessage_arena);
650  }
651 
652  } else {
653 
654  }
655  specular_ = specular;
656  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.specular)
657 }
658 
659 // float attenuation_constant = 7;
661  attenuation_constant_ = 0;
662 }
663 inline float Light::attenuation_constant() const {
664  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_constant)
665  return attenuation_constant_;
666 }
667 inline void Light::set_attenuation_constant(float value) {
668 
669  attenuation_constant_ = value;
670  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_constant)
671 }
672 
673 // float attenuation_linear = 8;
675  attenuation_linear_ = 0;
676 }
677 inline float Light::attenuation_linear() const {
678  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_linear)
679  return attenuation_linear_;
680 }
681 inline void Light::set_attenuation_linear(float value) {
682 
683  attenuation_linear_ = value;
684  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_linear)
685 }
686 
687 // float attenuation_quadratic = 9;
689  attenuation_quadratic_ = 0;
690 }
691 inline float Light::attenuation_quadratic() const {
692  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_quadratic)
693  return attenuation_quadratic_;
694 }
695 inline void Light::set_attenuation_quadratic(float value) {
696 
697  attenuation_quadratic_ = value;
698  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_quadratic)
699 }
700 
701 // .ignition.msgs.Vector3d direction = 10;
702 inline bool Light::has_direction() const {
703  return this != internal_default_instance() && direction_ != NULL;
704 }
705 inline const ::ignition::msgs::Vector3d& Light::_internal_direction() const {
706  return *direction_;
707 }
708 inline const ::ignition::msgs::Vector3d& Light::direction() const {
709  const ::ignition::msgs::Vector3d* p = direction_;
710  // @@protoc_insertion_point(field_get:ignition.msgs.Light.direction)
711  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Vector3d*>(
713 }
714 inline ::ignition::msgs::Vector3d* Light::release_direction() {
715  // @@protoc_insertion_point(field_release:ignition.msgs.Light.direction)
716 
717  ::ignition::msgs::Vector3d* temp = direction_;
718  direction_ = NULL;
719  return temp;
720 }
721 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
722 
723  if (direction_ == NULL) {
724  auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
725  direction_ = p;
726  }
727  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.direction)
728  return direction_;
729 }
731  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
732  if (message_arena == NULL) {
733  delete reinterpret_cast< ::google::protobuf::MessageLite*>(direction_);
734  }
735  if (direction) {
736  ::google::protobuf::Arena* submessage_arena = NULL;
737  if (message_arena != submessage_arena) {
738  direction = ::google::protobuf::internal::GetOwnedMessage(
739  message_arena, direction, submessage_arena);
740  }
741 
742  } else {
743 
744  }
745  direction_ = direction;
746  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.direction)
747 }
748 
749 // float range = 11;
750 inline void Light::clear_range() {
751  range_ = 0;
752 }
753 inline float Light::range() const {
754  // @@protoc_insertion_point(field_get:ignition.msgs.Light.range)
755  return range_;
756 }
757 inline void Light::set_range(float value) {
758 
759  range_ = value;
760  // @@protoc_insertion_point(field_set:ignition.msgs.Light.range)
761 }
762 
763 // bool cast_shadows = 12;
765  cast_shadows_ = false;
766 }
767 inline bool Light::cast_shadows() const {
768  // @@protoc_insertion_point(field_get:ignition.msgs.Light.cast_shadows)
769  return cast_shadows_;
770 }
771 inline void Light::set_cast_shadows(bool value) {
772 
773  cast_shadows_ = value;
774  // @@protoc_insertion_point(field_set:ignition.msgs.Light.cast_shadows)
775 }
776 
777 // float spot_inner_angle = 13;
779  spot_inner_angle_ = 0;
780 }
781 inline float Light::spot_inner_angle() const {
782  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_inner_angle)
783  return spot_inner_angle_;
784 }
785 inline void Light::set_spot_inner_angle(float value) {
786 
787  spot_inner_angle_ = value;
788  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_inner_angle)
789 }
790 
791 // float spot_outer_angle = 14;
793  spot_outer_angle_ = 0;
794 }
795 inline float Light::spot_outer_angle() const {
796  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_outer_angle)
797  return spot_outer_angle_;
798 }
799 inline void Light::set_spot_outer_angle(float value) {
800 
801  spot_outer_angle_ = value;
802  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_outer_angle)
803 }
804 
805 // float spot_falloff = 15;
807  spot_falloff_ = 0;
808 }
809 inline float Light::spot_falloff() const {
810  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_falloff)
811  return spot_falloff_;
812 }
813 inline void Light::set_spot_falloff(float value) {
814 
815  spot_falloff_ = value;
816  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_falloff)
817 }
818 
819 // uint32 id = 16;
820 inline void Light::clear_id() {
821  id_ = 0u;
822 }
823 inline ::google::protobuf::uint32 Light::id() const {
824  // @@protoc_insertion_point(field_get:ignition.msgs.Light.id)
825  return id_;
826 }
827 inline void Light::set_id(::google::protobuf::uint32 value) {
828 
829  id_ = value;
830  // @@protoc_insertion_point(field_set:ignition.msgs.Light.id)
831 }
832 
833 // uint32 parent_id = 17;
834 inline void Light::clear_parent_id() {
835  parent_id_ = 0u;
836 }
837 inline ::google::protobuf::uint32 Light::parent_id() const {
838  // @@protoc_insertion_point(field_get:ignition.msgs.Light.parent_id)
839  return parent_id_;
840 }
841 inline void Light::set_parent_id(::google::protobuf::uint32 value) {
842 
843  parent_id_ = value;
844  // @@protoc_insertion_point(field_set:ignition.msgs.Light.parent_id)
845 }
846 
847 // float intensity = 18;
848 inline void Light::clear_intensity() {
849  intensity_ = 0;
850 }
851 inline float Light::intensity() const {
852  // @@protoc_insertion_point(field_get:ignition.msgs.Light.intensity)
853  return intensity_;
854 }
855 inline void Light::set_intensity(float value) {
856 
857  intensity_ = value;
858  // @@protoc_insertion_point(field_set:ignition.msgs.Light.intensity)
859 }
860 
861 #ifdef __GNUC__
862  #pragma GCC diagnostic pop
863 #endif // __GNUC__
864 
869 // @@protoc_insertion_point(namespace_scope)
870 
871 } // namespace msgs
872 } // namespace ignition
873 
874 namespace google {
875 namespace protobuf {
876 
877 template <> struct is_proto_enum< ::ignition::msgs::Light_LightType> : ::std::true_type {};
878 template <>
879 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
881 }
882 
883 } // namespace protobuf
884 } // namespace google
885 
886 #ifdef _MSC_VER
887 #pragma warning(pop)
888 #endif
889 // @@protoc_insertion_point(global_scope)
890 
891 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2flight_2eproto
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:407
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * Light_LightType_descriptor()
static const Light * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:133
std::shared_ptr< Light > LightSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:867
float attenuation_constant() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:663
::std::string * release_name()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:486
STL class.
STL class.
@ Light_LightType_Light_LightType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:84
void clear_attenuation_constant()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:660
::ignition::msgs::Color * mutable_diffuse()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:583
Light_LightType
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:79
Light * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:147
T move(T... args)
void set_intensity(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:855
void set_attenuation_quadratic(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:695
Definition: build/ignition-msgs8/include/ignition/msgs/vector3d.pb.h:77
void clear_spot_inner_angle()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:778
void set_name(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:456
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:868
static const ::google::protobuf::EnumDescriptor * LightType_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:205
::ignition::msgs::Light_LightType type() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:505
Definition: build/ignition-msgs8/include/ignition/msgs/pose.pb.h:79
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:52
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:491
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:544
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:413
::ignition::msgs::Vector3d * mutable_direction()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:721
void clear_range()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:750
void IGNITION_MSGS_VISIBLE AddDescriptors()
void set_parent_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:841
void clear_cast_shadows()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:764
IGNITION_MSGS_VISIBLE PoseDefaultTypeInternal _Pose_default_instance_
void set_cast_shadows(bool value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:771
::ignition::msgs::Color * mutable_specular()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:631
static const ::std::string & LightType_Name(LightType value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:208
void set_allocated_direction(::ignition::msgs::Vector3d *direction)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:730
const ::ignition::msgs::Color & specular() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:618
static bool LightType_Parse(const ::std::string &name, LightType *value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:211
void clear_attenuation_quadratic()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:688
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:420
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:429
IGNITION_MSGS_VISIBLE ColorDefaultTypeInternal _Color_default_instance_
std::unique_ptr< const Light > ConstLightUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:866
void set_spot_falloff(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:813
::ignition::msgs::Pose * release_pose()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:528
void clear_spot_falloff()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:806
@ Light_LightType_POINT
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:80
bool has_specular() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:612
float attenuation_linear() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:677
void clear_intensity()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:848
void clear_type()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:502
@ Light_LightType_Light_LightType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:83
::std::string * mutable_name()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:481
void set_allocated_specular(::ignition::msgs::Color *specular)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:640
Definition: build/ignition-msgs8/include/ignition/msgs/color.pb.h:77
const int Light_LightType_LightType_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:89
const ::ignition::msgs::Pose & pose() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:522
void clear_name()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:449
::ignition::msgs::Color * release_diffuse()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:576
Light * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:151
::ignition::msgs::Vector3d * release_direction()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:714
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:401
float attenuation_quadratic() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:691
@ Light_LightType_DIRECTIONAL
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:82
bool has_pose() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:516
const ::ignition::msgs::Color & diffuse() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:570
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:592
void clear_attenuation_linear()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:674
@ Light_LightType_SPOT
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:81
const ::ignition::msgs::Vector3d & direction() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:708
void set_attenuation_linear(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:681
bool Light_LightType_Parse(const ::std::string &name, Light_LightType *value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:96
float spot_inner_angle() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:781
void clear_spot_outer_angle()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:792
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
const ::std::string & name() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:452
friend void swap(Light &a, Light &b)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:141
::google::protobuf::uint32 id() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:823
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_range(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:757
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:103
float range() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:753
Light & operator=(const Light &from)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:110
float spot_falloff() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:809
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value)
const Light_LightType Light_LightType_LightType_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:87
::ignition::msgs::Color * release_specular()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:624
IGNITION_MSGS_VISIBLE LightDefaultTypeInternal _Light_default_instance_
void Swap(Light *other)
float spot_outer_angle() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:795
void set_spot_outer_angle(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:799
const Light_LightType Light_LightType_LightType_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:88
std::unique_ptr< Light > LightUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:865
void set_spot_inner_angle(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:785
void clear_parent_id()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:834
void set_attenuation_constant(float value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:667
void set_type(::ignition::msgs::Light_LightType value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:509
const ::std::string & Light_LightType_Name(Light_LightType value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:92
bool has_direction() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:702
bool has_diffuse() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:564
::google::protobuf::uint32 parent_id() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:837
STL class.
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:54
void set_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:827
::ignition::msgs::Pose * mutable_pose()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:535
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
float intensity() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:851
void clear_id()
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:820
bool cast_shadows() const
Definition: build/ignition-msgs8/include/ignition/msgs/light.pb.h:767