SHAPER  9.12.0
XAO::GeometricElement Class Reference

Generic class to manipulate a topologic element (vertex, edge, face or solid). More...

Public Member Functions

 GeometricElement ()
 Default constructor. More...
 
 GeometricElement (const std::string &name, const std::string &reference)
 Constructor with name and reference. More...
 
virtual ~GeometricElement ()
 Destructor. More...
 
const std::string getName ()
 Gets the name of the element. More...
 
void setName (const std::string &name)
 Sets the name of the element. More...
 
bool hasName ()
 Checks if the element has a name. More...
 
const std::string getReference ()
 Gets the reference of the element. More...
 
void setReference (const std::string &reference)
 Sets the reference of the element. More...
 

Detailed Description

Generic class to manipulate a topologic element (vertex, edge, face or solid).

Constructor & Destructor Documentation

◆ GeometricElement() [1/2]

GeometricElement::GeometricElement ( )

Default constructor.

◆ GeometricElement() [2/2]

GeometricElement::GeometricElement ( const std::string &  name,
const std::string &  reference 
)

Constructor with name and reference.

Parameters
namethe name of the element.
referencethe reference of the element.

◆ ~GeometricElement()

GeometricElement::~GeometricElement ( )
virtual

Destructor.

Member Function Documentation

◆ getName()

const std::string XAO::GeometricElement::getName ( )
inline

Gets the name of the element.

Returns
the name.

◆ setName()

void XAO::GeometricElement::setName ( const std::string &  name)
inline

Sets the name of the element.

Parameters
namethe name to set.

◆ hasName()

bool GeometricElement::hasName ( )

Checks if the element has a name.

Returns
true if the element has a name, false otherwise.

◆ getReference()

const std::string XAO::GeometricElement::getReference ( )
inline

Gets the reference of the element.

Returns
the reference.

◆ setReference()

void XAO::GeometricElement::setReference ( const std::string &  reference)
inline

Sets the reference of the element.

Parameters
referencethe reference to set.