OpenLexocad  27.0
PropertyMesh.h
Go to the documentation of this file.
1 #pragma once
2 #include <Core/core_defines2.h>
3 #include <Geom/IndexedMesh.h>
4 
5 #include <string>
6 
7 #include "Core/Property.h"
8 #include "Core/Variant.h"
9 
10 
11 
12 namespace Core
13 {
15 {
17 
18 public:
19  PropertyMesh(void);
20  virtual ~PropertyMesh(void);
21 
22  void setValue(const Geom::IndexedMesh& mesh);
23  bool setValueFromVariant(const Core::Variant& value);
24  void copyValue(Core::Property* p);
25 
26  const Geom::IndexedMesh& getValue() const;
27 
28 
29  Core::Variant getVariant(void) const;
30 
31  virtual void save(Base::AbstractWriter& writer, Base::PersistanceVersion& save_version);
32  virtual void restore(Base::AbstractXMLReader& reader, Base::PersistanceVersion& version);
33  virtual bool isEqual(const Property*) const;
34 
35 protected:
37 };
38 
39 
40 
41 DECLARE_PROPERTY_FACTORY(PropertyMesh_Factory, Core::PropertyMesh);
42 
43 
44 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
Geom::IndexedMesh _value
Definition: PropertyMesh.h:36
Definition: Persistance.h:20
LX_CORE_EXPORT Version & version
Definition: Variant.h:90
Definition: AbstractXMLReader.h:10
Definition: Base.h:19
Definition: Writer.h:27
Definition: PropertyMesh.h:14
Definition: IndexedMesh.h:14
Definition: Property.h:81
TYPESYSTEM_HEADER()
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)