ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
GeometricObject Class Reference

Abstract class for geometric object. More...

#include <GeometricObject.h>

Inherited by GOLine, GOPlan, and GOVertex.

Public Member Functions

 GeometricObject ()
 
 GeometricObject (TypeGO type)
 
virtual ~GeometricObject ()
 
virtual double distancePoint (const Coord &) const
 Compute the distance between a vertex and the corresponding geometric object.
 
virtual Coord projectionPoint (const Coord &) const
 Compute the projection between a vertex and the corresponding geometric object.
 
TypeGO getType ()
 Return the type of the geometric object.
 

Protected Attributes

TypeGO m_type
 

Detailed Description

Abstract class for geometric object.

Constructor & Destructor Documentation

◆ GeometricObject() [1/2]

GeometricObject::GeometricObject ( )

◆ GeometricObject() [2/2]

GeometricObject::GeometricObject ( TypeGO  type)

◆ ~GeometricObject()

GeometricObject::~GeometricObject ( )
virtual

Member Function Documentation

◆ distancePoint()

virtual double GeometricObject::distancePoint ( const Coord ) const
inlinevirtual

Compute the distance between a vertex and the corresponding geometric object.

Parameters
vertexcoordinates of the vertex

Reimplemented in GOLine, GOPlan, and GOVertex.

◆ getType()

TypeGO GeometricObject::getType ( )
inline

Return the type of the geometric object.

◆ projectionPoint()

virtual Coord GeometricObject::projectionPoint ( const Coord ) const
inlinevirtual

Compute the projection between a vertex and the corresponding geometric object.

Parameters
vertexcoordinates of the vertex

Reimplemented in GOLine, GOPlan, and GOVertex.

Member Data Documentation

◆ m_type

TypeGO GeometricObject::m_type
protected

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