OpenLexocad  27.1
PropertyCompoundPlaneAngle.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <Base/Writer.h>
6 
7 #include "Core/Property.h"
8 #include "Core/Variant.h"
9 
10 namespace Core
11 {
12 class LX_CORE_EXPORT PropertyCompoundPlaneAngle : public Core::Property
13 {
15 
16 public:
18  virtual ~PropertyCompoundPlaneAngle(void);
19 
20  void setValue(const Geom::CompoundPlaneAngle& value);
21  bool setValueFromVariant(const Core::Variant& value);
22  void copyValue(Core::Property* p);
23 
24  const Geom::CompoundPlaneAngle& getValue() const;
25  Core::Variant getVariant(void) const;
26 
27  virtual void save(Base::AbstractWriter& writer, Base::PersistenceVersion& save_version);
28 
30  virtual void restore(Base::AbstractXMLReader& reader, Base::PersistenceVersion& version);
31  virtual bool isEqual(const Property*) const;
32  virtual Core::Property* copy(void) const override;
33  virtual void paste(const Core::Property& from) override;
34 
35 protected:
37 };
38 
39 
40 
41 DECLARE_PROPERTY_FACTORY(PropertyCompoundPlaneAngle_Factory, Core::PropertyCompoundPlaneAngle);
43 
44 
45 
46 } // namespace Core
DECLARE_OPTIONAL_PROPERTY_HEADER(PropertyColorOpt, Core::PropertyColor)
A compound measure of plane angle in degrees, minutes, seconds, and optionally millionth-seconds of a...
Definition: CompoundPlaneAngle.h:12
Definition: Persistence.h:14
Definition: PropertyCompoundPlaneAngle.h:12
LX_CORE_EXPORT Version & version
Definition: Variant.h:87
Definition: AbstractXMLReader.h:7
Definition: Base.h:12
Definition: Writer.h:16
Geom::CompoundPlaneAngle _value
Definition: PropertyCompoundPlaneAngle.h:36
Definition: Property.h:77
TYPESYSTEM_HEADER()
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)