Ignition Msgs

API Reference

8.4.0
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_ignition_2fmsgs_2flight_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2flight_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
32 #include "ignition/msgs/pose.pb.h"
34 #include "ignition/msgs/color.pb.h"
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 
48 namespace ignition {
49 namespace msgs {
50 
51 // Internal implementation detail -- do not call these.
52 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flight_2eproto();
55 
56 class Light;
57 
64 };
65 IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value);
68 const int Light_LightType_LightType_ARRAYSIZE = Light_LightType_LightType_MAX + 1;
69 
70 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Light_LightType_descriptor();
71 inline const ::std::string& Light_LightType_Name(Light_LightType value) {
72  return ::google::protobuf::internal::NameOfEnum(
74 }
76  const ::std::string& name, Light_LightType* value) {
77  return ::google::protobuf::internal::ParseNamedEnum<Light_LightType>(
78  Light_LightType_descriptor(), name, value);
79 }
80 // ===================================================================
81 
82 class IGNITION_MSGS_VISIBLE Light : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Light) */ {
83  public:
84  Light();
85  virtual ~Light();
86 
87  Light(const Light& from);
88 
89  inline Light& operator=(const Light& from) {
90  CopyFrom(from);
91  return *this;
92  }
93 
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const Light& default_instance();
96 
97  void Swap(Light* other);
98 
99  // implements Message ----------------------------------------------
100 
101  inline Light* New() const { return New(NULL); }
102 
103  Light* New(::google::protobuf::Arena* arena) const;
104  void CopyFrom(const ::google::protobuf::Message& from);
105  void MergeFrom(const ::google::protobuf::Message& from);
106  void CopyFrom(const Light& from);
107  void MergeFrom(const Light& from);
108  void Clear();
109  bool IsInitialized() const;
110 
111  int ByteSize() const;
112  bool MergePartialFromCodedStream(
113  ::google::protobuf::io::CodedInputStream* input);
114  void SerializeWithCachedSizes(
115  ::google::protobuf::io::CodedOutputStream* output) const;
116  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
117  bool deterministic, ::google::protobuf::uint8* output) const;
118  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
119  return InternalSerializeWithCachedSizesToArray(false, output);
120  }
121  int GetCachedSize() const { return _cached_size_; }
122  private:
123  void SharedCtor();
124  void SharedDtor();
125  void SetCachedSize(int size) const;
126  void InternalSwap(Light* other);
127  private:
128  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
129  return _internal_metadata_.arena();
130  }
131  inline void* MaybeArenaPtr() const {
132  return _internal_metadata_.raw_arena_ptr();
133  }
134  public:
135 
136  ::google::protobuf::Metadata GetMetadata() const;
137 
138  // nested types ----------------------------------------------------
139 
141  static const LightType POINT =
143  static const LightType SPOT =
145  static const LightType DIRECTIONAL =
147  static inline bool LightType_IsValid(int value) {
148  return Light_LightType_IsValid(value);
149  }
150  static const LightType LightType_MIN =
152  static const LightType LightType_MAX =
154  static const int LightType_ARRAYSIZE =
156  static inline const ::google::protobuf::EnumDescriptor*
159  }
160  static inline const ::std::string& LightType_Name(LightType value) {
161  return Light_LightType_Name(value);
162  }
163  static inline bool LightType_Parse(const ::std::string& name,
164  LightType* value) {
165  return Light_LightType_Parse(name, value);
166  }
167 
168  // accessors -------------------------------------------------------
169 
170  // optional .ignition.msgs.Header header = 1;
171  bool has_header() const;
172  void clear_header();
173  static const int kHeaderFieldNumber = 1;
174  const ::ignition::msgs::Header& header() const;
175  ::ignition::msgs::Header* mutable_header();
176  ::ignition::msgs::Header* release_header();
177  void set_allocated_header(::ignition::msgs::Header* header);
178 
179  // optional string name = 2;
180  void clear_name();
181  static const int kNameFieldNumber = 2;
182  const ::std::string& name() const;
183  void set_name(const ::std::string& value);
184  void set_name(const char* value);
185  void set_name(const char* value, size_t size);
186  ::std::string* mutable_name();
187  ::std::string* release_name();
188  void set_allocated_name(::std::string* name);
189 
190  // optional .ignition.msgs.Light.LightType type = 3;
191  void clear_type();
192  static const int kTypeFieldNumber = 3;
194  void set_type(::ignition::msgs::Light_LightType value);
195 
196  // optional .ignition.msgs.Pose pose = 4;
197  bool has_pose() const;
198  void clear_pose();
199  static const int kPoseFieldNumber = 4;
200  const ::ignition::msgs::Pose& pose() const;
201  ::ignition::msgs::Pose* mutable_pose();
202  ::ignition::msgs::Pose* release_pose();
203  void set_allocated_pose(::ignition::msgs::Pose* pose);
204 
205  // optional .ignition.msgs.Color diffuse = 5;
206  bool has_diffuse() const;
207  void clear_diffuse();
208  static const int kDiffuseFieldNumber = 5;
209  const ::ignition::msgs::Color& diffuse() const;
210  ::ignition::msgs::Color* mutable_diffuse();
211  ::ignition::msgs::Color* release_diffuse();
212  void set_allocated_diffuse(::ignition::msgs::Color* diffuse);
213 
214  // optional .ignition.msgs.Color specular = 6;
215  bool has_specular() const;
216  void clear_specular();
217  static const int kSpecularFieldNumber = 6;
218  const ::ignition::msgs::Color& specular() const;
219  ::ignition::msgs::Color* mutable_specular();
220  ::ignition::msgs::Color* release_specular();
221  void set_allocated_specular(::ignition::msgs::Color* specular);
222 
223  // optional float attenuation_constant = 7;
224  void clear_attenuation_constant();
225  static const int kAttenuationConstantFieldNumber = 7;
226  float attenuation_constant() const;
227  void set_attenuation_constant(float value);
228 
229  // optional float attenuation_linear = 8;
230  void clear_attenuation_linear();
231  static const int kAttenuationLinearFieldNumber = 8;
232  float attenuation_linear() const;
233  void set_attenuation_linear(float value);
234 
235  // optional float attenuation_quadratic = 9;
236  void clear_attenuation_quadratic();
237  static const int kAttenuationQuadraticFieldNumber = 9;
238  float attenuation_quadratic() const;
239  void set_attenuation_quadratic(float value);
240 
241  // optional .ignition.msgs.Vector3d direction = 10;
242  bool has_direction() const;
243  void clear_direction();
244  static const int kDirectionFieldNumber = 10;
245  const ::ignition::msgs::Vector3d& direction() const;
246  ::ignition::msgs::Vector3d* mutable_direction();
247  ::ignition::msgs::Vector3d* release_direction();
248  void set_allocated_direction(::ignition::msgs::Vector3d* direction);
249 
250  // optional float range = 11;
251  void clear_range();
252  static const int kRangeFieldNumber = 11;
253  float range() const;
254  void set_range(float value);
255 
256  // optional bool cast_shadows = 12;
257  void clear_cast_shadows();
258  static const int kCastShadowsFieldNumber = 12;
259  bool cast_shadows() const;
260  void set_cast_shadows(bool value);
261 
262  // optional float spot_inner_angle = 13;
263  void clear_spot_inner_angle();
264  static const int kSpotInnerAngleFieldNumber = 13;
265  float spot_inner_angle() const;
266  void set_spot_inner_angle(float value);
267 
268  // optional float spot_outer_angle = 14;
269  void clear_spot_outer_angle();
270  static const int kSpotOuterAngleFieldNumber = 14;
271  float spot_outer_angle() const;
272  void set_spot_outer_angle(float value);
273 
274  // optional float spot_falloff = 15;
275  void clear_spot_falloff();
276  static const int kSpotFalloffFieldNumber = 15;
277  float spot_falloff() const;
278  void set_spot_falloff(float value);
279 
280  // optional uint32 id = 16;
281  void clear_id();
282  static const int kIdFieldNumber = 16;
283  ::google::protobuf::uint32 id() const;
284  void set_id(::google::protobuf::uint32 value);
285 
286  // optional uint32 parent_id = 17;
287  void clear_parent_id();
288  static const int kParentIdFieldNumber = 17;
289  ::google::protobuf::uint32 parent_id() const;
290  void set_parent_id(::google::protobuf::uint32 value);
291 
292  // optional float intensity = 18;
293  void clear_intensity();
294  static const int kIntensityFieldNumber = 18;
295  float intensity() const;
296  void set_intensity(float value);
297 
298  // @@protoc_insertion_point(class_scope:ignition.msgs.Light)
299  private:
300 
301  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
302  bool _is_default_instance_;
303  ::ignition::msgs::Header* header_;
304  ::google::protobuf::internal::ArenaStringPtr name_;
305  ::ignition::msgs::Pose* pose_;
306  ::ignition::msgs::Color* diffuse_;
307  int type_;
308  float attenuation_constant_;
309  ::ignition::msgs::Color* specular_;
310  float attenuation_linear_;
311  float attenuation_quadratic_;
312  ::ignition::msgs::Vector3d* direction_;
313  float range_;
314  bool cast_shadows_;
315  float spot_inner_angle_;
316  float spot_outer_angle_;
317  float spot_falloff_;
318  ::google::protobuf::uint32 id_;
319  ::google::protobuf::uint32 parent_id_;
320  float intensity_;
321  mutable int _cached_size_;
322  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flight_2eproto();
325 
326  void InitAsDefaultInstance();
327  static Light* default_instance_;
328 };
329 // ===================================================================
330 
331 
332 // ===================================================================
333 
334 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
335 // Light
336 
337 // optional .ignition.msgs.Header header = 1;
338 inline bool Light::has_header() const {
339  return !_is_default_instance_ && header_ != NULL;
340 }
341 inline void Light::clear_header() {
342  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
343  header_ = NULL;
344 }
345 inline const ::ignition::msgs::Header& Light::header() const {
346  // @@protoc_insertion_point(field_get:ignition.msgs.Light.header)
347  return header_ != NULL ? *header_ : *default_instance_->header_;
348 }
349 inline ::ignition::msgs::Header* Light::mutable_header() {
350 
351  if (header_ == NULL) {
352  header_ = new ::ignition::msgs::Header;
353  }
354  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.header)
355  return header_;
356 }
357 inline ::ignition::msgs::Header* Light::release_header() {
358  // @@protoc_insertion_point(field_release:ignition.msgs.Light.header)
359 
360  ::ignition::msgs::Header* temp = header_;
361  header_ = NULL;
362  return temp;
363 }
365  delete header_;
366  header_ = header;
367  if (header) {
368 
369  } else {
370 
371  }
372  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.header)
373 }
374 
375 // optional string name = 2;
376 inline void Light::clear_name() {
377  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
378 }
379 inline const ::std::string& Light::name() const {
380  // @@protoc_insertion_point(field_get:ignition.msgs.Light.name)
381  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382 }
383 inline void Light::set_name(const ::std::string& value) {
384 
385  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
386  // @@protoc_insertion_point(field_set:ignition.msgs.Light.name)
387 }
388 inline void Light::set_name(const char* value) {
389 
390  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
391  // @@protoc_insertion_point(field_set_char:ignition.msgs.Light.name)
392 }
393 inline void Light::set_name(const char* value, size_t size) {
394 
395  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
396  ::std::string(reinterpret_cast<const char*>(value), size));
397  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Light.name)
398 }
399 inline ::std::string* Light::mutable_name() {
400 
401  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.name)
402  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403 }
404 inline ::std::string* Light::release_name() {
405  // @@protoc_insertion_point(field_release:ignition.msgs.Light.name)
406 
407  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 }
410  if (name != NULL) {
411 
412  } else {
413 
414  }
415  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
416  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.name)
417 }
418 
419 // optional .ignition.msgs.Light.LightType type = 3;
420 inline void Light::clear_type() {
421  type_ = 0;
422 }
424  // @@protoc_insertion_point(field_get:ignition.msgs.Light.type)
425  return static_cast< ::ignition::msgs::Light_LightType >(type_);
426 }
428 
429  type_ = value;
430  // @@protoc_insertion_point(field_set:ignition.msgs.Light.type)
431 }
432 
433 // optional .ignition.msgs.Pose pose = 4;
434 inline bool Light::has_pose() const {
435  return !_is_default_instance_ && pose_ != NULL;
436 }
437 inline void Light::clear_pose() {
438  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
439  pose_ = NULL;
440 }
441 inline const ::ignition::msgs::Pose& Light::pose() const {
442  // @@protoc_insertion_point(field_get:ignition.msgs.Light.pose)
443  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
444 }
445 inline ::ignition::msgs::Pose* Light::mutable_pose() {
446 
447  if (pose_ == NULL) {
448  pose_ = new ::ignition::msgs::Pose;
449  }
450  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.pose)
451  return pose_;
452 }
453 inline ::ignition::msgs::Pose* Light::release_pose() {
454  // @@protoc_insertion_point(field_release:ignition.msgs.Light.pose)
455 
456  ::ignition::msgs::Pose* temp = pose_;
457  pose_ = NULL;
458  return temp;
459 }
461  delete pose_;
462  pose_ = pose;
463  if (pose) {
464 
465  } else {
466 
467  }
468  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.pose)
469 }
470 
471 // optional .ignition.msgs.Color diffuse = 5;
472 inline bool Light::has_diffuse() const {
473  return !_is_default_instance_ && diffuse_ != NULL;
474 }
475 inline void Light::clear_diffuse() {
476  if (GetArenaNoVirtual() == NULL && diffuse_ != NULL) delete diffuse_;
477  diffuse_ = NULL;
478 }
479 inline const ::ignition::msgs::Color& Light::diffuse() const {
480  // @@protoc_insertion_point(field_get:ignition.msgs.Light.diffuse)
481  return diffuse_ != NULL ? *diffuse_ : *default_instance_->diffuse_;
482 }
483 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
484 
485  if (diffuse_ == NULL) {
486  diffuse_ = new ::ignition::msgs::Color;
487  }
488  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.diffuse)
489  return diffuse_;
490 }
491 inline ::ignition::msgs::Color* Light::release_diffuse() {
492  // @@protoc_insertion_point(field_release:ignition.msgs.Light.diffuse)
493 
494  ::ignition::msgs::Color* temp = diffuse_;
495  diffuse_ = NULL;
496  return temp;
497 }
499  delete diffuse_;
500  diffuse_ = diffuse;
501  if (diffuse) {
502 
503  } else {
504 
505  }
506  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.diffuse)
507 }
508 
509 // optional .ignition.msgs.Color specular = 6;
510 inline bool Light::has_specular() const {
511  return !_is_default_instance_ && specular_ != NULL;
512 }
513 inline void Light::clear_specular() {
514  if (GetArenaNoVirtual() == NULL && specular_ != NULL) delete specular_;
515  specular_ = NULL;
516 }
517 inline const ::ignition::msgs::Color& Light::specular() const {
518  // @@protoc_insertion_point(field_get:ignition.msgs.Light.specular)
519  return specular_ != NULL ? *specular_ : *default_instance_->specular_;
520 }
521 inline ::ignition::msgs::Color* Light::mutable_specular() {
522 
523  if (specular_ == NULL) {
524  specular_ = new ::ignition::msgs::Color;
525  }
526  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.specular)
527  return specular_;
528 }
529 inline ::ignition::msgs::Color* Light::release_specular() {
530  // @@protoc_insertion_point(field_release:ignition.msgs.Light.specular)
531 
532  ::ignition::msgs::Color* temp = specular_;
533  specular_ = NULL;
534  return temp;
535 }
537  delete specular_;
538  specular_ = specular;
539  if (specular) {
540 
541  } else {
542 
543  }
544  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.specular)
545 }
546 
547 // optional float attenuation_constant = 7;
549  attenuation_constant_ = 0;
550 }
551 inline float Light::attenuation_constant() const {
552  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_constant)
553  return attenuation_constant_;
554 }
555 inline void Light::set_attenuation_constant(float value) {
556 
557  attenuation_constant_ = value;
558  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_constant)
559 }
560 
561 // optional float attenuation_linear = 8;
563  attenuation_linear_ = 0;
564 }
565 inline float Light::attenuation_linear() const {
566  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_linear)
567  return attenuation_linear_;
568 }
569 inline void Light::set_attenuation_linear(float value) {
570 
571  attenuation_linear_ = value;
572  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_linear)
573 }
574 
575 // optional float attenuation_quadratic = 9;
577  attenuation_quadratic_ = 0;
578 }
579 inline float Light::attenuation_quadratic() const {
580  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_quadratic)
581  return attenuation_quadratic_;
582 }
583 inline void Light::set_attenuation_quadratic(float value) {
584 
585  attenuation_quadratic_ = value;
586  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_quadratic)
587 }
588 
589 // optional .ignition.msgs.Vector3d direction = 10;
590 inline bool Light::has_direction() const {
591  return !_is_default_instance_ && direction_ != NULL;
592 }
593 inline void Light::clear_direction() {
594  if (GetArenaNoVirtual() == NULL && direction_ != NULL) delete direction_;
595  direction_ = NULL;
596 }
597 inline const ::ignition::msgs::Vector3d& Light::direction() const {
598  // @@protoc_insertion_point(field_get:ignition.msgs.Light.direction)
599  return direction_ != NULL ? *direction_ : *default_instance_->direction_;
600 }
601 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
602 
603  if (direction_ == NULL) {
604  direction_ = new ::ignition::msgs::Vector3d;
605  }
606  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.direction)
607  return direction_;
608 }
609 inline ::ignition::msgs::Vector3d* Light::release_direction() {
610  // @@protoc_insertion_point(field_release:ignition.msgs.Light.direction)
611 
612  ::ignition::msgs::Vector3d* temp = direction_;
613  direction_ = NULL;
614  return temp;
615 }
617  delete direction_;
618  direction_ = direction;
619  if (direction) {
620 
621  } else {
622 
623  }
624  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.direction)
625 }
626 
627 // optional float range = 11;
628 inline void Light::clear_range() {
629  range_ = 0;
630 }
631 inline float Light::range() const {
632  // @@protoc_insertion_point(field_get:ignition.msgs.Light.range)
633  return range_;
634 }
635 inline void Light::set_range(float value) {
636 
637  range_ = value;
638  // @@protoc_insertion_point(field_set:ignition.msgs.Light.range)
639 }
640 
641 // optional bool cast_shadows = 12;
643  cast_shadows_ = false;
644 }
645 inline bool Light::cast_shadows() const {
646  // @@protoc_insertion_point(field_get:ignition.msgs.Light.cast_shadows)
647  return cast_shadows_;
648 }
649 inline void Light::set_cast_shadows(bool value) {
650 
651  cast_shadows_ = value;
652  // @@protoc_insertion_point(field_set:ignition.msgs.Light.cast_shadows)
653 }
654 
655 // optional float spot_inner_angle = 13;
657  spot_inner_angle_ = 0;
658 }
659 inline float Light::spot_inner_angle() const {
660  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_inner_angle)
661  return spot_inner_angle_;
662 }
663 inline void Light::set_spot_inner_angle(float value) {
664 
665  spot_inner_angle_ = value;
666  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_inner_angle)
667 }
668 
669 // optional float spot_outer_angle = 14;
671  spot_outer_angle_ = 0;
672 }
673 inline float Light::spot_outer_angle() const {
674  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_outer_angle)
675  return spot_outer_angle_;
676 }
677 inline void Light::set_spot_outer_angle(float value) {
678 
679  spot_outer_angle_ = value;
680  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_outer_angle)
681 }
682 
683 // optional float spot_falloff = 15;
685  spot_falloff_ = 0;
686 }
687 inline float Light::spot_falloff() const {
688  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_falloff)
689  return spot_falloff_;
690 }
691 inline void Light::set_spot_falloff(float value) {
692 
693  spot_falloff_ = value;
694  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_falloff)
695 }
696 
697 // optional uint32 id = 16;
698 inline void Light::clear_id() {
699  id_ = 0u;
700 }
701 inline ::google::protobuf::uint32 Light::id() const {
702  // @@protoc_insertion_point(field_get:ignition.msgs.Light.id)
703  return id_;
704 }
705 inline void Light::set_id(::google::protobuf::uint32 value) {
706 
707  id_ = value;
708  // @@protoc_insertion_point(field_set:ignition.msgs.Light.id)
709 }
710 
711 // optional uint32 parent_id = 17;
712 inline void Light::clear_parent_id() {
713  parent_id_ = 0u;
714 }
715 inline ::google::protobuf::uint32 Light::parent_id() const {
716  // @@protoc_insertion_point(field_get:ignition.msgs.Light.parent_id)
717  return parent_id_;
718 }
719 inline void Light::set_parent_id(::google::protobuf::uint32 value) {
720 
721  parent_id_ = value;
722  // @@protoc_insertion_point(field_set:ignition.msgs.Light.parent_id)
723 }
724 
725 // optional float intensity = 18;
726 inline void Light::clear_intensity() {
727  intensity_ = 0;
728 }
729 inline float Light::intensity() const {
730  // @@protoc_insertion_point(field_get:ignition.msgs.Light.intensity)
731  return intensity_;
732 }
733 inline void Light::set_intensity(float value) {
734 
735  intensity_ = value;
736  // @@protoc_insertion_point(field_set:ignition.msgs.Light.intensity)
737 }
738 
739 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
740 
745 // @@protoc_insertion_point(namespace_scope)
746 
747 } // namespace msgs
748 } // namespace ignition
749 
750 #ifndef SWIG
751 namespace google {
752 namespace protobuf {
753 
754 template <> struct is_proto_enum< ::ignition::msgs::Light_LightType> : ::google::protobuf::internal::true_type {};
755 template <>
756 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
758 }
759 
760 } // namespace protobuf
761 } // namespace google
762 #endif // SWIG
763 
764 #ifdef _MSC_VER
765 #pragma warning(pop)
766 #endif
767 // @@protoc_insertion_point(global_scope)
768 
769 #endif // PROTOBUF_ignition_2fmsgs_2flight_2eproto__INCLUDED
::ignition::msgs::Pose * mutable_pose()
Definition: light.pb.h:445
bool Light_LightType_Parse(const ::std::string &name, Light_LightType *value)
Definition: light.pb.h:75
Definition: pose.pb.h:58
float spot_falloff() const
Definition: light.pb.h:687
bool cast_shadows() const
Definition: light.pb.h:645
void protobuf_ShutdownFile_ignition_2fmsgs_2flight_2eproto()
void clear_header()
Definition: light.pb.h:341
static const ::google::protobuf::EnumDescriptor * LightType_descriptor()
Definition: light.pb.h:157
void clear_attenuation_quadratic()
Definition: light.pb.h:576
const ::std::string & Light_LightType_Name(Light_LightType value)
Definition: light.pb.h:71
IGNITION_MSGS_VISIBLE bool Light_LightType_IsValid(int value)
int GetCachedSize() const
Definition: light.pb.h:121
::ignition::msgs::Vector3d * mutable_direction()
Definition: light.pb.h:601
::ignition::msgs::Header * release_header()
Definition: light.pb.h:357
const ::ignition::msgs::Header & header() const
Definition: light.pb.h:345
Light_LightType LightType
Definition: light.pb.h:140
::std::string * release_name()
Definition: light.pb.h:404
void clear_attenuation_constant()
Definition: light.pb.h:548
void clear_range()
Definition: light.pb.h:628
void set_intensity(float value)
Definition: light.pb.h:733
float attenuation_linear() const
Definition: light.pb.h:565
::google::protobuf::uint32 parent_id() const
Definition: light.pb.h:715
void clear_cast_shadows()
Definition: light.pb.h:642
Definition: light.pb.h:82
void set_attenuation_quadratic(float value)
Definition: light.pb.h:583
void set_cast_shadows(bool value)
Definition: light.pb.h:649
void protobuf_AssignDesc_ignition_2fmsgs_2flight_2eproto()
const ::ignition::msgs::Pose & pose() const
Definition: light.pb.h:441
void clear_spot_inner_angle()
Definition: light.pb.h:656
::ignition::msgs::Light_LightType type() const
Definition: light.pb.h:423
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flight_2eproto()
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: light.pb.h:460
void set_allocated_header(::ignition::msgs::Header *header)
Definition: light.pb.h:364
void set_spot_falloff(float value)
Definition: light.pb.h:691
std::unique_ptr< const Light > ConstLightUniquePtr
Definition: light.pb.h:742
void set_allocated_name(::std::string *name)
Definition: light.pb.h:409
const ::ignition::msgs::Color & diffuse() const
Definition: light.pb.h:479
void clear_spot_falloff()
Definition: light.pb.h:684
void clear_diffuse()
Definition: light.pb.h:475
Definition: header.pb.h:161
bool has_specular() const
Definition: light.pb.h:510
STL class.
void clear_intensity()
Definition: light.pb.h:726
::ignition::msgs::Color * mutable_diffuse()
Definition: light.pb.h:483
const int Light_LightType_LightType_ARRAYSIZE
Definition: light.pb.h:68
void set_parent_id(::google::protobuf::uint32 value)
Definition: light.pb.h:719
::ignition::msgs::Color * mutable_specular()
Definition: light.pb.h:521
static const ::std::string & LightType_Name(LightType value)
Definition: light.pb.h:160
Light_LightType
Definition: light.pb.h:58
void set_allocated_direction(::ignition::msgs::Vector3d *direction)
Definition: light.pb.h:616
::ignition::msgs::Color * release_diffuse()
Definition: light.pb.h:491
float attenuation_quadratic() const
Definition: light.pb.h:579
static bool LightType_Parse(const ::std::string &name, LightType *value)
Definition: light.pb.h:163
::ignition::msgs::Color * release_specular()
Definition: light.pb.h:529
const Light_LightType Light_LightType_LightType_MIN
Definition: light.pb.h:66
::ignition::msgs::Header * mutable_header()
Definition: light.pb.h:349
bool has_pose() const
Definition: light.pb.h:434
void set_spot_inner_angle(float value)
Definition: light.pb.h:663
const ::ignition::msgs::Vector3d & direction() const
Definition: light.pb.h:597
float spot_inner_angle() const
Definition: light.pb.h:659
void clear_type()
Definition: light.pb.h:420
::ignition::msgs::Pose * release_pose()
Definition: light.pb.h:453
::google::protobuf::uint32 id() const
Definition: light.pb.h:701
static bool LightType_IsValid(int value)
Definition: light.pb.h:147
::std::string * mutable_name()
Definition: light.pb.h:399
void clear_name()
Definition: light.pb.h:376
void set_allocated_specular(::ignition::msgs::Color *specular)
Definition: light.pb.h:536
Definition: color.pb.h:56
bool has_header() const
Definition: light.pb.h:338
Definition: vector3d.pb.h:56
::ignition::msgs::Vector3d * release_direction()
Definition: light.pb.h:609
const ::ignition::msgs::Color & specular() const
Definition: light.pb.h:517
STL class.
void clear_direction()
Definition: light.pb.h:593
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: light.pb.h:744
void set_attenuation_constant(float value)
Definition: light.pb.h:555
void set_attenuation_linear(float value)
Definition: light.pb.h:569
void clear_attenuation_linear()
Definition: light.pb.h:562
void set_type(::ignition::msgs::Light_LightType value)
Definition: light.pb.h:427
bool has_direction() const
Definition: light.pb.h:590
const ::std::string & name() const
Definition: light.pb.h:379
const Light_LightType Light_LightType_LightType_MAX
Definition: light.pb.h:67
bool has_diffuse() const
Definition: light.pb.h:472
void set_range(float value)
Definition: light.pb.h:635
std::shared_ptr< Light > LightSharedPtr
Definition: light.pb.h:743
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: light.pb.h:118
void set_id(::google::protobuf::uint32 value)
Definition: light.pb.h:705
Definition: any.pb.h:839
float intensity() const
Definition: light.pb.h:729
float range() const
Definition: light.pb.h:631
void clear_id()
Definition: light.pb.h:698
void set_name(const ::std::string &value)
Definition: light.pb.h:383
Light & operator=(const Light &from)
Definition: light.pb.h:89
Definition: light.pb.h:59
void set_spot_outer_angle(float value)
Definition: light.pb.h:677
Light * New() const
Definition: light.pb.h:101
Definition: light.pb.h:60
float spot_outer_angle() const
Definition: light.pb.h:673
std::unique_ptr< Light > LightUniquePtr
Definition: light.pb.h:741
void clear_specular()
Definition: light.pb.h:513
float attenuation_constant() const
Definition: light.pb.h:551
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: light.pb.h:498
void clear_parent_id()
Definition: light.pb.h:712
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Light_LightType_descriptor()
void clear_spot_outer_angle()
Definition: light.pb.h:670
void clear_pose()
Definition: light.pb.h:437