OpenLexocad  27.1
TrimmedCurve.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <OpenLxApp/Conic.h>
5 #include <OpenLxApp/Line.h>
6 
7 
8 
9 FORWARD_DECL(Part, TrimmedCurve)
10 
11 namespace OpenLxApp
12 {
24 class LX_OPENLXAPP_EXPORT TrimmedCurve : public BoundedCurve
25 {
26  PROXY_HEADER(TrimmedCurve, Part::TrimmedCurve, IFCTRIMMEDCURVE)
27 
28  DECL_PROPERTY(TrimmedCurve, Trim1, double)
29  DECL_PROPERTY(TrimmedCurve, Trim2, double)
30  DECL_PROPERTY(TrimmedCurve, Sense, bool)
31 
32 public:
33  ~TrimmedCurve(void);
34 
35  void setBasisCurve(std::shared_ptr<Conic> aConic);
36  void setBasisCurve(std::shared_ptr<Line> aLine);
37  std::shared_ptr<Curve> getBasisCurve() const;
38 
39 private:
40  TrimmedCurve(void) {}
41 };
42 } // namespace OpenLxApp
A trimmed curve is a bounded curve which is created by taking a selected portion, between two identif...
Definition: TrimmedCurve.h:24
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146
Definition: ActiveScript.h:7
A bounded curve is a curve of finite arc length with identifiable end points. (Definition from ISO/CD...
Definition: BoundedCurve.h:19
#define DECL_PROPERTY(_class_, _name_, _type_)
DECL_PROPERTY and DEFINE_PROPERTY are macros used for mapping between the properties of Lexocad objec...
Definition: Globals.h:242
#define FORWARD_DECL(x, y)
Definition: Globals.h:93