OpenLexocad  28.0
PropertyCompoundPlaneAngle.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/Property.h>
4 
5 namespace Core
6 {
7 class LX_CORE_EXPORT PropertyCompoundPlaneAngle : public Core::Property
8 {
10 
11 public:
12  void setValue(const Geom::CompoundPlaneAngle& value);
13  bool setValueFromVariant(const Core::Variant& value);
15 
18 
19  virtual void save(Base::AbstractWriter& writer, Base::PersistenceVersion& save_version);
20 
23  virtual bool isEqual(const Property*) const;
24  virtual Core::Property* copy(void) const override;
25  virtual void paste(const Core::Property& from) override;
26 
27 protected:
29 };
30 
31 
32 
33 DECLARE_PROPERTY_FACTORY(PropertyCompoundPlaneAngle_Factory, Core::PropertyCompoundPlaneAngle);
35 
36 
37 
38 } // namespace Core
Property.h
Core::PropertyCompoundPlaneAngle::setValueFromVariant
bool setValueFromVariant(const Core::Variant &value)
Core::PropertyCompoundPlaneAngle::setValue
void setValue(const Geom::CompoundPlaneAngle &value)
Core::PropertyCompoundPlaneAngle
Definition: PropertyCompoundPlaneAngle.h:8
Core::PropertyCompoundPlaneAngle::restore
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
Throws Base::FileException.
Geom::CompoundPlaneAngle
A compound measure of plane angle in degrees, minutes, seconds, and optionally millionth-seconds of a...
Definition: CompoundPlaneAngle.h:13
Core::PropertyCompoundPlaneAngle::paste
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
Base::PersistenceVersion
Definition: Persistence.h:13
Core
Definition: Base.h:5
Core::Variant
Definition: Variant.h:78
Base::AbstractWriter
Definition: Writer.h:13
Core::PropertyCompoundPlaneAngle::getValue
const Geom::CompoundPlaneAngle & getValue() const
Base::AbstractXMLReader
Definition: AbstractXMLReader.h:7
Core::PropertyCompoundPlaneAngle::copyValue
void copyValue(Core::Property *p)
Core::PropertyCompoundPlaneAngle::_value
Geom::CompoundPlaneAngle _value
Definition: PropertyCompoundPlaneAngle.h:28
Core::version
LX_CORE_EXPORT Version & version
Core::PropertyCompoundPlaneAngle::save
virtual void save(Base::AbstractWriter &writer, Base::PersistenceVersion &save_version)
This method is used to save properties or very small amounts of data to an XML document.
Core::Property
Definition: Property.h:72
Core::PropertyCompoundPlaneAngle::getVariant
Core::Variant getVariant(void) const
Core::PropertyCompoundPlaneAngle::copy
virtual Core::Property * copy(void) const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
Core::DECLARE_OPTIONAL_PROPERTY_HEADER
DECLARE_OPTIONAL_PROPERTY_HEADER(PropertyColorOpt, Core::PropertyColor)
TYPESYSTEM_HEADER
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::DECLARE_PROPERTY_FACTORY
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)
Core::PropertyCompoundPlaneAngle::isEqual
virtual bool isEqual(const Property *) const
compare properties