Ignition Msgs

API Reference

6.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  // @@protoc_insertion_point(class_scope:ignition.msgs.Light)
293  private:
294 
295  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
296  bool _is_default_instance_;
297  ::ignition::msgs::Header* header_;
298  ::google::protobuf::internal::ArenaStringPtr name_;
299  ::ignition::msgs::Pose* pose_;
300  ::ignition::msgs::Color* diffuse_;
301  int type_;
302  float attenuation_constant_;
303  ::ignition::msgs::Color* specular_;
304  float attenuation_linear_;
305  float attenuation_quadratic_;
306  ::ignition::msgs::Vector3d* direction_;
307  float range_;
308  bool cast_shadows_;
309  float spot_inner_angle_;
310  float spot_outer_angle_;
311  float spot_falloff_;
312  ::google::protobuf::uint32 id_;
313  ::google::protobuf::uint32 parent_id_;
314  mutable int _cached_size_;
315  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flight_2eproto();
318 
319  void InitAsDefaultInstance();
320  static Light* default_instance_;
321 };
322 // ===================================================================
323 
324 
325 // ===================================================================
326 
327 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
328 // Light
329 
330 // optional .ignition.msgs.Header header = 1;
331 inline bool Light::has_header() const {
332  return !_is_default_instance_ && header_ != NULL;
333 }
334 inline void Light::clear_header() {
335  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
336  header_ = NULL;
337 }
338 inline const ::ignition::msgs::Header& Light::header() const {
339  // @@protoc_insertion_point(field_get:ignition.msgs.Light.header)
340  return header_ != NULL ? *header_ : *default_instance_->header_;
341 }
342 inline ::ignition::msgs::Header* Light::mutable_header() {
343 
344  if (header_ == NULL) {
345  header_ = new ::ignition::msgs::Header;
346  }
347  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.header)
348  return header_;
349 }
350 inline ::ignition::msgs::Header* Light::release_header() {
351  // @@protoc_insertion_point(field_release:ignition.msgs.Light.header)
352 
353  ::ignition::msgs::Header* temp = header_;
354  header_ = NULL;
355  return temp;
356 }
358  delete header_;
359  header_ = header;
360  if (header) {
361 
362  } else {
363 
364  }
365  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.header)
366 }
367 
368 // optional string name = 2;
369 inline void Light::clear_name() {
370  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
371 }
372 inline const ::std::string& Light::name() const {
373  // @@protoc_insertion_point(field_get:ignition.msgs.Light.name)
374  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 }
376 inline void Light::set_name(const ::std::string& value) {
377 
378  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
379  // @@protoc_insertion_point(field_set:ignition.msgs.Light.name)
380 }
381 inline void Light::set_name(const char* value) {
382 
383  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
384  // @@protoc_insertion_point(field_set_char:ignition.msgs.Light.name)
385 }
386 inline void Light::set_name(const char* value, size_t size) {
387 
388  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
389  ::std::string(reinterpret_cast<const char*>(value), size));
390  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Light.name)
391 }
392 inline ::std::string* Light::mutable_name() {
393 
394  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.name)
395  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
396 }
397 inline ::std::string* Light::release_name() {
398  // @@protoc_insertion_point(field_release:ignition.msgs.Light.name)
399 
400  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
401 }
403  if (name != NULL) {
404 
405  } else {
406 
407  }
408  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
409  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.name)
410 }
411 
412 // optional .ignition.msgs.Light.LightType type = 3;
413 inline void Light::clear_type() {
414  type_ = 0;
415 }
417  // @@protoc_insertion_point(field_get:ignition.msgs.Light.type)
418  return static_cast< ::ignition::msgs::Light_LightType >(type_);
419 }
421 
422  type_ = value;
423  // @@protoc_insertion_point(field_set:ignition.msgs.Light.type)
424 }
425 
426 // optional .ignition.msgs.Pose pose = 4;
427 inline bool Light::has_pose() const {
428  return !_is_default_instance_ && pose_ != NULL;
429 }
430 inline void Light::clear_pose() {
431  if (GetArenaNoVirtual() == NULL && pose_ != NULL) delete pose_;
432  pose_ = NULL;
433 }
434 inline const ::ignition::msgs::Pose& Light::pose() const {
435  // @@protoc_insertion_point(field_get:ignition.msgs.Light.pose)
436  return pose_ != NULL ? *pose_ : *default_instance_->pose_;
437 }
438 inline ::ignition::msgs::Pose* Light::mutable_pose() {
439 
440  if (pose_ == NULL) {
441  pose_ = new ::ignition::msgs::Pose;
442  }
443  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.pose)
444  return pose_;
445 }
446 inline ::ignition::msgs::Pose* Light::release_pose() {
447  // @@protoc_insertion_point(field_release:ignition.msgs.Light.pose)
448 
449  ::ignition::msgs::Pose* temp = pose_;
450  pose_ = NULL;
451  return temp;
452 }
454  delete pose_;
455  pose_ = pose;
456  if (pose) {
457 
458  } else {
459 
460  }
461  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.pose)
462 }
463 
464 // optional .ignition.msgs.Color diffuse = 5;
465 inline bool Light::has_diffuse() const {
466  return !_is_default_instance_ && diffuse_ != NULL;
467 }
468 inline void Light::clear_diffuse() {
469  if (GetArenaNoVirtual() == NULL && diffuse_ != NULL) delete diffuse_;
470  diffuse_ = NULL;
471 }
472 inline const ::ignition::msgs::Color& Light::diffuse() const {
473  // @@protoc_insertion_point(field_get:ignition.msgs.Light.diffuse)
474  return diffuse_ != NULL ? *diffuse_ : *default_instance_->diffuse_;
475 }
476 inline ::ignition::msgs::Color* Light::mutable_diffuse() {
477 
478  if (diffuse_ == NULL) {
479  diffuse_ = new ::ignition::msgs::Color;
480  }
481  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.diffuse)
482  return diffuse_;
483 }
484 inline ::ignition::msgs::Color* Light::release_diffuse() {
485  // @@protoc_insertion_point(field_release:ignition.msgs.Light.diffuse)
486 
487  ::ignition::msgs::Color* temp = diffuse_;
488  diffuse_ = NULL;
489  return temp;
490 }
492  delete diffuse_;
493  diffuse_ = diffuse;
494  if (diffuse) {
495 
496  } else {
497 
498  }
499  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.diffuse)
500 }
501 
502 // optional .ignition.msgs.Color specular = 6;
503 inline bool Light::has_specular() const {
504  return !_is_default_instance_ && specular_ != NULL;
505 }
506 inline void Light::clear_specular() {
507  if (GetArenaNoVirtual() == NULL && specular_ != NULL) delete specular_;
508  specular_ = NULL;
509 }
510 inline const ::ignition::msgs::Color& Light::specular() const {
511  // @@protoc_insertion_point(field_get:ignition.msgs.Light.specular)
512  return specular_ != NULL ? *specular_ : *default_instance_->specular_;
513 }
514 inline ::ignition::msgs::Color* Light::mutable_specular() {
515 
516  if (specular_ == NULL) {
517  specular_ = new ::ignition::msgs::Color;
518  }
519  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.specular)
520  return specular_;
521 }
522 inline ::ignition::msgs::Color* Light::release_specular() {
523  // @@protoc_insertion_point(field_release:ignition.msgs.Light.specular)
524 
525  ::ignition::msgs::Color* temp = specular_;
526  specular_ = NULL;
527  return temp;
528 }
530  delete specular_;
531  specular_ = specular;
532  if (specular) {
533 
534  } else {
535 
536  }
537  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.specular)
538 }
539 
540 // optional float attenuation_constant = 7;
542  attenuation_constant_ = 0;
543 }
544 inline float Light::attenuation_constant() const {
545  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_constant)
546  return attenuation_constant_;
547 }
548 inline void Light::set_attenuation_constant(float value) {
549 
550  attenuation_constant_ = value;
551  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_constant)
552 }
553 
554 // optional float attenuation_linear = 8;
556  attenuation_linear_ = 0;
557 }
558 inline float Light::attenuation_linear() const {
559  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_linear)
560  return attenuation_linear_;
561 }
562 inline void Light::set_attenuation_linear(float value) {
563 
564  attenuation_linear_ = value;
565  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_linear)
566 }
567 
568 // optional float attenuation_quadratic = 9;
570  attenuation_quadratic_ = 0;
571 }
572 inline float Light::attenuation_quadratic() const {
573  // @@protoc_insertion_point(field_get:ignition.msgs.Light.attenuation_quadratic)
574  return attenuation_quadratic_;
575 }
576 inline void Light::set_attenuation_quadratic(float value) {
577 
578  attenuation_quadratic_ = value;
579  // @@protoc_insertion_point(field_set:ignition.msgs.Light.attenuation_quadratic)
580 }
581 
582 // optional .ignition.msgs.Vector3d direction = 10;
583 inline bool Light::has_direction() const {
584  return !_is_default_instance_ && direction_ != NULL;
585 }
586 inline void Light::clear_direction() {
587  if (GetArenaNoVirtual() == NULL && direction_ != NULL) delete direction_;
588  direction_ = NULL;
589 }
590 inline const ::ignition::msgs::Vector3d& Light::direction() const {
591  // @@protoc_insertion_point(field_get:ignition.msgs.Light.direction)
592  return direction_ != NULL ? *direction_ : *default_instance_->direction_;
593 }
594 inline ::ignition::msgs::Vector3d* Light::mutable_direction() {
595 
596  if (direction_ == NULL) {
597  direction_ = new ::ignition::msgs::Vector3d;
598  }
599  // @@protoc_insertion_point(field_mutable:ignition.msgs.Light.direction)
600  return direction_;
601 }
602 inline ::ignition::msgs::Vector3d* Light::release_direction() {
603  // @@protoc_insertion_point(field_release:ignition.msgs.Light.direction)
604 
605  ::ignition::msgs::Vector3d* temp = direction_;
606  direction_ = NULL;
607  return temp;
608 }
610  delete direction_;
611  direction_ = direction;
612  if (direction) {
613 
614  } else {
615 
616  }
617  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Light.direction)
618 }
619 
620 // optional float range = 11;
621 inline void Light::clear_range() {
622  range_ = 0;
623 }
624 inline float Light::range() const {
625  // @@protoc_insertion_point(field_get:ignition.msgs.Light.range)
626  return range_;
627 }
628 inline void Light::set_range(float value) {
629 
630  range_ = value;
631  // @@protoc_insertion_point(field_set:ignition.msgs.Light.range)
632 }
633 
634 // optional bool cast_shadows = 12;
636  cast_shadows_ = false;
637 }
638 inline bool Light::cast_shadows() const {
639  // @@protoc_insertion_point(field_get:ignition.msgs.Light.cast_shadows)
640  return cast_shadows_;
641 }
642 inline void Light::set_cast_shadows(bool value) {
643 
644  cast_shadows_ = value;
645  // @@protoc_insertion_point(field_set:ignition.msgs.Light.cast_shadows)
646 }
647 
648 // optional float spot_inner_angle = 13;
650  spot_inner_angle_ = 0;
651 }
652 inline float Light::spot_inner_angle() const {
653  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_inner_angle)
654  return spot_inner_angle_;
655 }
656 inline void Light::set_spot_inner_angle(float value) {
657 
658  spot_inner_angle_ = value;
659  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_inner_angle)
660 }
661 
662 // optional float spot_outer_angle = 14;
664  spot_outer_angle_ = 0;
665 }
666 inline float Light::spot_outer_angle() const {
667  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_outer_angle)
668  return spot_outer_angle_;
669 }
670 inline void Light::set_spot_outer_angle(float value) {
671 
672  spot_outer_angle_ = value;
673  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_outer_angle)
674 }
675 
676 // optional float spot_falloff = 15;
678  spot_falloff_ = 0;
679 }
680 inline float Light::spot_falloff() const {
681  // @@protoc_insertion_point(field_get:ignition.msgs.Light.spot_falloff)
682  return spot_falloff_;
683 }
684 inline void Light::set_spot_falloff(float value) {
685 
686  spot_falloff_ = value;
687  // @@protoc_insertion_point(field_set:ignition.msgs.Light.spot_falloff)
688 }
689 
690 // optional uint32 id = 16;
691 inline void Light::clear_id() {
692  id_ = 0u;
693 }
694 inline ::google::protobuf::uint32 Light::id() const {
695  // @@protoc_insertion_point(field_get:ignition.msgs.Light.id)
696  return id_;
697 }
698 inline void Light::set_id(::google::protobuf::uint32 value) {
699 
700  id_ = value;
701  // @@protoc_insertion_point(field_set:ignition.msgs.Light.id)
702 }
703 
704 // optional uint32 parent_id = 17;
705 inline void Light::clear_parent_id() {
706  parent_id_ = 0u;
707 }
708 inline ::google::protobuf::uint32 Light::parent_id() const {
709  // @@protoc_insertion_point(field_get:ignition.msgs.Light.parent_id)
710  return parent_id_;
711 }
712 inline void Light::set_parent_id(::google::protobuf::uint32 value) {
713 
714  parent_id_ = value;
715  // @@protoc_insertion_point(field_set:ignition.msgs.Light.parent_id)
716 }
717 
718 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
719 
724 // @@protoc_insertion_point(namespace_scope)
725 
726 } // namespace msgs
727 } // namespace ignition
728 
729 #ifndef SWIG
730 namespace google {
731 namespace protobuf {
732 
733 template <> struct is_proto_enum< ::ignition::msgs::Light_LightType> : ::google::protobuf::internal::true_type {};
734 template <>
735 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Light_LightType>() {
737 }
738 
739 } // namespace protobuf
740 } // namespace google
741 #endif // SWIG
742 
743 #ifdef _MSC_VER
744 #pragma warning(pop)
745 #endif
746 // @@protoc_insertion_point(global_scope)
747 
748 #endif // PROTOBUF_ignition_2fmsgs_2flight_2eproto__INCLUDED
::ignition::msgs::Pose * mutable_pose()
Definition: light.pb.h:438
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:680
bool cast_shadows() const
Definition: light.pb.h:638
void protobuf_ShutdownFile_ignition_2fmsgs_2flight_2eproto()
void clear_header()
Definition: light.pb.h:334
static const ::google::protobuf::EnumDescriptor * LightType_descriptor()
Definition: light.pb.h:157
void clear_attenuation_quadratic()
Definition: light.pb.h:569
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:594
::ignition::msgs::Header * release_header()
Definition: light.pb.h:350
const ::ignition::msgs::Header & header() const
Definition: light.pb.h:338
Light_LightType LightType
Definition: light.pb.h:140
::std::string * release_name()
Definition: light.pb.h:397
void clear_attenuation_constant()
Definition: light.pb.h:541
void clear_range()
Definition: light.pb.h:621
float attenuation_linear() const
Definition: light.pb.h:558
::google::protobuf::uint32 parent_id() const
Definition: light.pb.h:708
void clear_cast_shadows()
Definition: light.pb.h:635
Definition: light.pb.h:82
void set_attenuation_quadratic(float value)
Definition: light.pb.h:576
void set_cast_shadows(bool value)
Definition: light.pb.h:642
void protobuf_AssignDesc_ignition_2fmsgs_2flight_2eproto()
const ::ignition::msgs::Pose & pose() const
Definition: light.pb.h:434
void clear_spot_inner_angle()
Definition: light.pb.h:649
::ignition::msgs::Light_LightType type() const
Definition: light.pb.h:416
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flight_2eproto()
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: light.pb.h:453
void set_allocated_header(::ignition::msgs::Header *header)
Definition: light.pb.h:357
void set_spot_falloff(float value)
Definition: light.pb.h:684
std::unique_ptr< const Light > ConstLightUniquePtr
Definition: light.pb.h:721
void set_allocated_name(::std::string *name)
Definition: light.pb.h:402
const ::ignition::msgs::Color & diffuse() const
Definition: light.pb.h:472
void clear_spot_falloff()
Definition: light.pb.h:677
void clear_diffuse()
Definition: light.pb.h:468
Definition: header.pb.h:161
bool has_specular() const
Definition: light.pb.h:503
STL class.
::ignition::msgs::Color * mutable_diffuse()
Definition: light.pb.h:476
const int Light_LightType_LightType_ARRAYSIZE
Definition: light.pb.h:68
void set_parent_id(::google::protobuf::uint32 value)
Definition: light.pb.h:712
::ignition::msgs::Color * mutable_specular()
Definition: light.pb.h:514
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:609
::ignition::msgs::Color * release_diffuse()
Definition: light.pb.h:484
float attenuation_quadratic() const
Definition: light.pb.h:572
static bool LightType_Parse(const ::std::string &name, LightType *value)
Definition: light.pb.h:163
::ignition::msgs::Color * release_specular()
Definition: light.pb.h:522
const Light_LightType Light_LightType_LightType_MIN
Definition: light.pb.h:66
::ignition::msgs::Header * mutable_header()
Definition: light.pb.h:342
bool has_pose() const
Definition: light.pb.h:427
void set_spot_inner_angle(float value)
Definition: light.pb.h:656
const ::ignition::msgs::Vector3d & direction() const
Definition: light.pb.h:590
float spot_inner_angle() const
Definition: light.pb.h:652
void clear_type()
Definition: light.pb.h:413
::ignition::msgs::Pose * release_pose()
Definition: light.pb.h:446
::google::protobuf::uint32 id() const
Definition: light.pb.h:694
static bool LightType_IsValid(int value)
Definition: light.pb.h:147
::std::string * mutable_name()
Definition: light.pb.h:392
void clear_name()
Definition: light.pb.h:369
void set_allocated_specular(::ignition::msgs::Color *specular)
Definition: light.pb.h:529
Definition: color.pb.h:56
bool has_header() const
Definition: light.pb.h:331
Definition: vector3d.pb.h:56
::ignition::msgs::Vector3d * release_direction()
Definition: light.pb.h:602
const ::ignition::msgs::Color & specular() const
Definition: light.pb.h:510
STL class.
void clear_direction()
Definition: light.pb.h:586
std::shared_ptr< const Light > ConstLightSharedPtr
Definition: light.pb.h:723
void set_attenuation_constant(float value)
Definition: light.pb.h:548
void set_attenuation_linear(float value)
Definition: light.pb.h:562
void clear_attenuation_linear()
Definition: light.pb.h:555
void set_type(::ignition::msgs::Light_LightType value)
Definition: light.pb.h:420
bool has_direction() const
Definition: light.pb.h:583
const ::std::string & name() const
Definition: light.pb.h:372
const Light_LightType Light_LightType_LightType_MAX
Definition: light.pb.h:67
bool has_diffuse() const
Definition: light.pb.h:465
void set_range(float value)
Definition: light.pb.h:628
std::shared_ptr< Light > LightSharedPtr
Definition: light.pb.h:722
::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:698
Definition: any.pb.h:839
float range() const
Definition: light.pb.h:624
void clear_id()
Definition: light.pb.h:691
void set_name(const ::std::string &value)
Definition: light.pb.h:376
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:670
Light * New() const
Definition: light.pb.h:101
Definition: light.pb.h:60
float spot_outer_angle() const
Definition: light.pb.h:666
std::unique_ptr< Light > LightUniquePtr
Definition: light.pb.h:720
void clear_specular()
Definition: light.pb.h:506
float attenuation_constant() const
Definition: light.pb.h:544
void set_allocated_diffuse(::ignition::msgs::Color *diffuse)
Definition: light.pb.h:491
void clear_parent_id()
Definition: light.pb.h:705
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Light_LightType_descriptor()
void clear_spot_outer_angle()
Definition: light.pb.h:663
void clear_pose()
Definition: light.pb.h:430