eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::Easy3D::E3DLine Class Reference

Represents a 3D line. More...

#include <eVision/Easy3D/E3DLine.h>

Collaboration diagram for eVision::Easy3D::E3DLine:

Public Member Functions

 E3DLine ()
 Creates an E3DLine object.
 E3DLine (const eVision::Easy3D::E3DPoint &p1, const eVision::Easy3D::E3DPoint &p2)
 Creates an E3DLine object.
 E3DLine (const eVision::Easy3D::E3DLine &other)
 Creates an E3DLine object.
virtual ~E3DLine () throw ()
eVision::Easy3D::E3DLine & operator= (const eVision::Easy3D::E3DLine &other)
 Assignment operator.
bool operator== (const eVision::Easy3D::E3DLine &other) const
 Operator "==": tests if two E3DLine objects are identical.
bool operator!= (const eVision::Easy3D::E3DLine &other) const
 Operator "!=": tests if two E3DLine objects are different.
void Define (const eVision::Easy3D::E3DPoint &p1, const eVision::Easy3D::E3DPoint &p2)
 (re)Defines the line parameters:
eVision::Easy3D::E3DPoint GetFirstPoint () const
 Gets the first point of the line.
eVision::Easy3D::E3DPoint GetSecondPoint () const
 Gets the second point of the line.
void Load (const std::string &path)
 Loads a E3DLine. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Loads a E3DLine. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Saves a E3DLine. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Saves a E3DLine. The given ESerializer must have been created for writing.
 E3DLine (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Represents a 3D line.

License(s): Easy3D

Constructor & Destructor Documentation

◆ E3DLine() [1/4]

eVision::Easy3D::E3DLine::E3DLine ( )

Creates an E3DLine object.

It is possible to initialize it by specifying its two points.

◆ E3DLine() [2/4]

eVision::Easy3D::E3DLine::E3DLine ( const eVision::Easy3D::E3DPoint & p1,
const eVision::Easy3D::E3DPoint & p2 )

Creates an E3DLine object.

It is possible to initialize it by specifying its two points.

Parameters
p1The first point of the line.
p2The second point of the line.

◆ E3DLine() [3/4]

eVision::Easy3D::E3DLine::E3DLine ( const eVision::Easy3D::E3DLine & other)

Creates an E3DLine object.

It is possible to initialize it by specifying its two points.

Parameters
otherThe other E3DLine that we will copy into this one.

◆ ~E3DLine()

eVision::Easy3D::E3DLine::~E3DLine ( )
throw ( )
virtual

◆ E3DLine() [4/4]

eVision::Easy3D::E3DLine::E3DLine ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Define()

void eVision::Easy3D::E3DLine::Define ( const eVision::Easy3D::E3DPoint & p1,
const eVision::Easy3D::E3DPoint & p2 )

(re)Defines the line parameters:

It is possible to use the first and the second points of the line.

Parameters
p1The first point of the line.
p2The second point of the line.

◆ GetFirstPoint()

eVision::Easy3D::E3DPoint eVision::Easy3D::E3DLine::GetFirstPoint ( ) const

Gets the first point of the line.

◆ GetSecondPoint()

eVision::Easy3D::E3DPoint eVision::Easy3D::E3DLine::GetSecondPoint ( ) const

Gets the second point of the line.

◆ Load() [1/2]

void eVision::Easy3D::E3DLine::Load ( const std::string & path)

Loads a E3DLine. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/2]

void eVision::Easy3D::E3DLine::Load ( eVision::ESerializer * serializer)

Loads a E3DLine. The given ESerializer must have been created for reading.

Parameters
serializerThe ESerializer object that is read from.

◆ operator!=()

bool eVision::Easy3D::E3DLine::operator!= ( const eVision::Easy3D::E3DLine & other) const

Operator "!=": tests if two E3DLine objects are different.

Parameters
otherThe other E3DLine that we will compare this one to.

◆ operator=()

eVision::Easy3D::E3DLine & eVision::Easy3D::E3DLine::operator= ( const eVision::Easy3D::E3DLine & other)

Assignment operator.

Parameters
otherThe E3DLine object that should be copied.

◆ operator==()

bool eVision::Easy3D::E3DLine::operator== ( const eVision::Easy3D::E3DLine & other) const

Operator "==": tests if two E3DLine objects are identical.

Parameters
otherThe other E3DLine that we will compare this one to.

◆ Save() [1/2]

void eVision::Easy3D::E3DLine::Save ( const std::string & path)

Saves a E3DLine. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/2]

void eVision::Easy3D::E3DLine::Save ( eVision::ESerializer * serializer)

Saves a E3DLine. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::Easy3D::E3DLine::wrappedClass_