OpenLexocad  28.0
ShapeAttributes.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 class BODY;
6 
7 namespace Topo
8 {
9 class LX_TOPO_EXPORT ShapeAttributes
10 {
11 public:
12  ShapeAttributes() = default;
13  virtual Topo::ShapeAttributes* getCopy() const = 0;
14 };
15 
16 
17 /* @brief: This class is needed and used to attach attributes to a shape. This is p.e. the case when
18  importing SAT files which have user defined attributes attached to an ENTITY. */
19 class LX_TOPO_EXPORT Cdwk_SAT_Attributes : public Topo::ShapeAttributes
20 {
21 public:
22  Cdwk_SAT_Attributes() = default;
23 
25 
27  BODY* shapeBody; // The BODY this shape attribute belongs to
28  std::vector<BODY*> openings;
29 };
30 } // namespace Topo
Topo::ShapeAttributes::getCopy
virtual Topo::ShapeAttributes * getCopy() const =0
Topo::Cdwk_SAT_Attributes::attribute
Core::CdwkAttributeData attribute
Definition: ShapeAttributes.h:26
Topo::Cdwk_SAT_Attributes::openings
std::vector< BODY * > openings
Definition: ShapeAttributes.h:28
Topo::Cdwk_SAT_Attributes
Definition: ShapeAttributes.h:20
Core::CdwkAttributeData
Definition: CdwkAttributeData.h:11
Topo::ShapeAttributes::ShapeAttributes
ShapeAttributes()=default
Topo
Definition: DbgInfo.h:17
Topo::Cdwk_SAT_Attributes::shapeBody
BODY * shapeBody
Definition: ShapeAttributes.h:27
Topo::ShapeAttributes
Definition: ShapeAttributes.h:10
CdwkAttributeData.h
Topo::Cdwk_SAT_Attributes::Cdwk_SAT_Attributes
Cdwk_SAT_Attributes()=default
Topo::Cdwk_SAT_Attributes::getCopy
Topo::ShapeAttributes * getCopy() const