OpenLexocad  27.1
Geom::GeomLineSegment Class Reference

#include <Geometry.h>

Inheritance diagram for Geom::GeomLineSegment:
Geom::GeomTrimmedCurve Geom::GeomBoundedCurve Geom::GeomCurve Geom::Geometry Base::Persistence Base::BaseClass

Public Member Functions

 GeomLineSegment ()
 
 GeomLineSegment (const Handle(Geom_Line)&l)
 
 GeomLineSegment (const Geom::Lin &aLin, double aParam1, double aParam2)
 
virtual ~GeomLineSegment ()
 
virtual Geometrycopy (void) const
 
Base::Vector3d getStartPoint () const
 
Base::Vector3d getEndPoint () const
 
void setPoints (const Base::Vector3d &p1, const Base::Vector3d &p2)
 
virtual void save (Base::AbstractWriter &, Base::PersistenceVersion &) override
 This method is used to save properties or very small amounts of data to an XML document. More...
 
virtual void restore (Base::AbstractXMLReader &, Base::PersistenceVersion &) override
 This method is used to restore properties from an XML document. More...
 
void setHandle (const Handle(Geom_TrimmedCurve)&)
 
void setHandle (const Handle(Geom_Line)&)
 
const Handle (Geom_Geometry) &handle() const
 
- Public Member Functions inherited from Geom::GeomTrimmedCurve
 GeomTrimmedCurve ()
 
 GeomTrimmedCurve (const Handle(Geom_TrimmedCurve)&)
 
virtual ~GeomTrimmedCurve ()
 
void setHandle (const Handle(Geom_TrimmedCurve)&)
 
bool intersectBasisCurves (const GeomTrimmedCurve *c, std::vector< std::pair< Base::Vector3d, Base::Vector3d >> &points, double tol=::Precision::Confusion()) const
 
virtual void getRange (double &u, double &v) const
 
virtual void setRange (double u, double v)
 
- Public Member Functions inherited from Geom::GeomBoundedCurve
 GeomBoundedCurve ()
 
virtual ~GeomBoundedCurve ()
 
- Public Member Functions inherited from Geom::GeomCurve
 GeomCurve ()
 
virtual ~GeomCurve ()
 
TopoDS_Shape toShape () const
 
GeomBSplineCurvetoBSpline (double first, double last) const
 toBSpline Converts the curve to a B-spline More...
 
virtual GeomBSplineCurvetoNurbs (double first, double last) const
 
bool tangent (double u, gp_Dir &) const
 
bool tangent (double u, Base::Vector3d &dir) const
 
Base::Vector3d pointAtParameter (double u) const
 
Base::Vector3d firstDerivativeAtParameter (double u) const
 
Base::Vector3d secondDerivativeAtParameter (double u) const
 
bool closestParameter (const Base::Vector3d &point, double &u) const
 
bool closestParameterToBasisCurve (const Base::Vector3d &point, double &u) const
 
double getFirstParameter () const
 
double getLastParameter () const
 
double curvatureAt (double u) const
 
double length (double u, double v) const
 
bool normalAt (double u, Base::Vector3d &dir) const
 
bool intersect (GeomCurve *c, std::vector< std::pair< Base::Vector3d, Base::Vector3d >> &points, double tol=::Precision::Confusion()) const
 
void reverse (void)
 
- Public Member Functions inherited from Geom::Geometry
virtual ~Geometry ()
 
Geometryclone (void) const
 
boost::uuids::uuid getTag () const
 returns the tag of the geometry object More...
 
std::vector< std::weak_ptr< const GeometryExtension > > getExtensions () const
 
bool hasExtension (Base::Type type) const
 
bool hasExtension (std::string name) const
 
std::weak_ptr< const GeometryExtensiongetExtension (Base::Type type) const
 
std::weak_ptr< const GeometryExtensiongetExtension (std::string name) const
 
std::weak_ptr< GeometryExtensiongetExtension (Base::Type type)
 
std::weak_ptr< GeometryExtensiongetExtension (std::string name)
 
void setExtension (std::unique_ptr< GeometryExtension > &&geo)
 
void deleteExtension (Base::Type type)
 
void deleteExtension (std::string name)
 
void mirror (const Base::Vector3d &point)
 
void mirror (const Base::Vector3d &point, const Base::Vector3d &dir)
 
void rotate (const Base::Placement &plm)
 
void scale (const Base::Vector3d &vec, double scale)
 
void transform (const Base::Matrix4D &mat)
 
void translate (const Base::Vector3d &vec)
 
- Public Member Functions inherited from Base::Persistence
virtual void saveDocFile (Base::AbstractWriter &, const Base::String &, const Base::String &)
 This method is used to save large amounts of data to a binary file. More...
 
virtual void restoreDocFile (Base::Reader &, const Base::String &)
 This method is used to restore large amounts of data from a binary file. More...
 
virtual bool mustbeSaved () const
 Return 'true' if this object must always be saved in the file. More...
 
virtual bool createSQL (Base::AbstractWriter &, Base::PersistenceVersion &, bool)
 This method is used to save properties or very small amounts of data to an XML document. More...
 
- Public Member Functions inherited from Base::BaseClass
virtual Type getTypeId (void) const
 
template<typename T >
bool isDerivedFrom () const
 
bool isDerivedFrom (const Type type) const
 
 BaseClass ()
 Construction. More...
 
virtual ~BaseClass ()
 Destruction. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::Persistence
static std::string encodeAttribute (const std::string &)
 
- Static Public Member Functions inherited from Base::BaseClass
static Type getClassTypeId (void)
 
static void init (void)
 
static void * create (void)
 
static void setIfcNameAndID (const std::string &n, int id)
 
- Public Attributes inherited from Base::BaseClass
long ____deadVal = 0xBADEAFFE
 
- Protected Member Functions inherited from Geom::GeomTrimmedCurve
 Handle (Geom_TrimmedCurve) myCurve
 
- Protected Member Functions inherited from Geom::Geometry
void createNewTag ()
 create a new tag for the geometry object More...
 
void assignTag (const Geom::Geometry *)
 copies the tag from the geometry passed as a parameter to this object More...
 
void copyNonTag (const Geom::Geometry *)
 
 Geometry ()
 
- Static Protected Member Functions inherited from Geom::GeomCurve
static bool intersect (const Handle(Geom_Curve) c, const Handle(Geom_Curve) c2, std::vector< std::pair< Base::Vector3d, Base::Vector3d >> &points, double tol=::Precision::Confusion())
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=0)
 
static void initIfcTypes (const std::string &s, Base::Type classTypeId, int id)
 
- Protected Attributes inherited from Geom::Geometry
boost::uuids::uuid tag
 
std::vector< std::shared_ptr< GeometryExtension > > extensions
 

Constructor & Destructor Documentation

◆ GeomLineSegment() [1/3]

Geom::GeomLineSegment::GeomLineSegment ( )

◆ GeomLineSegment() [2/3]

Geom::GeomLineSegment::GeomLineSegment ( const Handle(Geom_Line)&  l)

◆ GeomLineSegment() [3/3]

Geom::GeomLineSegment::GeomLineSegment ( const Geom::Lin aLin,
double  aParam1,
double  aParam2 
)

◆ ~GeomLineSegment()

virtual Geom::GeomLineSegment::~GeomLineSegment ( )
virtual

Member Function Documentation

◆ copy()

virtual Geometry* Geom::GeomLineSegment::copy ( void  ) const
virtual

returns a copy of this object having a new randomly generated tag. If you also want to copy the tag, you may use clone() instead. For creation of geometry with other handles, with or without the same tag, you may use the constructors and the sethandle functions. The tag of a geometry can be copied to another geometry using the assignTag function.

Reimplemented from Geom::GeomTrimmedCurve.

◆ getEndPoint()

Base::Vector3d Geom::GeomLineSegment::getEndPoint ( ) const
virtual

Reimplemented from Geom::GeomBoundedCurve.

◆ getStartPoint()

Base::Vector3d Geom::GeomLineSegment::getStartPoint ( ) const
virtual

Reimplemented from Geom::GeomBoundedCurve.

◆ Handle()

const Geom::GeomLineSegment::Handle ( Geom_Geometry  ) const &
virtual

Reimplemented from Geom::GeomTrimmedCurve.

◆ restore()

virtual void Geom::GeomLineSegment::restore ( Base::AbstractXMLReader ,
Base::PersistenceVersion  
)
overridevirtual

This method is used to restore properties from an XML document.

Reimplemented from Geom::GeomTrimmedCurve.

◆ save()

virtual void Geom::GeomLineSegment::save ( Base::AbstractWriter ,
Base::PersistenceVersion  
)
overridevirtual

This method is used to save properties or very small amounts of data to an XML document.

Reimplemented from Geom::GeomTrimmedCurve.

◆ setHandle() [1/2]

void Geom::GeomLineSegment::setHandle ( const Handle(Geom_TrimmedCurve)&  )

◆ setHandle() [2/2]

void Geom::GeomLineSegment::setHandle ( const Handle(Geom_Line)&  )

◆ setPoints()

void Geom::GeomLineSegment::setPoints ( const Base::Vector3d p1,
const Base::Vector3d p2 
)

The documentation for this class was generated from the following file: