CFx SDK Documentation  2022 SP0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OdBcf::OdBcfLine Class Reference

#include <BcfLine.h>

Inheritance diagram for OdBcf::OdBcfLine:
OdBcf::OdBcfElement OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdBcfLine)
 
virtual OdResult inFields (TiXmlElement *pParent) ODRX_OVERRIDE
 
virtual OdResult outFields (TiXmlElement *pParent) const ODRX_OVERRIDE
 
virtual bool validate () const ODRX_OVERRIDE
 
 DECLARE_CONST_ACCESSORS (StartPoint, OdBcfPointPtr, m_pStartPoint)
 
 DECLARE_CONST_ACCESSORS (EndPoint, OdBcfPointPtr, m_pEndPoint)
 
- Public Member Functions inherited from OdBcf::OdBcfElement
 ODRX_DECLARE_MEMBERS (OdBcfElement)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdSmartPtr< OdBcfLinecreateObject (const OdBcfPointPtr &pStartPoint, const OdBcfPointPtr &pEndPoint)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Attributes

OdBcfPointPtr m_pStartPoint
 
OdBcfPointPtr m_pEndPoint
 

Detailed Description

A class that contains Line data type.

Definition at line 42 of file BcfLine.h.

Member Function Documentation

◆ createObject()

static OdSmartPtr<OdBcfLine> OdBcf::OdBcfLine::createObject ( const OdBcfPointPtr pStartPoint,
const OdBcfPointPtr pEndPoint 
)
static

Creates a new line object.

Parameters
pStartPoint[in] A pointer to start point of the line.
pEndPoint[in] A pointer to end point of the line.
Returns
Returns a smart pointer to the created <link OdBcf::OdBcfLine, OdBcfLine> instance.

◆ DECLARE_CONST_ACCESSORS() [1/2]

OdBcf::OdBcfLine::DECLARE_CONST_ACCESSORS ( EndPoint  ,
OdBcfPointPtr  ,
m_pEndPoint   
)

◆ DECLARE_CONST_ACCESSORS() [2/2]

OdBcf::OdBcfLine::DECLARE_CONST_ACCESSORS ( StartPoint  ,
OdBcfPointPtr  ,
m_pStartPoint   
)

◆ inFields()

virtual OdResult OdBcf::OdBcfLine::inFields ( TiXmlElement *  pParent)
virtual

Reads XML data into ODA data structures.

Parameters
pParent[in] A pointer to parent element of the data structure.
Returns
Returns eOk if data was successfully read; otherwise, the method returns an appropriate error.

Implements OdBcf::OdBcfElement.

◆ ODRX_DECLARE_MEMBERS()

OdBcf::OdBcfLine::ODRX_DECLARE_MEMBERS ( OdBcfLine  )

◆ outFields()

virtual OdResult OdBcf::OdBcfLine::outFields ( TiXmlElement *  pParent) const
virtual

Writes data into XML structures.

Parameters
pParent[in] A pointer to parent element of the data structure.
Returns
Returns eOk if data was successfully written; otherwise, the method returns an appropriate error.

Implements OdBcf::OdBcfElement.

◆ validate()

virtual bool OdBcf::OdBcfLine::validate ( ) const
virtual

Checks if instance has all required fields initialized.

Returns
Returns true if all required fields are initialized; otherwise the method returns false.

Implements OdBcf::OdBcfElement.

Member Data Documentation

◆ m_pEndPoint

OdBcfPointPtr OdBcf::OdBcfLine::m_pEndPoint
protected

Definition at line 86 of file BcfLine.h.

◆ m_pStartPoint

OdBcfPointPtr OdBcf::OdBcfLine::m_pStartPoint
protected

Definition at line 85 of file BcfLine.h.


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