OpenLexocad  28.0
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)
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
OpenLxApp
Definition: ActiveScript.h:10
FORWARD_DECL
#define FORWARD_DECL(x, y)
Definition: Globals.h:93
OpenLxApp::Curve
A curve can be envisioned as the path of a point moving in its coordinate space. (Definition from ISO...
Definition: Curve.h:28
OpenLxApp::Conic
A conic is a planar curve which could be produced by intersecting a plane with a cone....
Definition: Conic.h:23
DECL_PROPERTY
#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
Conic.h
BoundedCurve.h
Line.h
OpenLxApp::BoundedCurve
A bounded curve is a curve of finite arc length with identifiable end points. (Definition from ISO/CD...
Definition: BoundedCurve.h:20
std
Definition: GlobalId.h:64
OpenLxApp::Line
A line is an unbounded curve with constant tangent direction. A line is defined by a point and a dire...
Definition: Line.h:24
OpenLxApp::TrimmedCurve
A trimmed curve is a bounded curve which is created by taking a selected portion, between two identif...
Definition: TrimmedCurve.h:25
PROXY_HEADER
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146