OpenLexocad  27.1
Geom::Geom2dLine Class Reference

#include <Geometry2d.h>

Inheritance diagram for Geom::Geom2dLine:
Geom::Geom2dCurve Geom::Geometry2d Base::Persistence Base::BaseClass

Public Member Functions

 Geom2dLine ()
 
 Geom2dLine (const Handle(Geom2d_Line)&)
 
 Geom2dLine (const Base::Vector2d &Pos, const Base::Vector2d &Dir)
 
virtual ~Geom2dLine ()
 
virtual Geometry2dclone (void) const
 returns a cloned object More...
 
void setLine (const Base::Vector2d &Pos, const Base::Vector2d &Dir)
 
Base::Vector2d getPos (void) const
 
Base::Vector2d getDir (void) const
 
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...
 
const Handle (Geom2d_Geometry) &handle() const
 
- Public Member Functions inherited from Geom::Geom2dCurve
 Geom2dCurve ()
 
virtual ~Geom2dCurve ()
 
virtual TopoDS_Shape toShape () const
 
bool tangent (double u, gp_Dir2d &) const
 
Base::Vector2d pointAtParameter (double u) const
 
Base::Vector2d firstDerivativeAtParameter (double u) const
 
Base::Vector2d secondDerivativeAtParameter (double u) const
 
bool normal (double u, gp_Dir2d &dir) const
 
bool closestParameter (const Base::Vector2d &point, double &u) const
 
bool closestParameterToBasicCurve (const Base::Vector2d &point, double &u) const
 
- Public Member Functions inherited from Geom::Geometry2d
virtual ~Geometry2d ()
 
- 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::Geometry2d
 Geometry2d ()
 
- 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)
 

Constructor & Destructor Documentation

◆ Geom2dLine() [1/3]

Geom::Geom2dLine::Geom2dLine ( )

◆ Geom2dLine() [2/3]

Geom::Geom2dLine::Geom2dLine ( const Handle(Geom2d_Line)&  )

◆ Geom2dLine() [3/3]

Geom::Geom2dLine::Geom2dLine ( const Base::Vector2d Pos,
const Base::Vector2d Dir 
)

◆ ~Geom2dLine()

virtual Geom::Geom2dLine::~Geom2dLine ( )
virtual

Member Function Documentation

◆ clone()

virtual Geometry2d* Geom::Geom2dLine::clone ( void  ) const
virtual

returns a cloned object

Implements Geom::Geometry2d.

◆ getDir()

Base::Vector2d Geom::Geom2dLine::getDir ( void  ) const

◆ getPos()

Base::Vector2d Geom::Geom2dLine::getPos ( void  ) const

◆ Handle()

const Geom::Geom2dLine::Handle ( Geom2d_Geometry  ) const &
virtual

Implements Geom::Geometry2d.

◆ restore()

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

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

Reimplemented from Geom::Geometry2d.

◆ save()

virtual void Geom::Geom2dLine::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::Geometry2d.

◆ setLine()

void Geom::Geom2dLine::setLine ( const Base::Vector2d Pos,
const Base::Vector2d Dir 
)

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